/* ==========================================================================
   Resources CSS - Midnight Plum & Radiant Gold Theme (show.html)
   ========================================================================== */

.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: 28px;
    font-weight: 800;
    margin: 0 0 16px 0;
    text-align: center;
    color: var(--color-white);
    line-height: 1.25;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

@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: 40px;
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 22px;
    font-weight: 800;
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Show Landing Page - Focused Game Showcase
   ========================================================================== */
.show-landing {
    background: linear-gradient(145deg, #17092c 0%, #100520 100%);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 20px;
    padding: 25px 20px 35px;
    margin: 15px auto 35px;
    max-width: 920px; /* Constrains section width so it is not overwhelmingly wide */
    box-shadow: var(--shadow-md), 0 0 35px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .show-landing {
        padding: 35px 40px 45px;
    }
}

.back-link-wrapper {
    margin-bottom: 24px;
}

.back-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.25s ease, color 0.25s ease;
}

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

.article-header {
    margin-bottom: 24px;
    text-align: center;
}

.article-meta {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.article-meta .tag {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

/* ==========================================================================
   Article Hero Image - Fixed Width & Full Image Visibility
   ========================================================================== */
.article-hero {
    margin: 0 auto 28px;
    max-width: 480px; /* Optimal game artwork size, avoids being overly wide */
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 183, 3, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 183, 3, 0.2);
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, rgba(14, 5, 28, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px; /* Prevents collapsing to a thin flat line */
    position: relative;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-hero:hover {
    border-color: var(--color-primary);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), var(--glow-gold);
    transform: translateY(-3px);
}

.article-hero .hero-img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain; /* CRITICAL: Displays 100% of the image in full without cropping */
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

/* ==========================================================================
   Action CTA Buttons
   ========================================================================== */
.action-buttons {
    display: flex;
    gap: 14px;
    margin: 25px 0 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ffc93c 0%, #ff9500 100%);
    color: #0c0616;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 13px 28px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 183, 3, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #fff;
    color: #0c0616;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(168, 85, 247, 0.14);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.28);
    border-color: var(--color-secondary);
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

/* ==========================================================================
   Content Rich Text
   ========================================================================== */
.landing-content.rich-text {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.8;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    padding-top: 25px;
}
.landing-content.rich-text img {
    width: 100%;
}

.landing-content.rich-text p {
    margin-bottom: 18px;
}

.landing-content.rich-text h2,
.landing-content.rich-text h3 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-top: 30px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.landing-content.rich-text h2 {
    font-size: 24px;
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
}

.landing-content.rich-text h3 {
    font-size: 20px;
    color: #fff;
}

.landing-content.rich-text ul,
.landing-content.rich-text ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.landing-content.rich-text li {
    margin-bottom: 8px;
}

.back-home-container {
    padding-top: 25px;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    text-align: center;
}

.btn-home {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.btn-home:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   List Section / Related Articles
   ========================================================================== */
.list-section {
    padding: 30px 0 20px;
    max-width: 920px;
    margin: 0 auto;
}

.list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.list-card {
    background: linear-gradient(145deg, #17092c 0%, #100520 100%);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
}

.list-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), var(--glow-gold);
}

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

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

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

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-transform: uppercase;
}

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

.card-body p {
    color: var(--color-muted);
    font-size: 12.5px;
    line-height: 1.6;
    margin: 0;
}
