/* ── Resources: list, news, show pages ── */

.page-container {
    padding-top: 16px;
    min-height: 80vh;
}

.page-title,
.landing-title,
.article-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #f0f6fc 30%, #f0b429);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

/* ── List ── */
.list-section {
    padding: 10px 0 32px;
}

.list-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.list-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.list-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240,180,41,0.2);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.list-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.list-card:hover img { transform: scale(1.04); }

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-body .date {
    font-size: 11px;
    color: var(--color-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body h2,
.card-body h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.card-body h2 a,
.card-body h3 a {
    color: var(--color-white);
    transition: var(--transition);
}

.card-body h2 a:hover,
.card-body h3 a:hover {
    color: var(--color-yellow);
}

.card-body p {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.page-btn {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--color-yellow);
    color: #0d1117;
    border-color: var(--color-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(240,180,41,0.3);
}

/* ── Article / Show ── */
.article-detail,
.show-landing {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
    animation: fadeUpIn 0.5s ease-out forwards;
    overflow: hidden;
}

@keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.article-hero {
    margin: -24px -24px 28px;
    overflow: hidden;
    position: relative;
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
    pointer-events: none;
}

.article-hero .hero-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-detail:hover .hero-img,
.show-landing:hover .hero-img {
    transform: scale(1.04);
}

.article-header {
    position: relative;
    z-index: 2;
    margin-top: -60px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--color-muted);
}

.article-meta .tag {
    background: linear-gradient(135deg, #f0b429, #e09a10);
    color: #0d1117;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta .date {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 500;
}

.article-content,
.landing-content,
.rich-text {
    line-height: 1.8;
    color: #c9d1d9;
    font-size: 15px;
}

.rich-text p {
    margin-bottom: 18px;
    color: var(--color-muted);
}

.rich-text h2, .rich-text h3 {
    color: var(--color-white);
    margin: 24px 0 12px;
    font-weight: 700;
}

.rich-text img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 1px solid var(--color-border);
}

/* ── Action Buttons ── */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px dashed var(--color-border);
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 800;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #f0b429, #e09a10);
    color: #0d1117;
    box-shadow: 0 4px 18px rgba(240,180,41,0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240,180,41,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--color-white);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
}

/* ── Desktop ── */
@media (min-width: 768px) {
    .page-container { padding: 32px 40px; }

    .list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .article-detail,
    .show-landing {
        padding: 48px;
        max-width: 900px;
        margin: 0 auto 40px;
    }

    .article-hero {
        margin: -48px -48px 36px;
    }

    .article-hero .hero-img { height: 380px; }

    .section-title { font-size: 24px; }
    .page-title, .landing-title, .article-title { font-size: 34px; }
}

@media (min-width: 1024px) {
    .page-container { padding: 40px 48px; }

    .list-grid { grid-template-columns: repeat(3, 1fr); }

    .article-detail,
    .show-landing {
        max-width: 960px;
        padding: 56px;
    }

    .article-hero {
        margin: -56px -56px 40px;
    }

    .article-hero .hero-img { height: 420px; }
}
