/* Resources CSS - Luxury Dark Mode */

.page-container {
    padding: 30px 15px;
    min-height: 80vh;
    max-width: 1280px;
    margin: 0 auto;
}

.page-title,
.landing-title,
.article-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
    color: var(--color-white);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .page-title,
    .landing-title,
    .article-title {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .page-title,
    .landing-title,
    .article-title {
        font-size: 42px;
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--color-white);
    margin-bottom: 24px;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 12px;
}

/* List Items */
.list-section {
    padding: 30px 0 40px;
}

.list-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.list-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.list-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(212, 175, 122, 0.15);
}

.list-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.list-card:hover img {
    transform: scale(1.03);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.card-body .date {
    font-size: 11px;
    color: var(--color-primary);
    background: rgba(212, 175, 122, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body h2,
.card-body h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.4;
}

.card-body h2 a,
.card-body h3 a {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
    color: var(--color-primary);
}

.card-body p {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.page-btn {
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: var(--color-primary);
    color: #061110;
    box-shadow: var(--shadow-md), var(--glow-primary);
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

/* Article Detail & Show Pages */
.article-detail,
.show-landing {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    animation: fadeUpIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.article-hero {
    margin: -24px -24px 35px -24px;
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    border-bottom: 3px solid var(--color-primary);
}

.article-hero .hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 1.2s ease;
}

.article-detail:hover .hero-img,
.show-landing:hover .hero-img {
    transform: scale(1.02);
}

.article-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-meta .tag {
    background: var(--color-primary);
    color: #061110;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content,
.landing-content,
.rich-text {
    line-height: 1.8;
    color: var(--color-muted);
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-text p {
    margin-bottom: 24px;
}

.rich-text img {
    max-width: 100%;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

/* Action Buttons for Show */
.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    flex: 1;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ba9560 100%);
    color: #061110;
    box-shadow: 0 4px 15px rgba(212, 175, 122, 0.35);
}

.btn-primary:hover {
    background: var(--color-white);
    color: #061110;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(212, 175, 122, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .page-container {
        padding: 40px 30px;
    }

    .list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .article-detail,
    .show-landing {
        padding: 50px;
        margin: 0 auto 50px;
        max-width: 960px;
    }

    .article-hero {
        margin: -50px -50px 40px -50px;
    }

    .article-hero .hero-img {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .list-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-detail,
    .show-landing {
        max-width: 1080px;
    }

    .article-hero .hero-img {
        height: 450px;
    }
}

/* Back to Home Buttons and Links */
.back-link-wrapper {
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-link:hover {
    color: var(--color-primary);
    transform: translateX(-4px);
}

.back-home-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    width: 100%;
}

.btn-home:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(212, 175, 122, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 175, 122, 0.15);
}

.btn-home i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-home:hover i {
    transform: scale(1.15);
}

@media (min-width: 480px) {
    .btn-home {
        width: auto;
    }
}
