/* Resources CSS (List, News, Show pages) */

.page-container {
    padding-top: 20px;
    min-height: 80vh;
}

.page-title,
.landing-title,
.article-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    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: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    text-align: center;
}

/* List Items */
.list-section {
    padding: 10px 0 30px;
}

.list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.list-card {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-panel));
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 214, 0, 0.05);
    border-color: rgba(255, 214, 0, 0.2);
}

.list-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    /* For scale bug */
}

.card-body .date {
    font-size: 13px;
    color: #948b81;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body h2,
.card-body h3 {
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.4;
}

.card-body h2 a,
.card-body h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.card-body h2 a:hover,
.card-body h3 a:hover {
    color: var(--primary-color);
}

.card-body p {
    color: #bda28b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 5px 15px rgba(255, 214, 0, 0.3);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Article Detail & Show Pages (Glassmorphism & Hero) */
.article-detail,
.show-landing {
    background: rgba(30, 30, 35, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeUpIn 0.8s ease-out forwards;
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-hero {
    margin: -25px -25px 30px -25px;
    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: 300px;
    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: -80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #bda28b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.article-meta .tag {
    background: var(--primary-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    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.8;
    color: #e2e8f0;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.rich-text p {
    margin-bottom: 20px;
    color: #bda28b;
}

.rich-text img {
    max-width: 100%;
    border-radius: 12px;
    margin: 25px 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;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    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(--primary-color), #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(--primary-color));
}

.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);
}

/* Desktop Full Width overrides for resources */
@media (min-width: 768px) {
    .page-container {
        padding: 40px;
    }

    .list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .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;
    }

    .section-title {
        font-size: 26px;
    }
}

@media (min-width: 1024px) {
    .page-container {
        padding: 50px;
    }

    .list-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-detail,
    .show-landing {
        max-width: 1000px;
        padding: 60px;
    }

    .article-hero {
        margin: -60px -60px 40px -60px;
    }

    .article-hero .hero-img {
        height: 450px;
    }
}