/* Layout */
.post-main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 6rem 1.5rem 4rem;
    color: #f5f5f5;
}
.post-hero {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    border-radius: 2rem;
    padding: 2.5rem 2rem 2.25rem;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 55%), linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
}
.post-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.post-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}
.post-hero__texts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.95fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Breadcrumb */
.post-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.75);
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.post-breadcrumb a:hover,
.post-list--links a:hover,
.post-toc a:hover,
.post-related a:hover {
    color: #fff;
}
.post-breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.25rem;
    opacity: 0.6;
}

/* Meta & tags */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: rgba(245, 245, 245, 0.8);
}
.post-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.post-meta__item svg {
    width: 1rem;
    height: 1rem;
}

/* Hero content */
.post-title {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0;
}
.post-title__en {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}
.post-hero__lead {
    font-size: 0.98rem;
    line-height: 1.9;
    color: rgba(245, 245, 245, 0.9);
    margin: 0;
}
.post-hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.3rem;
}
.post-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.post-cta--primary {
    background: linear-gradient(135deg, #f5f5f5, #d1d1d1);
    color: #050505;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}
.post-cta--ghost {
    background: rgba(0, 0, 0, 0.75);
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.12);
}
.post-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Hero media */
.post-hero__media {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 60%);
}
.post-hero__media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.post-hero__media figcaption {
    position: absolute;
    inset-inline-start: 1rem;
    inset-block-end: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.75rem;
    color: rgba(245, 245, 245, 0.9);
}

/* Article & sections */
.post-article {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    font-size: 0.96rem;
    line-height: 2;
    color: rgba(245, 245, 245, 0.92);
}
.post-section {
    padding: 1.75rem 1.5rem;
    border-radius: 1.5rem;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.02), transparent 60%), rgba(6, 6, 6, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.post-section--highlight {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 65%), linear-gradient(135deg, #111, #050505);
}
.post-section__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.post-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 1.75rem;
    align-items: flex-start;
}
.post-section__media img {
    width: 100%;
    border-radius: 1.25rem;
    display: block;
}
.post-section__media figcaption,
.post-color-gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: rgba(245, 245, 245, 0.75);
}
.post-section__media--stack > * + * {
    margin-top: 1rem;
}

/* Lists */
.post-list {
    margin: 0.75rem 0 0;
    padding-inline-start: 1.25rem;
}
.post-list li + li {
    margin-top: 0.35rem;
}
.post-list--icons,
.post-list--cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.post-list--columns {
    columns: 2;
    column-gap: 1.5rem;
    padding-inline-start: 1.25rem;
}
.post-list--links {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}
.post-list--links li + li {
    margin-top: 0.4rem;
}
.post-list--links a {
    color: rgba(245, 245, 245, 0.85);
    text-decoration: none;
}

/* Feature, media row, inline CTA */
.post-feature {
    padding: 1.1rem 1rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.post-feature h3 {
    font-size: 0.96rem;
    margin: 0 0 0.4rem;
}
.post-feature p {
    font-size: 0.85rem;
    margin: 0;
}
.post-media-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: center;
}
.post-media-row img,
.post-color-gallery img {
    width: 100%;
    border-radius: 1.2rem;
    display: block;
}
.post-color-gallery {
    margin-top: 1.25rem;
}
.post-media-row__hint {
    font-size: 0.8rem;
    opacity: 0.85;
}
.post-inline-cta {
    margin-top: 1.2rem;
    padding: 1.2rem 1.1rem;
    border-radius: 1.2rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.post-inline-cta--soft {
    background: rgba(10, 10, 10, 0.9);
}
.post-inline-cta__title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.post-inline-cta__text {
    font-size: 0.86rem;
    margin: 0 0 0.6rem;
}
.post-inline-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Badges & glass grid */
.post-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.post-badge {
    padding: 1rem 0.9rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
}
.post-badge h3 {
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
}
.post-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}
.post-note {
    margin-top: 0.8rem;
    font-size: 0.82rem;
    opacity: 0.85;
}

/* Audio & final CTA */
.post-audio {
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.75);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.post-audio__title {
    font-size: 0.9rem;
    margin: 0;
}
.post-audio__meta {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}
.post-audio__button {
    align-self: flex-start;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.8rem;
    cursor: not-allowed;
}
.post-final-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

/* Reactions & comments */
.post-interactions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.post-reactions-wrap {
    text-align: center;
    padding: 2rem 1.5rem;
}
.post-reactions__prompt {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.85);
    font-weight: 500;
}
.post-reactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.25rem;
}
.post-reactions__divider {
    font-size: 0.8rem;
    color: rgba(245, 245, 245, 0.4);
    padding: 0 0.25rem;
    user-select: none;
}
.post-reaction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 7rem;
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(245, 245, 245, 0.92);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.post-reaction:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.post-reaction__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}
.post-reaction__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}
.post-reaction:hover .post-reaction__icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.08);
}
.post-reaction__label {
    font-weight: 500;
    line-height: 1.3;
}
.post-reaction__count {
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}
.post-reaction[aria-pressed="true"] {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.post-reaction--like[aria-pressed="true"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    color: #fff;
}
.post-reaction--like[aria-pressed="true"] .post-reaction__icon {
    background: rgba(255, 255, 255, 0.18);
}
.post-reaction--dislike[aria-pressed="true"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.4));
    color: rgba(245, 245, 245, 0.95);
}
.post-reaction--dislike[aria-pressed="true"] .post-reaction__icon {
    background: rgba(255, 255, 255, 0.1);
}
.post-comments {
    padding: 1.5rem 1.4rem;
    border-radius: 1.4rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.09);
}
.post-comments__subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0 0 1rem;
}
.post-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.post-comment-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.post-comment-form label {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.post-comment-form input,
.post-comment-form textarea {
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 5, 5, 0.9);
    color: #f5f5f5;
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    resize: vertical;
}
.post-comment-form input::placeholder,
.post-comment-form textarea::placeholder {
    color: rgba(245, 245, 245, 0.4);
}
.post-comment-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.post-comment-form__hint {
    font-size: 0.78rem;
    opacity: 0.85;
}
.post-comment-form__msg {
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}
.post-comment-form__msg--success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}
.post-comment-form__msg--error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.post-comment-form__msg--info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}
.post-comments__list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.post-comment {
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}
.post-comment__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.post-comment__author {
    font-size: 0.86rem;
    margin: 0;
}
.post-comment__time {
    font-size: 0.75rem;
    opacity: 0.8;
}
.post-comment__text {
    margin: 0;
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-self: start;
    position: sticky;
    top: 2rem;
}
.post-sidebar__card {
    padding: 1.15rem 1rem;
    border-radius: 1.2rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}
.post-sidebar__title {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}
.post-sidebar__meta,
.post-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-sidebar__meta {
    margin-top: 0.7rem;
}
.post-toc li + li,
.post-sidebar__meta li + li,
.post-sidebar__bullets li + li {
    margin-top: 0.25rem;
}
.post-toc a {
    display: inline-block;
    font-size: 0.84rem;
    color: rgba(245, 245, 245, 0.8);
    text-decoration: none;
}
.post-sidebar__bullets {
    list-style: disc;
    padding-inline-start: 1.2rem;
    margin: 0.4rem 0 0;
}
.post-sidebar__cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
}

/* Share & related */
.post-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.post-share__btn {
    flex: 1 1 120px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.85);
    color: rgba(245, 245, 245, 0.9);
    font-size: 0.8rem;
    cursor: pointer;
}
.post-related {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.post-related__item-wrap {
    margin: 0;
}
.post-related__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(245, 245, 245, 0.92);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.post-related__item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}
.post-related__item-title {
    flex: 1 1 100%;
    font-weight: 500;
    line-height: 1.4;
}
.post-related__item-meta {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 245, 245, 0.8);
    font-variant-numeric: tabular-nums;
}
.post-related__item-arrow {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.post-related__item:hover .post-related__item-arrow {
    opacity: 1;
    transform: translateX(-2px);
}
.post-breadcrumb a:hover,
.post-list--links a:hover,
.post-toc a:hover,
.post-related__item:hover {
    color: #fff;
}

/* RTL hints */
.post-note,
.post-media-row__hint,
.post-comment-form__hint {
    direction: rtl;
    text-align: right;
}

/* Responsive */
@media (max-width: 960px) {
    .post-hero {
        padding: 2.1rem 1.4rem 1.9rem;
        border-radius: 1.5rem;
    }
    .post-hero__content {
        grid-template-columns: 1fr;
    }
    .post-hero__media {
        order: -1;
    }
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-list--columns {
        columns: 1;
    }
}
@media (max-width: 720px) {
    .post-main {
        padding-inline: 1rem;
    }
    .post-section {
        padding: 1.4rem 1.1rem;
        border-radius: 1.2rem;
    }
    .post-section__grid,
    .post-media-row {
        grid-template-columns: 1fr;
    }
    .post-hero__lead {
        font-size: 0.92rem;
    }
    .post-meta {
        gap: 0.5rem 0.75rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .post-cta,
    .post-reaction,
    .post-reaction__icon,
    .post-related__item,
    .post-related__item-arrow {
        transition: none;
    }
    .post-reaction:hover,
    .post-reaction[aria-pressed="true"] {
        transform: none;
    }
}
