/* ============================================
   RESOURCES.CSS — Show / Article & Category Pages
   Luxury Midnight Onyx & Royal Gold Casino Theme
   ============================================ */

.page-container {
    padding-top: 2rem;
    padding-bottom: 5rem;
    min-height: 75vh;
}

/* ── ARTICLE / SHOW LANDING SECTION ── */
.show-landing {
    background: #111724;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 184, 0, 0.22);
    padding: 3.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 184, 0, 0.1);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.article-header {
    position: static;
    background: transparent;
    border-bottom: 1px solid rgba(255, 184, 0, 0.15);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

/* ── BACK TO INDEX / HOME BUTTONS ── */
.article-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-nav-bar .article-meta {
    margin-bottom: 0;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 184, 0, 0.3);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.btn-back-home i {
    font-size: 1.05rem;
    color: var(--primary);
    transition: transform 0.25s var(--ease);
}

.btn-back-home:hover {
    color: #080B11;
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
    transform: translateX(-3px);
}

.btn-back-home:hover i {
    color: #080B11;
    transform: translateX(-3px);
}

.article-footer-nav {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 184, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back-home-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #080B11;
    background: var(--primary-gradient);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.35);
    transition: var(--transition);
    text-decoration: none;
}

.btn-back-home-lg i {
    font-size: 1.2rem;
}

.btn-back-home-lg:hover {
    background: linear-gradient(135deg, #FFE066 0%, #FFB800 100%);
    box-shadow: 0 10px 28px rgba(255, 184, 0, 0.5);
    transform: translateY(-2px);
    color: #080B11;
}

.article-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 184, 0, 0.12);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.landing-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.landing-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark-muted);
}

.landing-content img {
    border-radius: var(--radius-md);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 184, 0, 0.2);
    margin: 2rem 0;
    width: 100%;
}

.landing-content h2, 
.landing-content h3 {
    color: #FFFFFF;
    margin: 2.5rem 0 1rem;
}

.landing-content p {
    margin-bottom: 1.5rem;
}

.landing-content ul, 
.landing-content ol {
    margin-bottom: 1.8rem;
    padding-left: 1.5rem;
}

.landing-content li {
    margin-bottom: 0.6rem;
}

.landing-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.landing-content table th,
.landing-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 184, 0, 0.2);
    white-space: nowrap;
}

.landing-content table th {
    background: rgba(255, 184, 0, 0.1);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.landing-content pre,
.landing-content code {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.landing-content iframe,
.landing-content video {
    max-width: 100%;
    border-radius: var(--radius-md);
}

/* ── GALLERY IN SHOW PAGE ── */
.image-gallery-section {
    padding: 4rem 0;
}

.gallery-wrapper {
    margin-top: 2rem;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
}

.gallery-card {
    background: #111724;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 184, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 184, 0, 0.2);
    border-color: var(--primary);
}

.gallery-visual {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #060910;
}

.gallery-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.gallery-card:hover .gallery-visual img {
    transform: scale(1.08);
}

.gallery-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-meta {
    margin-bottom: 0.75rem;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255, 184, 0, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 184, 0, 0.25);
}

.gallery-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.gallery-excerpt {
    font-size: 0.9rem;
    color: var(--text-dark-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.gallery-footer {
    margin-top: auto;
}

.gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
}

.gallery-cta i {
    transition: transform 0.2s;
}

.gallery-card:hover .gallery-cta i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .page-container {
        padding-top: 1rem;
        padding-bottom: 3.5rem;
    }

    .show-landing {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
        margin-bottom: 2.5rem;
        border-radius: var(--radius-md);
    }

    .landing-title {
        font-size: clamp(1.6rem, 5.5vw, 2.4rem);
    }

    .landing-content {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .landing-content img {
        margin: 1.25rem 0;
    }

    .image-gallery-section {
        padding: 2.5rem 0;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-visual {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .show-landing {
        padding: 1.5rem 1rem;
        margin-top: 0.75rem;
        margin-bottom: 2rem;
    }

    .article-header {
        padding-bottom: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .gallery-body {
        padding: 1.25rem 1rem;
    }
}
