/* landing.css */
:root {
    --primary-dark: #1a2639;
    --primary-medium: #3e4a61;
    --primary-light: #c6d4e1;
    --accent-blue: #4a6fa5;
    --accent-green: #3b8c6e;
    --text-light: #f8f8f8;
    --text-dark: #333333;
    --bg-light: #f5f7fa;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--bg-light); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Garantir visibilidade inicial */
.header, .hero, .section, .footer { display: block; visibility: visible; opacity: 1; }

/* Header */
.header { position: fixed; width: 100%; top: 0; left: 0; z-index: 100; background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); transition: var(--transition); }
.header.scrolled { padding: 5px 0; }
.navbar { display: flex; align-items: center; padding: 10px 0; gap: 20px; transition: var(--transition); }

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-dark);
    flex: 0 0 auto;
}
.logo-icon { flex-shrink: 0; }
.logo-text { color: var(--accent-blue); white-space: nowrap; }

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    flex: 1;
    margin: 0;
    padding: 0;
}
.nav-item { margin: 0; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--primary-medium);
    transition: var(--transition);
    position: relative;
}
.nav-icon { font-size: 16px; }
.nav-link:after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--accent-blue); transition: var(--transition); }
.nav-link:hover { color: var(--accent-blue); }
.nav-link:hover:after { width: 100%; }

/* Language Selector */
.language-selector {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.language-btn {
    background: linear-gradient(135deg, #1a1b1f 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.language-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.5);
}
.language-btn:active {
    transform: translateY(0) scale(0.95);
}

/* CTA Primary Button */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4a6fa5 0%, #3b8c6e 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    flex: 0 0 auto;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(74, 111, 165, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.cta-primary:hover {
    background: linear-gradient(135deg, #3b8c6e 0%, #4a6fa5 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(74, 111, 165, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}
.cta-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(74, 111, 165, 0.3);
}

/* Old CTA button (kept for other sections) */
.cta-button { display: inline-block; background-color: var(--accent-blue); color: var(--text-light); padding: 8px 20px; border-radius: 25px; font-weight: 500; font-size: 14px; transition: var(--transition); }
.cta-button:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3); }
.cta-button.outline { background-color: transparent; border: 2px solid var(--accent-blue); color: var(--accent-blue); }
.cta-button.outline:hover { background-color: var(--accent-blue); color: var(--text-light); }

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    flex: 0 0 auto;
}
.bar { display: block; width: 22px; height: 2px; margin: 5px 0; transition: var(--transition); background-color: var(--primary-dark); }

/* Piano Section */
.piano-section { position: relative; margin-top: 50px; padding: 20px 0; background: linear-gradient(135deg, #f5f7fa 0%, #d4e0ed 100%); }
.piano-svg { width: 100%; height: 100px; z-index: 2; opacity: 0.8; }
.piano-key { fill: white; stroke: #ccc; stroke-width: 1; transition: all 0.2s ease; }
.piano-key:hover { fill: #e0e7ff; cursor: pointer; }
.piano-key.black { fill: #333; }
.piano-key.black:hover { fill: #555; }
.piano-key.active { fill: #c8e0ff; }
.piano-key.black.active { fill: #4a6fa5; }

/* Hero Section */
.hero { position: relative; min-height: 20vh; display: flex; align-items: center; padding: 30px 0; background: linear-gradient(135deg, #f5f7fa 0%, #d4e0ed 100%); overflow: hidden; }
.hero:before { content: ''; position: absolute; top: 0; right: 0; width: 60%; height: 100%; background-color: var(--primary-light); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%); opacity: 0.2; z-index: 0; }
.hero-content { max-width: 600px; position: relative; z-index: 1; }
.hero-title { font-size: 40px; margin-bottom: 10px; color: var(--primary-dark); }
.hero-subtitle { font-size: 16px; color: var(--primary-medium); margin-bottom: 15px; font-weight: 300; }
.hero-buttons { display: flex; gap: 10px; margin-top: 15px; }

/* About Section */
.section { padding: 60px 0; }

/* Games Section - Fundo branco puro igual ao web app */
#games {
    background: #ffffff;
}
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 32px; color: var(--primary-dark); margin-bottom: 10px; }
.section-subtitle { font-size: 16px; color: var(--primary-medium); max-width: 600px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.about-card { background-color: white; border-radius: 12px; padding: 30px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: var(--transition); position: relative; overflow: hidden; }
.about-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.about-icon { font-size: 32px; color: var(--accent-blue); margin-bottom: 15px; }
.about-card h3 { font-size: 22px; margin-bottom: 10px; color: var(--primary-dark); }
.about-card p { color: var(--primary-medium); }

/* Games Section */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Game Card - Estilo refinado igual ao web app */
.game-card {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.game-card:active {
    transform: translateY(-2px);
}

.game-content {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Emoji centralizado (mesmo tamanho do web app) */
.game-emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 8px;
}

/* Barra colorida de hover (igual ao web app) */
.game-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-card:hover::after {
    transform: scaleX(1);
}

.game-title { font-size: 20px; margin-bottom: 12px; color: var(--primary-dark); }
.game-desc { color: var(--primary-medium); margin-bottom: 20px; line-height: 1.6; }

/* 2 botões lado a lado */
.game-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botão "Jogar Agora" - destaque verde */
.cta-play {
    background: linear-gradient(135deg, #3b8c6e 0%, #2d6e56 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.cta-play:hover {
    background: linear-gradient(135deg, #2d6e56 0%, #1e4d3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 140, 110, 0.4);
}

/* Botão "Mais Detalhes" - outline azul */
.cta-details {
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}
.cta-details:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

/* Game Details Section */
.game-details {
    padding: 80px 0;
    background-color: var(--bg-light);
}
.game-details-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa, #e0e7ff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.game-details-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.game-details-desc {
    color: var(--primary-medium);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.game-details-desc h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin: 20px 0 10px;
}
.game-details-desc ul {
    list-style-type: disc;
    text-align: left;
    margin: 10px 0 20px 20px;
}
.game-details-desc li {
    margin-bottom: 8px;
}

/* Footer */
.footer { background-color: var(--primary-dark); color: var(--primary-light); padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 50px; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 24px; color: white; margin-bottom: 15px; }
.footer-logo span { color: var(--accent-blue); }
.footer-desc { margin-bottom: 20px; max-width: 300px; }
.footer-title { font-size: 16px; color: white; margin-bottom: 20px; position: relative; }
.footer-title:after { content: ''; position: absolute; width: 40px; height: 2px; background-color: var(--accent-blue); bottom: -8px; left: 0; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: 14px; }
.footer-bottom p { opacity: 0.7; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.active { opacity: 1; transform: translateY(0); }
.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }

/* Fallback para garantir visibilidade */
.fade-in:not(.active) { opacity: 1; transform: translateY(0); }

/* Responsive */
@media screen and (max-width: 1024px) {
    .hero-title { font-size: 32px; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Tablet (768px - 900px) - Samsung S8+ e similares */
@media screen and (max-width: 900px) {
    .navbar { gap: 12px; }

    .logo { font-size: 18px; }
    .logo-icon { width: 20px; height: 20px; }

    .nav-menu { gap: 20px; }
    .nav-link { font-size: 13px; }
    .nav-icon { font-size: 14px; }

    .language-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .cta-primary {
        padding: 8px 18px;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    /* Hamburger menu mobile */
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Nav menu collapsible */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 0;
    }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 12px 0; }
    .nav-link {
        justify-content: center;
        padding: 8px 0;
    }

    /* Logo stays visible */
    .logo { font-size: 16px; }
    .logo-icon { width: 18px; height: 18px; }

    /* Language & CTA stay visible */
    .language-btn {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .cta-primary {
        padding: 7px 16px;
        font-size: 13px;
    }

    /* Other sections */
    .hero { text-align: center; }
    .hero-content { max-width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }

    /* Game cards mobile */
    .game-card { border-radius: 12px; }
    .game-content { padding: 20px; }
    .game-emoji { font-size: 40px; margin-bottom: 8px; }
    .game-buttons { gap: 8px; }
    .cta-button { font-size: 13px; padding: 8px 16px; flex: 1; min-width: 120px; }

    .game-details { padding: 60px 0; }
    .game-details-content { padding: 30px 15px; }
    .game-details-image { max-width: 90%; }
}
@media screen and (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .hero-buttons { flex-direction: column; gap: 10px; }

    /* Game cards - telas muito pequenas empilham botões */
    .game-content { padding: 16px; }
    .game-emoji { font-size: 36px; margin-bottom: 8px; }
    .game-buttons { flex-direction: column; width: 100%; }
    .cta-button { width: 100%; }

    .game-details-desc { font-size: 14px; }
    .game-details-desc h3 { font-size: 18px; }
}
