/* Gloomvale.xyz - Dark Gothic Design */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #8b0000;
    --light-accent: #c41e3a;
    --text-color: #e0e0e0;
    --gold-color: #d4af37;
    --dark-bg: #0f0f1e;
}

body {
    font-family: 'Crimson Text', serif;
    background: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.8;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--gold-color);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--accent-color) 0%, var(--primary-color) 100%);
    border: 2px solid var(--gold-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    color: var(--gold-color);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    color: var(--gold-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border: 1px solid transparent;
    font-family: 'Cinzel', serif;
}

nav a:hover {
    color: var(--gold-color);
    border: 1px solid var(--gold-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--gold-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--text-color);
    padding: 5rem 3rem;
    border: 2px solid var(--gold-color);
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(139, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><text x="50" y="50" font-size="60" fill="rgba(212,175,55,0.05)" text-anchor="middle">✦</text></svg>');
    opacity: 0.1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
    color: var(--gold-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Content Sections */
.content-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 3rem;
    border: 1px solid var(--accent-color);
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.7);
}

.content-section h2 {
    color: var(--gold-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 1rem;
}

.content-section h3 {
    color: var(--light-accent);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    font-family: 'Cinzel', serif;
}

.content-section h4 {
    color: var(--gold-color);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.4rem;
}

.content-section p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    font-size: 1.1rem;
}

.content-section ul {
    margin-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

/* Notice Boxes */
.notice-box {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(26, 26, 46, 0.8) 100%);
    border: 2px solid var(--accent-color);
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.notice-box.warning {
    border-color: var(--light-accent);
}

.notice-box.info {
    border-color: var(--gold-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(26, 26, 46, 0.8) 100%);
}

.notice-box h3 {
    color: var(--gold-color);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

/* Game Container */
.game-container {
    background: var(--primary-color);
    padding: 3rem;
    border: 2px solid var(--gold-color);
    margin: 3rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.game-container h2 {
    color: var(--gold-color);
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
}

.game-frame {
    width: 100%;
    max-width: 900px;
    height: 700px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.6);
    margin: 0 auto;
    display: block;
}

/* Widget Grid */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.widget {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 2.5rem;
    border: 1px solid var(--accent-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: var(--gold-color);
    box-shadow: 0 8px 35px rgba(139, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.widget h3 {
    color: var(--gold-color);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    border-top: 2px solid var(--accent-color);
    color: var(--text-color);
    padding: 3rem 2rem;
    margin-top: 4rem;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.8);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h3 {
    color: var(--gold-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--gold-color);
    border-bottom: 1px solid var(--gold-color);
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 3.5rem;
    border: 3px solid var(--gold-color);
    text-align: center;
    max-width: 550px;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.age-modal-content h2 {
    color: var(--gold-color);
    margin-bottom: 2rem;
    font-size: 2.3rem;
    font-family: 'Cinzel', serif;
}

.age-modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.age-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.age-button {
    padding: 1.2rem 3rem;
    border: 2px solid;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.age-button.yes {
    border-color: var(--gold-color);
    color: var(--gold-color);
}

.age-button.yes:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.age-button.no {
    border-color: var(--light-accent);
    color: var(--light-accent);
}

.age-button.no:hover {
    background: var(--light-accent);
    color: white;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 2px solid var(--accent-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    nav ul.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 2rem;
    }

    .game-frame {
        height: 500px;
    }

    .widget-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .age-modal-content {
        margin: 1rem;
        padding: 2.5rem;
    }

    .age-buttons {
        flex-direction: column;
    }
}
