/* ===================================
   PALETA DE CORES - INSPIRADA NA CAPA
   =================================== */
:root {
    /* Dourados */
    --gold-light: #FFD700;
    --gold: #DAA520;
    --gold-dark: #B8860B;
    
    /* Terrosos e Marrons */
    --brown-light: #CD853F;
    --brown: #8B4513;
    --brown-dark: #654321;
    
    /* Amarelos */
    --yellow-bright: #FFEB3B;
    --yellow: #FFC107;
    --yellow-dark: #FFA000;
    
    /* Verdes */
    --green-light: #9ACD32;
    --green: #6B8E23;
    --green-dark: #556B2F;
    --green-forest: #228B22;
    
    /* Laranjas */
    --orange-light: #FFB84D;
    --orange: #FFA500;
    --orange-dark: #FF8C00;
    
    /* Neutros */
    --cream: #FFF8DC;
    --beige: #F5DEB3;
    --white: #FFFFFF;
    --black: #2C2416;
    --shadow: rgba(139, 69, 19, 0.3);
}

/* ===================================
   RESET E BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
    color: var(--brown-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===================================
   TELA DE LOADING
   =================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--orange) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.bee-animation {
    font-size: 80px;
    animation: fly 2s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.loading-screen h2 {
    color: var(--white);
    margin-top: 30px;
    font-family: 'Fredoka One', cursive;
    text-shadow: 2px 2px 4px var(--shadow);
}

.loading-bar {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    animation: load 2s ease-in-out infinite;
}

@keyframes load {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ===================================
   TELAS (SECTIONS)
   =================================== */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   HEADER DAS TELAS
   =================================== */
.screen-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 20px var(--shadow);
}

.back-btn {
    background: var(--white);
    color: var(--brown);
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px var(--shadow);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow);
    background: var(--cream);
}

.screen-header h2 {
    color: var(--white);
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    text-shadow: 2px 2px 4px var(--shadow);
}

.screen-header i {
    font-size: 28px;
}

/* ===================================
   PÁGINA INICIAL
   =================================== */
.home-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.logo-container {
    margin-bottom: 30px;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.main-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 15px 40px var(--shadow);
    border: 8px solid var(--gold);
}

.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: 48px;
    color: var(--brown);
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px var(--shadow);
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 20px;
    color: var(--brown-dark);
    margin-bottom: 50px;
    font-weight: 600;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
}

.menu-btn {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--orange) 100%);
    border: none;
    padding: 35px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.menu-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow);
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange-dark) 100%);
}

.menu-btn i {
    font-size: 48px;
    color: var(--white);
}

.menu-btn span {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    font-family: 'Fredoka One', cursive;
}

/* ===================================
   SEÇÃO DE VÍDEO
   =================================== */
.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 15px 40px var(--shadow);
    border: 8px solid var(--gold);
    background: var(--brown-dark);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 17px;
}

.video-description {
    text-align: center;
    margin-top: 25px;
    font-size: 20px;
    font-weight: 600;
    color: var(--brown);
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 15px var(--shadow);
}

/* ===================================
   SEÇÃO DO LIVRO
   =================================== */
.book-container {
    max-width: 800px;
    margin: 0 auto;
}

.book-viewer {
    background: var(--white);
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 15px 40px var(--shadow);
    border: 8px solid var(--gold);
    margin-bottom: 30px;
}

.book-viewer img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

.book-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 20px var(--shadow);
}

.page-btn {
    background: var(--white);
    color: var(--brown);
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px var(--shadow);
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow);
    background: var(--cream);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Fredoka One', cursive;
    text-shadow: 2px 2px 4px var(--shadow);
}

/* ===================================
   SEÇÃO DE JOGOS
   =================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px var(--shadow);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px var(--shadow);
}

.game-card i {
    font-size: 64px;
    color: var(--white);
    margin-bottom: 20px;
    display: block;
}

.game-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 10px;
}

.game-card p {
    font-size: 16px;
    color: var(--cream);
    font-weight: 600;
}

/* ===================================
   CONTAINER DE JOGOS
   =================================== */
.game-container {
    max-width: 900px;
    margin: 0 auto;
}

.game-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 15px var(--shadow);
    font-family: 'Fredoka One', cursive;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    background: linear-gradient(135deg, var(--orange-dark) 0%, var(--brown) 100%);
}

/* ===================================
   SEÇÃO SOBRE
   =================================== */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px var(--shadow);
    border: 8px solid var(--gold);
}

.about-content h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 32px;
    color: var(--brown);
    margin-bottom: 20px;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--brown-dark);
    margin-bottom: 20px;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.about-content ul li {
    font-size: 18px;
    padding: 12px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
    border-radius: 15px;
    border-left: 6px solid var(--gold);
    font-weight: 600;
}

.about-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 3px solid var(--gold);
    text-align: center;
}

.about-footer p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */
@media (max-width: 768px) {
    .main-title {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .screen-header h2 {
        font-size: 20px;
    }
    
    .book-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}
