/* Alap beállítások és reszet */
:root {
    --primary-dark-blue: #0A1C3C; /* Mélyebb éjkék */
    --secondary-blue: #1B3F72; /* Kártyák és menü háttere */
    --accent-pink: #FF69B4; /* Élénk rózsaszín (CTA gomb) */
    --text-light: #F0F0F0; /* Világos szöveg */
    --text-dark: #A0A0A0; /* Kevésbé fontos szöveg */
    --moon-light: #FFFFFF; /* Hold színe */
    --star-yellow: #FFD700; /* Csillag színe */
    --planet-aqua: #00CED1; /* Bolygó színe */
    --sm-purple: #a255ff; /* Sailor Moon Lila */
    --sm-pink: #ff6b8f; /* Sailor Moon Rózsaszín */
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-dark-blue);
    color: var(--text-light);
    line-height: 1.6;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-repeat: repeat;
    background-attachment: fixed;
    text-align: center; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-pink);
}

/* Header */
.site-header {
    text-align: center;
    padding: 40px 0 20px 0;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    letter-spacing: 5px;
    margin-bottom: 10px;
    color: var(--moon-light);
}

.site-tagline {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* Navigáció */
.main-nav {
    position: relative;
    padding-bottom: 20px;
}

/* Fő (új) navigáció (Galéria, Kezdőlap...) */
.sub-nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

/* Epizód navigáció (Sorozatok) */
.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 10px;
}

.nav-item {
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    text-shadow: 1px 1px 2px #000;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-pink);
    transition: width var(--transition-speed);
}

.nav-item:hover::after {
    width: 100%;
}

/* Mobile menü toggle */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

/* Content Display (Video) */
.content-display-section {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.video-container-wrapper {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

.content-card {
    background-color: var(--secondary-blue);
    border-radius: 15px;
    /* Törölve a padding, hogy az iframe kitölthesse a teret */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    
    /* Reszponzív iframe konténer: 4:3 arány visszaállítva (448/608 ≈ 73.68%) */
    position: relative;
    padding-top: 74%; 
    height: 0;
    overflow: hidden;
}

.content-card h2, .content-card p {
    text-align: center;
}

/* Az iframe reszponzivitása */
.content-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}


/* Epizódválasztó gombok */
.episode-selection {
    padding: 40px 0;
    text-align: center;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 20px auto 0 auto;
    padding: 0 10px;
}

.episode-button {
    /* Sailor Moon stílus a kis gombokra */
    background: var(--secondary-blue);
    color: var(--text-light);
    border: 2px solid var(--accent-pink);
    border-radius: 10px;
    padding: 15px 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.episode-button:hover {
    background: var(--accent-pink);
    color: var(--primary-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 105, 180, 0.5);
}

.episode-button.active {
    background: var(--star-yellow);
    color: var(--primary-dark-blue);
    border-color: var(--moon-light);
    transform: scale(1.05);
}

/* CTA Gomb (Véletlen Epizód) */
.cta-button {
    background: linear-gradient(to right, #EE82EE, var(--accent-pink));
    border: none;
    color: var(--moon-light);
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4); 
    margin-bottom: 20px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.6);
}

/* Footer és Discord Gomb */
.site-footer {
    padding: 40px 0 20px 0;
    text-align: center;
    border-top: 1px solid var(--secondary-blue);
    margin-top: 50px;
}

.site-footer p {
    color: var(--text-dark);
    margin-top: 20px;
}

.discord-button-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

/* Sailor Button (A Discord gomb) - Különösen Csicsás Rész */
.sailor-button {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    line-height: 1.2;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; 

    /* Sailor Moon színek és gradient (Rózsaszín-Lila) */
    color: #ffffff; 
    background: linear-gradient(135deg, var(--sm-pink) 0%, var(--sm-purple) 100%); 
    
    /* Csicsás dupla árnyék/keret */
    box-shadow: 0 10px 20px rgba(162, 85, 255, 0.5), 
                0 0 0 4px #fff8e1, 
                0 0 0 6px #ffccbc; 
    
    text-shadow: 1px 1px 0 #880e4f;
}

.sailor-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(162, 85, 255, 0.7), 
                0 0 0 4px #fff8e1,
                0 0 0 8px #f48fb1;
}

.sailor-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(162, 85, 255, 0.5), 
                0 0 0 4px #fff8e1,
                0 0 0 6px #ffccbc;
}

.sailor-button::before {
    /* Csillogó effektus (Szikra) */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-30deg);
    transition: all 0.5s;
}

.sailor-button:hover::before {
    left: 150%;
}

.line1 {
    display: block;
    font-weight: bold;
    font-size: 22px; 
}

.line2 {
    display: block;
    font-weight: normal;
    font-size: 16px;
    margin-top: 5px; 
}


/* --- Reszponzív Beállítások --- */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5em;
    }

    .site-tagline {
        font-size: 0.9em;
    }

    /* Fő navigáció mobilra */
    .nav-list, .sub-nav-list {
        flex-direction: column;
        gap: 10px;
        display: none; 
        width: 100%;
        text-align: center;
        background-color: rgba(27, 63, 114, 0.95);
        padding: 10px 0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 50;
    }

    .nav-list.active, .sub-nav-list.active {
        display: flex;
    }

    .nav-list {
        margin-top: 0;
        border-top: 1px solid var(--accent-pink); 
    }

    .sub-nav-list {
        position: static;
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: block;
    }
    
    .content-display-section .container {
        /* Adunk egy kis belső margót a konténernek mobilon, hogy ne érjen a szélekhez */
        padding: 0 10px;
    }

    /* Video konténer reszponzivitása */
    .content-card {
        padding-top: 74%; /* Visszaállítva a 4:3 arány mobilon is */
    }

    /* Epizód Gombok */
    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 8px;
    }

    .episode-button {
        padding: 10px 5px;
        font-size: 1em;
    }
}