* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #FFF0F6 0%, #FFF5E6 100%);
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #FFD93D 0%, #FFB347 100%);
    padding: 30px 20px;
    position: relative;
    transition: all 0.3s ease;
}

/* Botão hambúrguer para mobile */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.logo {
    background: #fff;
    border-radius: 25px;
    padding: 20px;
    text-align: center;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.logo h1 {
    color: #FF6B6B;
    font-size: 30px;
    font-weight: 900;
}

.logo h1 span {
    color: #4ECDC4;
}

.menu {
    list-style: none;
}

.menu li {
    margin-bottom: 12px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 15px;
    background: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.menu a:hover, .menu a.active {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateX(3px);
}

.menu .icon {
    font-size: 24px;
}

.pencil-mascot {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
}

.main-content {
    flex: 1;
    padding: 40px 45px;
}

.hero {
    background: linear-gradient(135deg, #fff9f4 0%, #ffeaf5 50%, #fff0f6 100%);
    border-radius: 35px;
    padding: 50px 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 45px;
    box-shadow: 0 15px 50px rgba(255, 182, 193, 0.2);
}

.hero-text {
    max-width: 520px;
}

.hero-text h2 {
    font-size: 52px;
    color: #FF6B6B;
    margin-bottom: 12px;
    line-height: 1.1;
    font-weight: 900;
}

.hero-text h2 span {
    color: #4ECDC4;
}

.hero-text p {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 32px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #FFB347;
    border: 3px solid #FFE0B2;
}

.hero-image {
    font-size: 180px;
}

.section-title {
    text-align: center;
    font-size: 30px;
    color: #FF6B6B;
    margin-bottom: 40px;
    font-weight: 800;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.card {
    background: #fff;
    border-radius: 25px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 55px;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 800;
}

.card-games h3 { color: #0277BD; }
.card-videos h3 { color: #AD1457; }
.card-activities h3 { color: #EF6C00; }
.card-stories h3 { color: #00838F; }
.card-parents h3 { color: #880E4F; }

.card p {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.featured-section {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
}

.featured-info {
    background: #fff;
    border-radius: 25px;
    padding: 32px 28px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.featured-info h3 {
    color: #00ACC1;
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 800;
}

.featured-info p {
    color: #666;
    margin-bottom: 26px;
    line-height: 1.7;
}

.featured-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.featured-item {
    background: #fff;
    border-radius: 22px;
    padding: 30px 26px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    font-size: 60px;
}

.featured-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 50px rgba(0,0,0,0.2);
}

.featured-item .star-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ========== RESPONSIVO PARA CELULAR E TABLET ========== */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .featured-section {
        grid-template-columns: 1fr;
    }
    .featured-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 9999;
        box-shadow: 5px 0 30px rgba(0,0,0,0.2);
    }
    .sidebar.open {
        left: 0;
    }
    .main-content {
        padding: 80px 20px 40px;
    }
    .hero {
        padding: 30px 20px;
    }
    .hero-text h2 {
        font-size: 36px;
    }
    .hero-image {
        font-size: 120px;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-text h2 {
        font-size: 28px;
    }
    .hero-text p {
        font-size: 15px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .featured-items {
        grid-template-columns: 1fr;
    }
    .pencil-mascot {
        display: none;
    }
    .section-title {
        font-size: 24px;
    }
}

/* Overlay para mobile quando sidebar está aberta */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.overlay.active {
    display: block;
}



/* ========== CHATBOT ========== */
#chatbot-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
    z-index: 10001;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

#chatbot-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
}

#chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 25px;
    width: 380px;
    max-width: calc(100vw - 50px);
    height: 520px;
    max-height: calc(100vh - 150px);
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}

#chatbot-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chatbot-header {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    font-size: 40px;
    background: rgba(255,255,255,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-title h4 {
    color: white;
    font-size: 18px;
    margin: 0;
}

.chatbot-status {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
}

.chatbot-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-close:hover {
    background: rgba(255,255,255,0.3);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
}

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

.user-message {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.bot-message {
    background: #F5F5F5;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.chatbot-input-container {
    padding: 15px;
    border-top: 1px solid #EEE;
}

.chatbot-quick-replies {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.quick-reply-btn {
    background: linear-gradient(135deg, #FFF0F6, #FFF5E6);
    border: 2px solid #FFE0B2;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #FF6B6B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply-btn:hover {
    background: linear-gradient(135deg, #FFE0B2, #FFD93D);
    transform: translateY(-2px);
}

.chatbot-input-wrapper {
    display: flex;
    gap: 10px;
}

#chatbot-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #FFE0B2;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

#chatbot-input:focus {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.chatbot-send {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

@media (max-width: 480px) {
    #chatbot-window {
        width: calc(100vw - 30px);
        right: 15px;
        bottom: 90px;
        height: 450px;
    }
    
    #chatbot-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        right: 15px;
        bottom: 15px;
    }
}
