/* Resources CSS (List, News, Show pages) */

:root {
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-container {
    padding: 10px 10px 20px;
    min-height: 80vh;
}

.page-title,
.landing-title,
.article-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: left;
    background: linear-gradient(90deg, #ffffff, #f0ca00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    line-height: 1.25;
}

.section-title {
    font-size: 20px;
    color: var(--color-yellow);
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    text-align: center;
}

/* Article Detail & Show Pages (Glassmorphism & Hero) */
.article-detail,
.show-landing {
    background: linear-gradient(145deg, rgba(42, 22, 13, 0.95), rgba(30, 30, 35, 0.9));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeUpIn 0.8s ease-out forwards;
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-hero {
    margin: -20px -20px 25px -20px;
    position: relative;
    overflow: hidden;
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(30, 30, 35, 0.95) 0%, rgba(30, 30, 35, 0.6) 50%, transparent 100%);
    pointer-events: none;
}

.article-hero .hero-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-detail:hover .hero-img,
.show-landing:hover .hero-img {
    transform: scale(1.05);
}

.article-header {
    position: relative;
    z-index: 2;
    margin-top: -60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bda28b;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.article-meta .tag {
    background: var(--color-yellow);
    color: #000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 214, 0, 0.3);
}

.article-content,
.landing-content,
.rich-text {
    line-height: 1.7;
    color: #e2e8f0;
    font-size: 15px;
    position: relative;
    z-index: 2;
}

.rich-text p {
    margin-bottom: 15px;
    color: #bda28b;
}

.rich-text img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Action Buttons for Show */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-yellow), #e5bd00);
    color: #000;
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 214, 0, 0.4);
    background: linear-gradient(135deg, #ffe033, var(--color-yellow));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
}

/* Related Articles Section */
.related-section {
    padding-top: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.related-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, #362015 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,215,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,215,0,0.2);
}

.related-image-wrapper {
    display: block;
    overflow: hidden;
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover .related-image {
    transform: scale(1.08);
}

.related-content {
    padding: 20px;
}

.related-date {
    display: inline-block;
    font-size: 12px;
    color: var(--color-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.related-title a {
    color: var(--color-white);
    transition: color 0.2s;
}

.related-title a:hover {
    color: var(--color-yellow);
}

.related-excerpt {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-yellow);
    transition: gap 0.2s;
}

.related-read-more:hover {
    gap: 12px;
}

/* Desktop Full Width overrides for resources */
@media (min-width: 768px) {
    .page-container {
        padding: 40px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-title,
    .landing-title,
    .article-title {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .action-buttons {
        flex-direction: row;
    }

    .article-detail,
    .show-landing {
        padding: 50px;
        margin: 0 auto 40px;
        max-width: 900px;
    }

    .article-hero {
        margin: -50px -50px 40px -50px;
    }

    .article-hero .hero-img {
        height: 400px;
    }

    .article-header {
        margin-top: -80px;
    }

    .section-title {
        font-size: 26px;
    }
}

@media (min-width: 1024px) {
    .page-container {
        padding: 50px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .article-detail,
    .show-landing {
        max-width: 1000px;
        padding: 60px;
    }

    .article-hero {
        margin: -60px -60px 40px -60px;
    }

    .article-hero .hero-img {
        height: 450px;
    }
}