/* ========================================
   FIREBOY & WATERGIRL - ESTILO MODERNO
   ======================================== */

/* === RESET E VARIÁVEIS === */
:root {
    /* Cores do tema */
    --fire-color: #ff4500;
    --fire-dark: #cc3700;
    --fire-light: #ff6b35;
    --water-color: #1e90ff;
    --water-dark: #1873cc;
    --water-light: #4da6ff;
    --forest-green: #2d5016;
    --forest-light: #4a7c2c;
    --danger-green: #00ff00;
    
    /* Cores neutras */
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-card: #232936;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c5;
    --border-color: #3d4451;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
}

/* === BOTÃO VOLTAR AO TOPO === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--fire-color), var(--water-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 69, 0, 0.4);
}

/* === CABEÇALHO === */
header {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-light) 100%);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.game-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: titlePulse 3s infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.fire {
    color: var(--fire-light);
    text-shadow: 0 0 20px var(--fire-color), 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: fireGlow 2s infinite alternate;
}

@keyframes fireGlow {
    from { text-shadow: 0 0 20px var(--fire-color), 3px 3px 6px rgba(0, 0, 0, 0.5); }
    to { text-shadow: 0 0 30px var(--fire-light), 3px 3px 6px rgba(0, 0, 0, 0.5); }
}

.and {
    color: #ffd700;
    font-size: 0.8em;
    margin: 0 10px;
}

.water {
    color: var(--water-light);
    text-shadow: 0 0 20px var(--water-color), 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: waterGlow 2s infinite alternate;
}

@keyframes waterGlow {
    from { text-shadow: 0 0 20px var(--water-color), 3px 3px 6px rgba(0, 0, 0, 0.5); }
    to { text-shadow: 0 0 30px var(--water-light), 3px 3px 6px rgba(0, 0, 0, 0.5); }
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #ffd700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* === BOTÕES === */
.play-button,
.play-button-large {
    background: linear-gradient(135deg, var(--fire-color), var(--water-color));
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.play-button::before,
.play-button-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.play-button:hover::before,
.play-button-large:hover::before {
    width: 300px;
    height: 300px;
}

.play-button:hover,
.play-button-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
}

.play-button:active,
.play-button-large:active {
    transform: translateY(-1px) scale(1.02);
}

.play-button-large {
    font-size: 1.5rem;
    padding: 20px 60px;
    margin-top: 20px;
}

/* === CONTEÚDO PRINCIPAL === */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

section {
    background: var(--bg-card);
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    animation: fadeIn 0.6s ease;
}

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

section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--fire-light), var(--water-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--water-color);
    border-radius: 8px;
}

/* === SEÇÃO DE CONTROLES === */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.control-card {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.watergirl-card {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(30, 144, 255, 0.05));
    border-color: var(--water-color);
}

.watergirl-card:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(30, 144, 255, 0.1));
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.3);
    transform: translateY(-5px);
}

.fireboy-card {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 69, 0, 0.05));
    border-color: var(--fire-color);
}

.fireboy-card:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 69, 0, 0.1));
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.3);
    transform: translateY(-5px);
}

.control-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.keys {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

kbd {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 0 var(--border-color);
    transition: all var(--transition-fast);
}

kbd:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--border-color);
}

.warning {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 165, 0, 0.1);
    border-left: 4px solid orange;
    border-radius: 8px;
    font-weight: bold;
    color: #ffa500;
}

/* === SEÇÃO DE DICAS === */
.tips-section {
    background: linear-gradient(135deg, var(--bg-card), rgba(45, 80, 22, 0.1));
}

.tip-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--forest-light);
    transition: all var(--transition-normal);
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.tip-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
}

.tip-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--water-light);
}

.tip-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === SEÇÃO DE FAQ === */
.faq-section {
    background: linear-gradient(135deg, var(--bg-card), rgba(30, 144, 255, 0.05));
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--water-color);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.06);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--water-color);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer strong {
    color: var(--fire-light);
}

/* === SEÇÃO CTA === */
.cta-section {
    background: linear-gradient(135deg, var(--fire-color), var(--water-color));
    text-align: center;
    padding: 60px 40px;
    border: none;
}

.cta-section h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    -webkit-text-fill-color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* === RODAPÉ === */
footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(176, 184, 197, 0.6);
    margin-top: 20px;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    header {
        padding: 40px 15px;
    }
    
    section {
        padding: 25px 20px;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tip-card {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-icon {
        font-size: 2.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .play-button,
    .play-button-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .keys {
        flex-wrap: wrap;
    }
    
    kbd {
        padding: 10px 15px;
        font-size: 1rem;
    }
}