/* ================================================================
   POST LIST
   Haberler, duyurular ve geçmiş etkinlikler
   ================================================================ */

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.75rem, 8vw, 6.5rem);
    border-bottom: 1px solid #dbe4ec;
    background:
        radial-gradient(
            circle at 88% 12%,
            rgb(8 113 185 / 13%),
            transparent 24rem
        ),
        linear-gradient(
            145deg,
            #f7fafc 0%,
            #ffffff 52%,
            #edf5fa 100%
        );
}

.page-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.22rem;
    background:
        linear-gradient(
            90deg,
            #0871b9,
            #60a5d3,
            #d8ad4a
        );
    content: "";
}

.page-hero .site-container {
    position: relative;
    z-index: 1;
}

.page-hero__eyebrow {
    margin: 0 0 0.8rem;
    color: #0871b9;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero__title {
    max-width: 18ch;
    margin: 0;
    color: #071a2f;
    font-size: clamp(2.3rem, 6vw, 4.75rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.page-hero__summary {
    max-width: 52rem;
    margin: 1.25rem 0 0;
    color: #516071;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.75;
}

/* ================================================================
   LIST SECTION
   ================================================================ */

.post-list-section {
    padding-block: clamp(3rem, 7vw, 6rem);
    background: #f5f8fb;
}

/* ================================================================
   POST GRID
   ================================================================ */

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

/* ================================================================
   POST CARD
   ================================================================ */

.post-card {
    min-width: 0;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #d9e3ec;
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow:
        0 1.25rem 3rem rgb(7 26 47 / 7%);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.post-card:hover {
    border-color: #b8cedd;
    box-shadow:
        0 1.6rem 3.6rem rgb(7 26 47 / 12%);
    transform: translateY(-0.25rem);
}

/* ================================================================
   CARD IMAGE
   ================================================================ */

.post-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(
            145deg,
            #e8eff5,
            #f7fafc
        );
}

.post-card__image::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgb(7 26 47 / 18%) 100%
        );
    content: "";
    pointer-events: none;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.035);
}

/* ================================================================
   CARD CONTENT
   ================================================================ */

.post-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: clamp(1.15rem, 2.5vw, 1.5rem);
}

.post-card__category {
    width: fit-content;
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid #b8d6e9;
    border-radius: 999px;
    color: #075b96;
    background: #eef7fc;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.3;
}

.post-card__title {
    margin: 0;
    color: #071a2f;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
}

.post-card__title a:hover {
    color: #0871b9;
}

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

.post-card__summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.85rem 0 0;
    color: #5c6978;
    font-size: 0.94rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.post-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: 1rem;
    color: #748190;
    font-size: 0.78rem;
    line-height: 1.5;
}

.post-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-card__meta span + span::before {
    color: #aab6c1;
    content: "•";
}

/* ================================================================
   CARD BUTTON
   ================================================================ */

.post-card__button {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1.25rem;
    color: #075b96;
    font-size: 0.88rem;
    font-weight: 850;
    text-decoration: none;
}

.post-card__button:hover {
    color: #071a2f;
}

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

/* ================================================================
   EMPTY STATE
   ================================================================ */

.post-list-section .empty-state {
    max-width: 42rem;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px dashed #b6c6d4;
    border-radius: 1rem;
    background: #ffffff;
    text-align: center;
}

.post-list-section .empty-state h2 {
    margin: 0;
    color: #071a2f;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.post-list-section .empty-state p {
    margin: 0.75rem 0 0;
    color: #5c6978;
    line-height: 1.7;
}

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

@media (max-width: 1050px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .page-hero {
        padding-block: 3.25rem;
    }

    .page-hero__title {
        max-width: none;
    }

    .post-list-section {
        padding-block: 2.5rem;
    }

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

    .post-card__summary {
        -webkit-line-clamp: 3;
    }
}

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

@media (forced-colors: active) {
    .post-card,
    .post-card__category,
    .post-list-section .empty-state {
        border-color: CanvasText;
    }

    .page-hero::after {
        background: CanvasText;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-card,
    .post-card__image img {
        transition: none;
    }

    .post-card:hover,
    .post-card:hover .post-card__image img {
        transform: none;
    }
}