/* ================================================================
   POST DETAIL
   Yazı, duyuru ve geçmiş etkinlik detay sayfası
   ================================================================ */

/* ================================================================
   PREVIEW NOTICE
   ================================================================ */

.post-preview-notice {
    position: relative;
    z-index: 5;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #e3c96c;
    color: #5f4b00;
    background: #fff5cc;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

/* ================================================================
   HERO
   ================================================================ */

.post-detail__hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
    border-bottom: 1px solid #dce5ed;
    background:
        radial-gradient(
            circle at 88% 15%,
            rgb(8 113 185 / 14%),
            transparent 25rem
        ),
        linear-gradient(
            145deg,
            #f7fafc 0%,
            #ffffff 52%,
            #edf5fa 100%
        );
}

.post-detail__hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.22rem;
    background:
        linear-gradient(
            90deg,
            #0871b9,
            #61a9d4,
            #d8ad4a
        );
    content: "";
}

.post-detail__hero-container {
    position: relative;
    z-index: 1;
}

/* ================================================================
   BREADCRUMB
   ================================================================ */

.post-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    color: #637182;
    font-size: 0.8rem;
    line-height: 1.5;
}

.post-breadcrumb a {
    color: #075b96;
    font-weight: 750;
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: #071a2f;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.post-breadcrumb a:focus-visible {
    border-radius: 0.2rem;
    outline: 0.2rem solid #0871b9;
    outline-offset: 0.2rem;
}

.post-breadcrumb [aria-current="page"] {
    max-width: 36rem;
    overflow: hidden;
    color: #637182;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================================================================
   HERO CONTENT
   ================================================================ */

.post-detail__category {
    width: fit-content;
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #b8d6e9;
    border-radius: 999px;
    color: #075b96;
    background: #eef7fc;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1.3;
    text-decoration: none;
}

.post-detail__category:hover {
    border-color: #0871b9;
    color: #071a2f;
    background: #ffffff;
}

.post-detail__category:focus-visible {
    outline: 0.2rem solid #0871b9;
    outline-offset: 0.2rem;
}

.post-detail__title {
    max-width: 18ch;
    margin: 0;
    color: #071a2f;
    font-size: clamp(2.25rem, 6vw, 4.9rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
}

.post-detail__summary {
    max-width: 52rem;
    margin: 1.35rem 0 0;
    color: #526172;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

/* ================================================================
   META
   ================================================================ */

.post-detail__meta {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.75rem 0 0;
}

.post-detail__meta > div {
    min-width: 10rem;
    padding: 0.8rem 1rem;
    border: 1px solid #d6e1ea;
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 72%);
}

.post-detail__meta dt {
    margin: 0 0 0.2rem;
    color: #73808e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.post-detail__meta dd {
    margin: 0;
    color: #172033;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.45;
}

/* ================================================================
   MAIN CONTAINER
   ================================================================ */

.post-detail__container {
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.post-detail__cover {
    margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}

.post-detail__cover img {
    display: block;
    width: 100%;
    max-height: 42rem;
    border: 1px solid #d9e3ec;
    border-radius: 1.2rem;
    background: #f3f7fa;
    box-shadow:
        0 1.5rem 3.5rem rgb(7 26 47 / 10%);
    object-fit: cover;
}

/* ================================================================
   CONTENT LAYOUT
   ================================================================ */

.post-detail__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(16rem, 20rem);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.post-detail__content {
    min-width: 0;
}

/* ================================================================
   RICH CONTENT
   ================================================================ */

.rich-content {
    color: #263142;
    font-size: clamp(1rem, 1.3vw, 1.08rem);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.rich-content > :first-child {
    margin-top: 0;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    color: #071a2f;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.rich-content h2 {
    margin: 2.2em 0 0.7em;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.rich-content h3 {
    margin: 1.9em 0 0.65em;
    font-size: clamp(1.25rem, 2.3vw, 1.6rem);
}

.rich-content h4 {
    margin: 1.65em 0 0.55em;
    font-size: 1.15rem;
}

.rich-content p {
    margin: 0 0 1.25em;
}

.rich-content ul,
.rich-content ol {
    margin: 0 0 1.4em;
    padding-left: 1.4rem;
}

.rich-content li + li {
    margin-top: 0.45rem;
}

.rich-content a {
    color: #075b96;
    font-weight: 700;
    text-decoration-thickness: 0.08rem;
    text-underline-offset: 0.18rem;
}

.rich-content a:hover {
    color: #071a2f;
}

.rich-content a:focus-visible {
    border-radius: 0.2rem;
    outline: 0.2rem solid #0871b9;
    outline-offset: 0.2rem;
}

.rich-content strong {
    color: #172033;
}

.rich-content blockquote {
    margin: 1.75rem 0;
    padding: 1.1rem 1.3rem;
    border-left: 0.28rem solid #0871b9;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #334155;
    background: #eef6fb;
}

.rich-content blockquote > :last-child {
    margin-bottom: 0;
}

.rich-content hr {
    height: 1px;
    margin: 2.5rem 0;
    border: 0;
    background: #d9e3ec;
}

.rich-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-block: 1.5rem;
    border-radius: 0.75rem;
}

.rich-content figure {
    margin: 1.75rem 0;
}

.rich-content figcaption {
    margin-top: 0.6rem;
    color: #697787;
    font-size: 0.85rem;
    line-height: 1.55;
}

/* ================================================================
   TABLES
   ================================================================ */

.rich-content .table,
.rich-content figure.table {
    width: 100%;
    margin: 1.75rem 0;
    overflow-x: auto;
}

.rich-content table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    background: #ffffff;
}

.rich-content th,
.rich-content td {
    padding: 0.8rem 0.9rem;
    border: 1px solid #d7e1ea;
    text-align: left;
    vertical-align: top;
}

.rich-content th {
    color: #071a2f;
    background: #eef4f8;
    font-size: 0.85rem;
    font-weight: 850;
}

.rich-content td {
    color: #344152;
}

/* ================================================================
   EMBEDS / IFRAMES
   ================================================================ */

.rich-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 26rem;
    margin: 1.75rem 0;
    border: 0;
    border-radius: 0.9rem;
    background: #edf2f6;
}

.rich-content .media {
    width: 100%;
    margin: 1.75rem 0;
}

.rich-content .media > div {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
    border-radius: 0.9rem;
}

.rich-content .media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
}

/* ================================================================
   ASIDE
   ================================================================ */

.post-detail__aside {
    min-width: 0;
}

.post-detail__info-card {
    padding: 1.25rem;
    border: 1px solid #d9e3ec;
    border-radius: 1rem;
    background: #f8fafc;
}

.post-detail__info-card h2 {
    margin: 0;
    color: #071a2f;
    font-size: 1.05rem;
    line-height: 1.35;
}

.post-detail__info-card dl {
    display: grid;
    gap: 0;
    margin: 1rem 0 0;
}

.post-detail__info-card dl > div {
    display: grid;
    gap: 0.2rem;
    padding-block: 0.85rem;
    border-top: 1px solid #dde5ec;
}

.post-detail__info-card dt {
    color: #758291;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.post-detail__info-card dd {
    margin: 0;
    color: #172033;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.post-detail__info-card a {
    color: #075b96;
    text-decoration: none;
}

.post-detail__info-card a:hover {
    color: #071a2f;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

/* ================================================================
   GALLERY
   ================================================================ */

.post-gallery {
    margin-top: clamp(3rem, 7vw, 5rem);
    padding-top: clamp(2rem, 5vw, 3rem);
    border-top: 1px solid #dce5ed;
}

.post-gallery__heading {
    margin-bottom: 1.5rem;
}

.post-gallery__eyebrow {
    margin: 0 0 0.35rem;
    color: #0871b9;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.post-gallery__heading h2 {
    margin: 0;
    color: #071a2f;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.25;
}

.post-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.post-gallery__item {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid #d9e3ec;
    border-radius: 0.9rem;
    background: #ffffff;
}

.post-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #edf2f6;
    object-fit: cover;
}

.post-gallery__item figcaption {
    padding: 0.8rem 0.9rem;
    color: #667585;
    font-size: 0.85rem;
    line-height: 1.55;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 980px) {
    .post-detail__layout {
        grid-template-columns: 1fr;
    }

    .post-detail__aside {
        order: -1;
    }

    .post-detail__info-card {
        width: 100%;
    }

    .post-detail__info-card dl {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .post-detail__info-card dl > div {
        padding: 0;
        border-top: 0;
    }
}

@media (max-width: 700px) {
    .post-detail__hero {
        padding-block: 3.25rem;
    }

    .post-detail__title {
        max-width: none;
    }

    .post-detail__meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .post-detail__meta > div {
        min-width: 0;
    }

    .post-detail__cover img {
        border-radius: 0.85rem;
    }

    .post-detail__info-card dl {
        grid-template-columns: 1fr;
    }

    .post-detail__info-card dl > div {
        padding-block: 0.8rem;
        border-top: 1px solid #dde5ec;
    }

    .post-gallery__grid {
        grid-template-columns: 1fr;
    }

    .rich-content iframe {
        min-height: 20rem;
    }
}

@media (max-width: 480px) {
    .post-breadcrumb [aria-current="page"] {
        max-width: 14rem;
    }

    .post-detail__container {
        padding-block: 2.25rem;
    }

    .rich-content {
        font-size: 1rem;
    }

    .rich-content iframe {
        min-height: 16rem;
    }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

@media (forced-colors: active) {
    .post-detail__meta > div,
    .post-detail__cover img,
    .post-detail__info-card,
    .post-gallery__item,
    .rich-content th,
    .rich-content td {
        border-color: CanvasText;
    }

    .post-detail__hero::after {
        background: CanvasText;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-detail__category {
        transition: none;
    }
}