/* BlackThornis CSS - Gothic Theme */

:root {
    --primary-color: #9b59b6;
    --secondary-color: #8e44ad;
    --accent-color: #c39bd3;
    --dark-bg: #0d0a12;
    --darker-bg: #070509;
    --card-bg: #1a1420;
    --text-color: #e8dff5;
    --text-muted: #a897b8;
    --border-color: #3d2756;
    --shadow-purple: rgba(155, 89, 182, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--darker-bg), var(--card-bg));
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo-icon {
    font-size: 2rem;
}

.site-logo {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--shadow-purple);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 2px solid var(--primary-color);
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.main-navigation {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Page Content */
.page-content {
    min-height: calc(100vh - 400px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 30px var(--shadow-purple);
}

.hero-overlay {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Crimson Text', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-wrapper.narrow {
    max-width: 900px;
}

/* Section Card */
.section-card {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.section-card.dark {
    background: linear-gradient(135deg, var(--darker-bg), var(--card-bg));
    border-color: var(--primary-color);
}

.section-heading {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.section-heading.centered {
    text-align: center;
}

.section-text {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Info Cards Grid */
.info-cards-section {
    margin-bottom: 3rem;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 25px var(--shadow-purple);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
}

.card-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Game Section */
.game-frame-wrapper {
    background-color: var(--darker-bg);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
    border: 3px solid var(--border-color);
}

.game-frame-wrapper.full {
    margin: 0;
}

.game-frame {
    width: 100%;
    height: 650px;
    border: none;
}

.game-frame.full {
    height: 750px;
}

.game-notice {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.1));
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Features Section */
.features-section {
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 3px 15px rgba(195, 155, 211, 0.3);
}

.feature-item h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Play Page */
.page-header-section {
    margin-bottom: 2rem;
}

.page-main-title {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.page-subtitle {
    font-size: 1.15rem;
    text-align: center;
    color: var(--text-muted);
}

.play-game-section {
    margin-bottom: 3rem;
}

/* Instructions */
.instructions-section {
    margin-bottom: 3rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.instruction-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.instruction-item h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Reminders */
.reminders-section {
    margin-bottom: 3rem;
}

.reminders-list {
    list-style: none;
    margin-top: 1.5rem;
}

.reminders-list li {
    padding: 0.7rem 0 0.7rem 2rem;
    position: relative;
    font-size: 1.05rem;
}

.reminders-list li::before {
    content: '🌹';
    position: absolute;
    left: 0;
}

/* Legal Pages */
.legal-page {
    padding: 3rem 0;
}

.legal-main-title {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-date {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--darker-bg), var(--card-bg));
    border-top: 2px solid var(--border-color);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
}

.footer-heading {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 5, 9, 0.95);
    backdrop-filter: blur(10px);
}

.age-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.age-modal-content {
    background: linear-gradient(135deg, var(--card-bg), var(--darker-bg));
    padding: 3rem;
    border-radius: 15px;
    border: 3px solid var(--primary-color);
    text-align: center;
    max-width: 500px;
    margin: 0 20px;
    box-shadow: 0 10px 50px var(--shadow-purple);
}

.age-modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.age-modal-content h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.age-modal-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.modal-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.age-btn-yes,
.age-btn-no {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.age-btn-yes {
    background-color: var(--primary-color);
    color: white;
}

.age-btn-yes:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 20px var(--shadow-purple);
}

.age-btn-no {
    background-color: #c0392b;
    color: white;
}

.age-btn-no:hover {
    background-color: #a93226;
    transform: scale(1.05);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    }

    .main-navigation.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .page-main-title {
        font-size: 2.2rem;
    }

    .game-frame,
    .game-frame.full {
        height: 450px;
    }

    .info-cards-grid,
    .features-grid,
    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-card {
        padding: 2rem;
    }

    .game-frame,
    .game-frame.full {
        height: 350px;
    }
}
