/* =============================================================
   Adflipr — What's New Page Styles
   File: whats-new.css  →  assests/css/whats-new.css
============================================================= */

/* ── Wrapper ─────────────────────────────────────────────── */
.awn-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.awn-empty {
    text-align: center;
    color: #64748b;
    padding: 60px 0;
    font-size: 16px;
}

/* ── Year Tab Row ─────────────────────────────────────────── */
.awn-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.awn-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 24px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
    line-height: 1;
}

.awn-tab:hover:not(.is-active) {
    border-color: #94a3b8;
    color: #1e293b;
    background: #f8fafc;
}

.awn-tab.is-active {
    background: #1e2d40;
    color: #fff;
    border-color: #1e2d40;
    box-shadow: 0 2px 8px rgba(30, 45, 64, 0.28);
}

/* ── Year Panels ──────────────────────────────────────────── */
.awn-panel {
    display: none;
}

.awn-panel.is-active {
    display: block;
    animation: awnFadeIn 0.22s ease;
}

@keyframes awnFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Post Card ────────────────────────────────────────────── */
/* Two-column layout: image/logo on the left, content on the right */
.awn-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 32px 28px 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.18s;
}

.awn-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
}

/* Hidden cards (beyond initial load limit) */
.awn-card--hidden {
    display: none;
}

/* ── Card Media (left column) ────────────────────────────── */
.awn-card-media {
    flex: 0 0 200px;
    width: 200px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.awn-card-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.awn-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.awn-card:hover .awn-card-image {
    transform: scale(1.03);
}

/* Fallback state: no featured image, show the Adflipr logo centered
   and contained, instead of stretched/cropped */
.awn-card-media--fallback {
    background: #f1f5f9;
}

.awn-card-image--logo {
    width: 52%;
    height: 52%;
    object-fit: contain;
}

.awn-card-media--fallback:hover .awn-card-image--logo {
    transform: none;
}

/* ── Card Body (right column) ────────────────────────────── */
.awn-card-body {
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Card Top Row ─────────────────────────────────────────── */
/* Flex row: meta info on left, badge on right */
.awn-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

/* ── Meta (date + sub-label) ─────────────────────────────── */
.awn-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.awn-meta-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.awn-date {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    line-height: 1.3;
}

.awn-sub-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.3;
}

/* ── New Release Badge ────────────────────────────────────── */
/* Accent color — do not change */
.awn-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 999px;
    border: 1.5px solid #0d9488;
    color: #0d9488;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: transparent;
    white-space: nowrap;
    margin-top: 2px;
}

/* ── Card Title ───────────────────────────────────────────── */
.awn-title {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 14px;
}

.awn-title a {
    color: inherit;
    text-decoration: none;
}

.awn-title a:hover {
    color: #2D3A8C;
}

/* ── Card Content ─────────────────────────────────────────── */
.awn-content {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

/* Truncate to 3 lines, regardless of the original post length */
.awn-excerpt {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Show More Button ─────────────────────────────────────── */
.awn-show-more-wrap {
    text-align: center;
    padding: 12px 0 4px;
}

.awn-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 32px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.awn-show-more-btn:hover {
    border-color: #1e2d40;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.awn-show-more-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.awn-show-more-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .awn-wrapper {
        padding: 32px 16px 60px;
    }

    .awn-card {
        flex-direction: column;
        padding: 20px 18px 24px;
        gap: 18px;
    }

    .awn-card-media {
        width: 100%;
        flex: 0 0 auto;
        aspect-ratio: 16 / 9;
    }

    .awn-card-image--logo {
        width: 34%;
        height: 34%;
    }

    /* Stack badge below meta on mobile */
    .awn-card-top {
        flex-direction: column;
        gap: 12px;
    }

    .awn-title {
        font-size: 18px;
    }

    .awn-tab {
        padding: 8px 18px;
        font-size: 14px;
    }
}