/* student.css - Modern Student Dashboard UI */

.student-main-container {
    padding-bottom: 4rem;
}

/* Today's Task Banner Animations */
#todays-task-banner {
    box-shadow: 0 10px 30px -10px rgba(147, 51, 234, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#todays-task-banner:hover {
    transform: translateY(-5px) scale(1.02);
}

.task-completed-bg {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.2) 100%) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

/* Learning Path Container (Duolingo Style) */
#learning-path-container {
    width: 100%;
}

.path-scroll-container {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 3rem 1rem;
    scroll-behavior: smooth;
    border-radius: var(--radius-lg);
    background-color: rgba(10, 19, 41, 0.6);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) inset;
}

@media (max-width: 768px) {
    .path-scroll-container {
        height: 70vh;
        padding: 2rem 0.5rem;
    }
}

/* Removed hardcoded .path-node styles to allow dynamic JS styling for the Duolingo pathway */

.path-node.locked:active {
    transform: none;
}

/* Enhancements for tests and badges */
.path-node.test-node {
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-warning), #d97706);
    border-color: #b45309;
    color: white;
}

.path-node.test-node.locked {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.step-badge {
    position: absolute;
    bottom: -15px;
    background: var(--color-secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.5);
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7), 0 8px 0 rgba(0, 0, 0, 0.2);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0), 0 8px 0 rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 0 8px 0 rgba(0, 0, 0, 0.2);
    }
}

/* Zigzag positioning classes applied via JS */
.offset-left {
    transform: translateX(-60px);
}

.offset-right {
    transform: translateX(60px);
}

.offset-center {
    transform: translateX(0);
}

/* Sidebar Panels */
.sidebar-section .glass-panel {
    background: rgba(16, 28, 54, 0.5);
}

.sidebar-section .glass-panel:hover {
    background: rgba(30, 41, 59, 0.7);
}

/* Badge Dictionary Grid */
.badge-dict-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.badge-dict-item.locked {
    filter: grayscale(100%) opacity(0.3);
}

.badge-dict-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.badge-dict-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.badge-dict-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.badge-dict-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .student-main-container {
        grid-template-columns: 1fr;
    }
}