/**
 * kid-dashboard.css - Dashboard Infantil
 * 
 * Estilos específicos para a interface do aluno
 * Design amigável, colorido, motivador
 */

.draco-kids-dashboard {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    min-height: 100vh;
}

/* ===== CABEÇALHO COM SAUDAÇÃO ===== */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideIn 0.5s ease-out;
}

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

.student-greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.student-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E40AF, #0EA5E9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.2);
    border: 4px solid white;
}

.student-info h1 {
    margin: 0;
    color: var(--draco-primary);
    font-size: 2rem;
}

.student-info p {
    margin: 0.5rem 0 0 0;
    color: #6B7280;
    font-size: 1.1rem;
}

.greeting-message {
    font-size: 1.25rem;
    color: var(--draco-primary);
    font-weight: 600;
    margin-top: 1rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== CARDS DE RESUMO ===== */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid var(--draco-secondary);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.15);
    border-color: var(--draco-accent);
}

.summary-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.summary-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--draco-primary);
    margin-bottom: 0.5rem;
}

.summary-card-label {
    color: #6B7280;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== SEÇÃO DE CONQUISTAS (BADGES E STREAKS) ===== */
.achievements-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.achievements-section h2 {
    color: var(--draco-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Streak Counter */
.streak-counter {
    display: inline-block;
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.streak-counter strong {
    font-size: 2.5rem;
}

.streak-counter .fire {
    font-size: 2rem;
    margin-right: 0.5rem;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--draco-secondary);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.badge-item:hover {
    transform: scale(1.1);
    border-color: var(--draco-primary);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.badge-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.badge-item .badge-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: var(--draco-primary);
}

/* ===== SEÇÃO DE PROGRESSO SEMANAL ===== */
.weekly-progress-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.weekly-progress-section h2 {
    color: var(--draco-primary);
    margin-bottom: 1.5rem;
}

.week-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 1rem;
}

.day-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.day-bar-fill {
    width: 40px;
    height: 150px;
    background: linear-gradient(180deg, var(--draco-accent) 0%, var(--draco-primary) 100%);
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    overflow: hidden;
}

.day-bar-fill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    height: 30%;
}

.day-bar-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--draco-primary);
    text-align: center;
}

/* ===== SEÇÃO DE CURSOS RECOMENDADOS ===== */
.recommended-courses {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recommended-courses h2 {
    color: var(--draco-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-card-horizontal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--draco-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--draco-primary);
}

.course-card-horizontal:hover {
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    transform: translateX(4px);
}

.course-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #1E40AF, #0EA5E9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.course-info {
    flex: 1;
}

.course-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--draco-primary);
}

.course-info p {
    margin: 0;
    color: #6B7280;
    font-size: 0.95rem;
}

.course-action {
    flex-shrink: 0;
}

.course-action a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--draco-primary);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.course-action a:hover {
    background: #1E3A8A;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* ===== FOOTER ===== */
.dashboard-footer {
    text-align: center;
    padding: 2rem 0;
    color: #6B7280;
    font-size: 0.95rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .draco-kids-dashboard {
        padding: 1rem;
    }

    .student-greeting {
        gap: 1rem;
        flex-direction: column;
    }

    .student-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .student-info h1 {
        font-size: 1.5rem;
    }

    .dashboard-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .summary-card {
        padding: 1rem;
    }

    .summary-card-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .summary-card-value {
        font-size: 1.5rem;
    }

    .week-bars {
        gap: 0.5rem;
    }

    .day-bar-fill {
        height: 100px;
    }

    .course-card-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .course-action {
        width: 100%;
    }

    .course-action a {
        display: block;
        width: 100%;
    }
}
