/* ── Resources: list, news, show pages ── */

.page-container {
    padding-top: 16px;
    min-height: 80vh;
}

.page-title,
.landing-title,
.article-title {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--color-white);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ── List ── */
.list-section {
    padding: 10px 0 32px;
}

.list-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    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);
    display: flex;
    flex-direction: column;
}

.list-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-strong);
    box-shadow: 0 10px 32px rgba(0,0,0,0.5);
}

.list-card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.9);
}

.list-card:hover img {
    transform: scale(1.04);
    filter: brightness(1);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.card-body .date {
    font-size: 10px;
    color: var(--color-primary);
    font-weight: 600;
    font-family: 'Inter', 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.card-body h2,
.card-body h3 {
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', 'Roboto', sans-serif;
    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-primary);
}

.card-body p {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.page-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.page-btn:hover {
    background: rgba(0,229,195,0.08);
    color: var(--color-primary);
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
}

/* ── 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: 24px;
    box-shadow: var(--shadow-card);
    animation: fadeUpIn 0.45s ease-out forwards;
    overflow: hidden;
    position: relative;
}

.article-detail::before,
.show-landing::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

@keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(14px); }
    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: 50%;
    background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
    pointer-events: none;
}

.article-hero .hero-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.85) saturate(0.9);
}

.article-detail:hover .hero-img,
.show-landing:hover .hero-img {
    transform: scale(1.03);
    filter: brightness(0.95) saturate(1);
}

.article-header {
    position: relative;
    z-index: 2;
    margin-top: -55px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 22px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--color-muted);
}

.article-meta .tag {
    background: rgba(0,229,195,0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0,229,195,0.2);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta .date {
    font-size: 11px;
    color: var(--color-muted);
    font-weight: 500;
}

.article-content,
.landing-content,
.rich-text {
    line-height: 1.8;
    color: var(--color-muted);
    font-size: 14px;
}

.rich-text p {
    margin-bottom: 16px;
    color: var(--color-muted);
}

.rich-text h2, .rich-text h3 {
    color: var(--color-white);
    font-family: 'Inter', 'Roboto', sans-serif;
    margin: 22px 0 10px;
    font-weight: 700;
}

.rich-text img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 18px 0;
    border: 1px solid var(--color-border);
}

/* ── Action Buttons ── */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', 'Roboto', sans-serif;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: #04090f;
    box-shadow: 0 4px 16px rgba(0,229,195,0.2);
}

.btn-primary:hover {
    background: #00ffd5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,229,195,0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-muted);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-border-strong);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ── Desktop ── */
@media (min-width: 768px) {
    .page-container { padding: 32px 40px; }

    .list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .article-detail,
    .show-landing {
        padding: 48px;
        max-width: 900px;
        margin: 0 auto 40px;
    }

    .article-hero {
        margin: -48px -48px 36px;
    }

    .article-hero .hero-img { height: 370px; }

    .section-title { font-size: 22px; }
    .page-title, .landing-title, .article-title { font-size: 32px; }
}

@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: 410px; }
}
