:root {
    --primary-color: #F7C5CC; /* Rosa Pastel */
    --secondary-color: #E2D1F9; /* Lilás Pastel */
    --third-color: #E0F7FA; /* Azul Claro */
    --accent-color: #FFD600; /* Glow */
    --text-color: #4A4A4A;
    --bg-gradient: linear-gradient(135deg, #F7C5CC 0%, #E2D1F9 50%, #E0F7FA 100%);
    --card-radius: 30px;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    padding-bottom: 90px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/cloud_texture.png');
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    animation: cloudMove 150s linear infinite;
}

@keyframes cloudMove {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(226, 209, 249, 0.5); /* Soft Lilac Shadow */
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 130px;
    filter: drop-shadow(0 0 15px rgba(255, 214, 0, 0.7));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

h1, h2, h3 {
    color: #FF7EB3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

/* Card Style - Felt Pillow Effect */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: var(--card-radius);
    padding: 25px;
    margin: 15px;
    box-shadow: 0 15px 35px rgba(247, 197, 204, 0.4); /* Soft Pink Shadow */
    border: 3px solid white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(247, 197, 204, 0.6);
}

.product-img {
    width: 100%;
    border-radius: 25px;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--secondary-color);
}

/* ── Bottom Navigation - Vibrant Pink & Purple ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF7EB3 0%, #A18CD1 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 8px 18px;
    border-top: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 -12px 45px rgba(255, 126, 179, 0.6), 0 -5px 15px rgba(161, 140, 209, 0.4);
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-tap-highlight-color: transparent;
    min-width: 65px;
}

.nav-item i {
    font-size: 24px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.nav-item span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Active / Interaction State - High Contrast White Glow */
.nav-item.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-item.active i {
    color: #ffffff !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    transform: scale(1.1);
}

.nav-item.active span {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.nav-item:active {
    transform: scale(0.9);
}

/* LED Frame for Cine-Ursinho */
.led-frame {
    border: 8px solid #222;
    border-radius: 25px;
    padding: 4px;
    background: #000;
    position: relative;
    overflow: hidden;
    animation: led-glow 2s linear infinite;
}

@keyframes led-glow {
    0%, 100% { box-shadow: 0 0 10px #ff00ff, inset 0 0 10px #ff00ff; }
    33% { box-shadow: 0 0 10px #00ffff, inset 0 0 10px #00ffff; }
    66% { box-shadow: 0 0 10px #ffff00, inset 0 0 10px #ffff00; }
}

/* Book Style for Stories */
.book-page {
    background: #fff;
    padding: 30px;
    border-radius: 10px 30px 30px 10px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05), inset 15px 0 30px rgba(0,0,0,0.02);
    border-left: 8px solid var(--secondary-color);
    margin-bottom: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mini-Game Game Bar */
.game-bar-container {
    width: 100%;
    height: 25px;
    background: #333;
    border: 3px solid #000;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}

.game-bar-fill {
    height: 100%;
    background: #55ff55;
    width: 0%;
    box-shadow: inset 0 -5px 0 rgba(0,0,0,0.2), inset 0 5px 0 rgba(255,255,255,0.4);
    transition: width 0.3s ease;
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

/* Mega Hub Specific Styles */
.hub-container {
    padding: 20px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hub-btn {
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 30px;
    border: 4px solid white;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.hub-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.btn-games { background: linear-gradient(45deg, #FF9A9E, #A18CD1); }
.btn-stories { background: linear-gradient(45deg, #A1C4FD, #C2E9FB); }
.btn-videos { background: linear-gradient(45deg, #FAD0C4, #FFD1FF); }

.hub-btn:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 30px rgba(255,255,255,0.8);
}

@keyframes star-move {
    from { transform: translateY(-100%) translateX(100%); opacity: 0; }
    50% { opacity: 1; }
    to { transform: translateY(100vh) translateX(-100vw); opacity: 0; }
}

.star {
    position: fixed;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
}

.sub-menu {
    display: none;
    width: 100%;
}

#game-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: black;
    z-index: 3000;
}

#game-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-game {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
    border: 3px solid #FF7EB3;
    font-size: 20px;
}


#fada-widget {
    position: fixed;
    bottom: 110px;
    right: 10px;
    z-index: 1002;
    pointer-events: none; /* Container nao intercepta cliques */
    transition: transform 0.3s;
}

#fada-widget:hover {
    transform: scale(1.1);
}

/* Chat bubble - fairy avatar (visual only, no click) */
.chat-bubble {
    width: 200px;
    height: 250px;
    background-image: url('../images/fala.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-color: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    animation: float 4s ease-in-out infinite, fada-glow 3s ease-in-out infinite alternate;
    pointer-events: none;
    cursor: default;
}

@keyframes fada-glow {
    0%   { filter: drop-shadow(0 0 12px rgba(226, 120, 255, 0.7)); }
    50%  { filter: drop-shadow(0 0 24px rgba(255, 100, 180, 0.8)); }
    100% { filter: drop-shadow(0 0 18px rgba(180, 80, 240, 0.9)); }
}

/* Precise invisible clickable trigger over fairy body center */
.fada-trigger {
    position: absolute;
    bottom: 60px;    /* Ajustado sobre o corpo da fada */
    right: 30px;     /* Alinhado ao centro horizontal da fada */
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1003;
}

#chat-window {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    flex-direction: column;
}

.chat-header {
    background: var(--secondary-color);
    padding: 20px;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.close-chat {
    cursor: pointer;
    font-size: 35px;
    line-height: 1;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px 20px;
    font-size: 20px;
    background-image: url('../images/fundochat.png');
    background-size: cover;
    background-position: center top;
    background-attachment: local;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

/* Semi-transparent overlay for readability */
#chat-messages::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 249, 252, 0.55);
    pointer-events: none;
    z-index: 0;
}

#chat-messages > * {
    position: relative;
    z-index: 1;
}

.chat-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    background: white;
    gap: 10px;
}

#chat-input {
    flex: 1;
    border: 2px solid #E2D1F9;
    outline: none;
    padding: 14px 22px;
    border-radius: 25px;
    font-size: 18px;
    background: #fff9fc;
    color: #5A3080;
    font-weight: 500;
}


.chat-footer button {
    background: linear-gradient(135deg, #E2D1F9, #FF7EB3);
    border: none;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(226, 209, 249, 0.6);
}

/* ── Redesigned Homepage Sections ───────────────── */
.home-hero {
    position: relative;
    padding: 30px 20px;
    text-align: center;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
    margin-bottom: 20px;
}
.hero-banner-img {
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(226,209,249,0.6);
    margin: 20px auto;
    display: block;
    border: 5px solid white;
}
.home-hero h1 {
    font-size: clamp(24px, 7vw, 36px);
    color: #5A3080;
    margin-bottom: 15px;
    line-height: 1.2;
}
.home-hero p {
    font-size: 16px;
    color: #888;
    max-width: 300px;
    margin: 0 auto 25px;
}

.home-section {
    padding: 0 20px 50px;
}

.story-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 40px;
    border: 3px solid white;
    box-shadow: 0 10px 30px rgba(226,209,249,0.3);
    text-align: center;
}
.story-card h2 { color: #FF7EB3; margin-bottom: 12px; }
.story-card p { line-height: 1.8; color: #555; font-size: 15px; }

.section-title {
    font-size: 22px;
    color: #5A3080;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.cta-box {
    text-align: center;
    margin-top: 30px;
}
.btn-premium {
    display: inline-block;
    background: linear-gradient(135deg, #FF9A9E, #C89FEB);
    color: white;
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255,154,158,0.4);
    transition: transform 0.3s;
}
.btn-premium:active { transform: scale(0.95); }

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.teaser-item {
    background: white;
    border-radius: 25px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #5A3080;
    font-weight: bold;
    border: 3px solid transparent;
    transition: border 0.3s;
}
.teaser-item:hover { border-color: #C89FEB; }
.teaser-icon { font-size: 30px; margin-bottom: 10px; display: block; }

/* ── SHARED PRODUCT CARD & SLIDER (GLOBAL) ── */
.produto-ursinho {
    width: 95%;
    margin: 20px auto 30px;
    background: rgba(255,255,255,0.9);
    border-radius: 30px;
    border: 3px solid white;
    box-shadow: 0 12px 30px rgba(226,209,249,0.5);
    padding: 25px 15px;
    text-align: center;
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 25px;
    background: #fff;
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    aspect-ratio: 1/1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #FF7EB3;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E2D1F9;
    transition: all 0.3s;
}

.dot.active {
    width: 18px;
    border-radius: 4px;
    background: #FF7EB3;
}

.produto-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFB6C1, #E2D1F9);
    color: #7B3FA0;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.produto-nome {
    font-size: clamp(20px, 6vw, 26px);
    color: #FF7EB3;
    margin-bottom: 16px;
}

.produto-desc {
    font-size: clamp(14px, 4vw, 16px);
    color: #5A3080;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* ── RESPONSIVE OVERWRITES ───────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
}

@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Prevenir estouro de texto e imagens */
img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
