/* ============================================
   APP ALUNO - RESPONSIVO
   ============================================ */

/* ===== LAYOUT GERAL ===== */
.aluno-app {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
    background: var(--bg-light);
}

/* ===== HEADER ===== */
.aluno-header {
    padding: 16px 16px 8px;
    background: transparent;
}

.aluno-header .greeting {
    font-family: var(--font-kids);
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.aluno-header .greeting .student-name {
    color: var(--blue-electric);
}

.aluno-header .subtitle {
    font-size: clamp(13px, 2vw, 16px);
    color: var(--text-secondary);
    margin: 0;
}

.aluno-header .avatar-circle {
    width: clamp(40px, 6vw, 52px);
    height: clamp(40px, 6vw, 52px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: clamp(16px, 2.5vw, 22px);
    flex-shrink: 0;
}

/* ===== ESTATÍSTICAS ===== */
.progress-section {
    padding: 0 16px 12px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: clamp(12px, 2vw, 16px);
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 16px);
    box-shadow: var(--shadow-card);
    height: 100%;
}

.stat-card .stat-icon {
    width: clamp(36px, 5vw, 44px);
    height: clamp(36px, 5vw, 44px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(14px, 2vw, 18px);
    flex-shrink: 0;
}

.stat-card .stat-value {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: clamp(10px, 1.2vw, 12px);
    color: var(--text-secondary);
}

/* ===== JORNADA ===== */
.journey-section {
    padding: 0 16px 12px;
}

.journey-card {
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2.5vw, 24px);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: clamp(100px, 15vw, 140px);
}

.journey-card .journey-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 600;
    display: inline-block;
}

.journey-card .journey-title {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 800;
    margin: 6px 0 2px;
}

.journey-card .journey-progress {
    font-size: clamp(12px, 1.5vw, 14px);
    opacity: 0.8;
    margin-bottom: 8px;
}

.journey-card .journey-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.journey-card .journey-characters {
    max-width: clamp(60px, 10vw, 90px);
    height: auto;
}

/* ===== SONGCLASS RECOMENDADA ===== */
.songclass-section {
    padding: 0 16px 12px;
}

.songclass-section .see-all {
    color: var(--blue-electric);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(13px, 1.5vw, 15px);
}

.songclass-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: clamp(80px, 12vw, 110px);
}

.songclass-card:active {
    transform: scale(0.98);
}

.songclass-card .songclass-cover {
    width: clamp(70px, 12vw, 110px);
    min-width: clamp(70px, 12vw, 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.songclass-card .play-button {
    width: clamp(32px, 5vw, 44px);
    height: clamp(32px, 5vw, 44px);
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-electric);
    font-size: clamp(14px, 2vw, 18px);
    transition: all 0.3s ease;
}

.songclass-card .songclass-info {
    padding: clamp(10px, 1.5vw, 16px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.songclass-card .songclass-info h5 {
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 700;
    margin: 0 0 2px;
}

.songclass-card .songclass-info .songclass-description {
    font-size: clamp(12px, 1.2vw, 14px);
    color: var(--text-secondary);
    margin: 0 0 6px;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    display: flex;
    padding: 6px 0 env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    border: none;
    background: none;
    font-size: clamp(10px, 1.2vw, 12px);
    font-family: var(--font-kids);
    touch-action: manipulation;
    user-select: none;
}

.bottom-nav .nav-item i {
    font-size: clamp(18px, 3vw, 24px);
}

.bottom-nav .nav-item.active {
    color: var(--blue-electric);
}

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

/* ============================================
   TABLET - HORIZONTAL
   ============================================ */
@media (min-width: 768px) and (orientation: landscape) {
    .aluno-app {
        display: flex;
        flex-wrap: wrap;
        height: 100%;
        overflow: hidden;
        padding-bottom: 0;
    }
    
    .aluno-app .aluno-header {
        width: 100%;
        padding: 16px 24px 8px;
    }
    
    .aluno-app .progress-section {
        width: 100%;
        padding: 0 24px 12px;
    }
    
    .aluno-app .main-content {
        display: flex;
        flex: 1;
        gap: 16px;
        padding: 0 24px 16px;
        overflow: hidden;
        width: 100%;
    }
    
    .aluno-app .main-content .left-panel {
        flex: 1;
        overflow-y: auto;
        padding-right: 8px;
    }
    
    .aluno-app .main-content .right-panel {
        flex: 1;
        overflow-y: auto;
        padding-left: 8px;
    }
    
    .aluno-app .bottom-nav {
        width: 100%;
        position: relative;
        padding: 6px 0;
    }
}

/* ============================================
   TABLET - VERTICAL
   ============================================ */
@media (min-width: 768px) and (orientation: portrait) {
    .aluno-app {
        padding-bottom: 70px;
    }
    
    .aluno-header .greeting {
        font-size: 28px;
    }
    
    .stat-card .stat-value {
        font-size: 22px;
    }
    
    .journey-card .journey-title {
        font-size: 22px;
    }
    
    .songclass-card .songclass-cover {
        width: 120px;
        min-width: 120px;
    }
}

/* ============================================
   DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .aluno-app {
        padding-bottom: 0;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .bottom-nav {
        position: relative;
    }
}