/* 
================================================================
NEW CREATIVE CONCEPT: MIDNIGHT CURIOSITY
Dark Fantasy Social Gaming Platform
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Backgrounds */
    --c-bg-base: #11100e; /* warm midnight black */
    --c-bg-s1: #1b1815; /* dark charcoal brown */
    --c-bg-s2: #25211c; /* aged surface */
    --c-bg-s3: #302a23; /* elevated surface */
    
    /* Accents */
    --c-copper: #c08457;
    --c-brass: #d6a85f;
    --c-sage: #7c8f6a;
    --c-plum: #6f5b7b;
    --c-burgundy: #4a2525;
    
    /* Text */
    --c-text-pri: #f5efe6;
    --c-text-sec: #d4c8b8;
    --c-text-mut: #9e9385;
    
    /* Borders */
    --b-copper: 1px solid rgba(192, 132, 87, 0.25);
    --b-brass: 1px solid rgba(214, 168, 95, 0.25);
    --b-light: 1px solid rgba(245, 239, 230, 0.1);
    --b-dark: 1px solid rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--c-bg-base);
    color: var(--c-text-pri);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    color: var(--c-text-pri);
}

a {
    color: var(--c-copper);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--c-brass);
}

.label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-text-mut);
    margin-bottom: 0.5rem;
}

.intro-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--c-text-sec);
    font-style: italic;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.fine-line-top { border-top: var(--b-light); }
.fine-line-bottom { border-bottom: var(--b-light); }
.copper-line { border-bottom: var(--b-copper); }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-copper);
    color: var(--c-bg-base);
    border: 1px solid var(--c-copper);
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: transparent;
    color: var(--c-copper);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: var(--b-copper);
    color: var(--c-text-sec);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--c-copper);
    color: var(--c-bg-base);
}

/* Theme Button Overrides */
.theme-dracula .btn-primary { background: var(--c-burgundy); border-color: var(--c-burgundy); color: var(--c-text-pri); }
.theme-dracula .btn-primary:hover { background: transparent; color: var(--c-burgundy); }
.theme-monster .btn-primary { background: var(--c-sage); border-color: var(--c-sage); color: var(--c-bg-base); }
.theme-monster .btn-primary:hover { background: transparent; color: var(--c-sage); }
.theme-potion .btn-primary { background: var(--c-plum); border-color: var(--c-plum); color: var(--c-text-pri); }
.theme-potion .btn-primary:hover { background: transparent; color: var(--c-plum); }

/* 18+ Strip */
.top-strip {
    background-color: var(--c-bg-s1);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-text-mut);
    border-bottom: var(--b-copper);
}

/* Header */
header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--b-light);
    position: relative;
    z-index: 100;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--c-text-pri);
    letter-spacing: 1px;
}

.header-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--c-text-mut);
    text-transform: uppercase;
}

.menu-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: var(--b-brass);
    background: transparent;
    color: var(--c-brass);
    font-size: 0.65rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
}

.menu-trigger:hover {
    background: var(--c-bg-s2);
}

/* Overlay Navigation */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-bg-base);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--b-light);
}
.nav-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--b-light);
}

.nav-links {
    list-style: none;
    text-align: center;
    position: relative;
    z-index: 2;
}

.nav-links li {
    margin: 1.5rem 0;
}

.nav-links a {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--c-text-sec);
    transition: color 0.4s ease;
}

.nav-links a:hover {
    color: var(--c-copper);
}

/* Hero Section */
.hero {
    padding: var(--space-xl) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 500px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

.hero p {
    color: var(--c-text-sec);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.hero-art {
    height: 600px;
    border: var(--b-light);
    background: var(--c-bg-s1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-art svg {
    width: 80%;
    height: 80%;
    opacity: 0.8;
}

/* Games Grid */
.games-section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.game-card {
    background: var(--c-bg-s1);
    border: var(--b-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-art {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: var(--b-light);
    background-color: var(--c-bg-s2);
}

.game-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.game-info p {
    color: var(--c-text-mut);
    margin-bottom: 2rem;
    flex: 1;
}

/* Notes Section */
.notes-section {
    padding: var(--space-xl) 0;
    background: var(--c-bg-s1);
    border-top: var(--b-copper);
    border-bottom: var(--b-copper);
}

.notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.notes-grid p {
    color: var(--c-text-sec);
    margin-bottom: 1.5rem;
}

/* Directory Links */
.directory-strip {
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-bottom: var(--b-light);
}

.dir-item {
    text-align: center;
}

.dir-item a {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: var(--c-text-sec);
}

.dir-item a:hover {
    color: var(--c-brass);
}

/* Responsible Section */
.resp-section {
    padding: var(--space-xl) 0;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.resp-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--c-brass);
}

.resp-section p {
    color: var(--c-text-mut);
}

/* Footer */
footer {
    background: var(--c-bg-s2);
    padding: var(--space-xl) 2rem 2rem;
    border-top: var(--b-light);
}

.footer-top {
    text-align: center;
    margin-bottom: 4rem;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 8vw; /* Huge text */
    line-height: 1;
    color: var(--c-bg-s3); /* Subtle watermark effect */
    letter-spacing: -2px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-copper);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--c-text-sec);
}

.footer-bottom {
    text-align: center;
    border-top: var(--b-light);
    padding-top: 2rem;
    font-size: 0.75rem;
    color: var(--c-text-mut);
}

.footer-disclaimer {
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-address {
    margin-bottom: 0.5rem;
}

/* Game Page Specifics */
.game-page-header {
    text-align: center;
    padding: var(--space-md) 0;
}

.game-frame {
    max-width: 900px;
    margin: 0 auto var(--space-xl);
    background: var(--c-bg-s1);
    padding: 2rem;
    border: var(--b-light);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

/* Theme specifics */
.theme-dracula { border-color: var(--c-burgundy); }
.theme-dracula::before { content:''; position:absolute; top:4px; left:4px; right:4px; bottom:4px; border: 1px solid rgba(192, 132, 87, 0.2); pointer-events:none;}

.theme-monster { border-color: var(--c-sage); }
.theme-monster::before { content:''; position:absolute; top:4px; left:4px; right:4px; bottom:4px; border: 1px dashed rgba(124, 143, 106, 0.3); pointer-events:none;}

.theme-potion { border-color: var(--c-plum); }
.theme-potion::before { content:''; position:absolute; top:4px; left:4px; right:4px; bottom:4px; border: 1px solid rgba(214, 168, 95, 0.2); pointer-events:none;}

.game-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Editorial / General Content Pages */
.editorial-page {
    padding: var(--space-xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.editorial-page h1 {
    font-size: 4rem;
    margin-bottom: 3rem;
    text-align: center;
}

.editorial-page h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--c-brass);
}

.editorial-page p {
    margin-bottom: 1.5rem;
    color: var(--c-text-sec);
    font-size: 1.1rem;
}

.editorial-page ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--c-text-sec);
}

.editorial-page li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-text-mut);
}

.form-control {
    width: 100%;
    background: var(--c-bg-s1);
    border: var(--b-light);
    color: var(--c-text-pri);
    padding: 1rem;
    font-family: var(--font-sans);
}

.form-control:focus {
    outline: none;
    border-color: var(--c-copper);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    background: var(--c-bg-s2);
    border: var(--b-copper);
    padding: 2rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: none; /* Controlled by JS */
}

.cookie-popup h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-popup p {
    font-size: 0.9rem;
    color: var(--c-text-sec);
    margin-bottom: 1.5rem;
}

.cookie-btns {
    display: flex;
    gap: 1rem;
}

.cookie-btns button {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: var(--b-light);
    color: var(--c-text-pri);
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.cookie-btns button.accept {
    background: var(--c-copper);
    border-color: var(--c-copper);
    color: var(--c-bg-base);
}

.cookie-btns button:hover {
    background: var(--c-brass);
    color: var(--c-bg-base);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .games-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .notes-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .directory-strip {
        flex-direction: column;
        gap: 2rem;
    }
    .header-label {
        display: none;
    }
    .nav-links a {
        font-size: 2.5rem;
    }
}