/* 
 * Card Games Encyclopedia - Style Sheet
 * Theme: Classic Casino Aesthetic with Card Table Layout
 */

/* ===== CSS Variables ===== */
:root {
    /* Color Palette */
    --primary-brown: #7c2d12;
    --secondary-green: #14532d;
    --accent-red: #dc2626;
    --accent-black: #000000;
    --bg-dark: #0b0f0c;
    --text-off-white: #f8fafc;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Serif 4', serif;
    
    /* Spacing */
    --container-max-width: 1280px;
    --section-padding: 4rem 0;
    --content-gap: 2rem;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-off-white);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(124, 45, 18, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(20, 83, 45, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-off-white);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: rgba(248, 250, 252, 0.9);
}

a {
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ef4444;
}

/* ===== Container ===== */
.atlas-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Header ===== */
.game-atlas-header {
    background-color: rgba(11, 15, 12, 0.95);
    border-bottom: 1px solid rgba(124, 45, 18, 0.3);
    padding: 1.5rem 0;
}

.atlas-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-off-white);
    text-decoration: none;
}

.brand-icon {
    font-size: 2rem;
    color: var(--accent-red);
}

.brand-text {
    color: var(--text-off-white);
}

.atlas-navigation {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.nav-link-item {
    color: rgba(248, 250, 252, 0.8);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link-item:hover {
    color: var(--text-off-white);
    border-bottom-color: var(--accent-red);
}

/* ===== Main Content ===== */
.atlas-main-content {
    min-height: calc(100vh - 300px);
}

/* ===== Hero Section ===== */
.hero-encyclopedia {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(11, 15, 12, 0.9) 0%, rgba(11, 15, 12, 0.7) 100%);
}

.hero-main-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-off-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: rgba(248, 250, 252, 0.85);
    line-height: 1.8;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-capsule {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem;
    background-color: rgba(124, 45, 18, 0.2);
    border: 1px solid rgba(124, 45, 18, 0.4);
    border-radius: 8px;
    min-width: 150px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Encyclopedia Content ===== */
.encyclopedia-content {
    padding: var(--section-padding);
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-off-white);
    border-bottom: 3px solid var(--primary-brown);
    padding-bottom: 1rem;
}

.content-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(248, 250, 252, 0.85);
}

/* ===== Game Category Zones ===== */
.game-category-zone {
    margin: 5rem 0;
}

.category-header-block {
    margin-bottom: 3rem;
}

.category-main-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-off-white);
}

.category-description {
    font-size: 1.15rem;
    color: rgba(248, 250, 252, 0.75);
    max-width: 700px;
}

/* ===== Game Grid Layout ===== */
.game-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.game-card-tile {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background-color: rgba(20, 83, 45, 0.15);
    border: 1px solid rgba(20, 83, 45, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.game-card-tile:hover {
    background-color: rgba(20, 83, 45, 0.25);
    border-color: rgba(20, 83, 45, 0.5);
    transform: translateY(-4px);
}

.coming-soon-tile {
    opacity: 0.6;
    cursor: not-allowed;
}

.coming-soon-tile:hover {
    transform: none;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.game-card-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-off-white);
}

.game-card-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.75);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-difficulty {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(124, 45, 18, 0.3);
    border: 1px solid rgba(124, 45, 18, 0.5);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
}

/* ===== Category Insights ===== */
.category-insights {
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(124, 45, 18, 0.1);
    border-left: 4px solid var(--primary-brown);
    border-radius: 4px;
}

.insights-heading {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-off-white);
}

/* ===== Resource Section ===== */
.resource-section {
    margin: 5rem 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-block {
    padding: 2rem;
    background-color: rgba(20, 83, 45, 0.1);
    border: 1px solid rgba(20, 83, 45, 0.2);
    border-radius: 8px;
}

.resource-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-off-white);
}

.resource-internal-link {
    color: var(--text-off-white);
    border-bottom: 2px solid var(--accent-red);
}

.resource-internal-link:hover {
    color: var(--accent-red);
}

/* ===== Why Learn Section ===== */
.why-learn-section {
    margin: 5rem 0;
    padding: 3rem;
    background-color: rgba(124, 45, 18, 0.1);
    border-radius: 8px;
}

/* ===== Getting Started Section ===== */
.getting-started-section {
    margin: 5rem 0;
}

.inline-text-link {
    color: var(--accent-red);
    border-bottom: 1px solid var(--accent-red);
    font-weight: 500;
}

.inline-text-link:hover {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

/* ===== Footer ===== */
.atlas-footer-zone {
    background-color: rgba(11, 15, 12, 0.95);
    border-top: 1px solid rgba(124, 45, 18, 0.3);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-off-white);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.7);
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-off-white);
    margin-bottom: 0.5rem;
}

.footer-nav-link {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav-link:hover {
    color: var(--accent-red);
}

.footer-disclaimer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-disclaimer-text {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.6;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .atlas-container {
        padding: 0 1.5rem;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .game-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-stats-row {
        flex-direction: column;
        align-items: center;
    }
    
    .atlas-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .atlas-container {
        padding: 0 1rem;
    }
}
