/* Curriculum Explorer Styles */

.curriculum-main {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.curriculum-hero {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF6B6B);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    color: #2C3E50;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 600;
}

/* Level Selector */
.level-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.level-selector h3 {
    margin-bottom: 1rem;
    color: #2C3E50;
    font-size: 1.5rem;
}

.level-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.level-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #E3F2FD;
    background: white;
    color: #1565C0;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.level-btn:hover {
    border-color: #2196F3;
    background: #E3F2FD;
}

.level-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

/* Curriculum Grid */
.curriculum-grid-section {
    margin-bottom: 2rem;
}

.curriculum-grid-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2C3E50;
    font-size: 1.8rem;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: 120px repeat(12, 1fr);
    gap: 0.5rem;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    min-width: 1200px;
}

.grid-header {
    display: contents;
}

.header-cell {
    background: linear-gradient(135deg, #4CAF50, #45A049);
    color: white;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.header-cell.empty {
    background: transparent;
}

.grid-row {
    display: contents;
}

.grid-row[data-level="1"] .level-label { background: linear-gradient(135deg, #81C784, #66BB6A); }
.grid-row[data-level="2"] .level-label { background: linear-gradient(135deg, #4FC3F7, #29B6F6); }
.grid-row[data-level="3"] .level-label { background: linear-gradient(135deg, #FFB74D, #FFA726); }
.grid-row[data-level="4"] .level-label { background: linear-gradient(135deg, #E57373, #EF5350); }

.level-label {
    color: white;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 700;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

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

.level-text {
    font-size: 0.9rem;
    line-height: 1.2;
}

.curriculum-cell {
    background: white;
    border: 2px solid #E3F2FD;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.curriculum-cell:hover {
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

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

.cell-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #2C3E50;
    margin-bottom: 0.25rem;
}

.cell-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: auto;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 2px;
    transition: width 0.3s;
}

/* Subject Color Coding */
.curriculum-cell[data-subject="math"]:hover { border-color: #2196F3; }
.curriculum-cell[data-subject="literacy"]:hover { border-color: #9C27B0; }
.curriculum-cell[data-subject="science"]:hover { border-color: #4CAF50; }
.curriculum-cell[data-subject="social"]:hover { border-color: #FF9800; }
.curriculum-cell[data-subject="financial"]:hover { border-color: #FFD700; }
.curriculum-cell[data-subject="languages"]:hover { border-color: #E91E63; }
.curriculum-cell[data-subject="arts"]:hover { border-color: #FF5722; }
.curriculum-cell[data-subject="music"]:hover { border-color: #3F51B5; }
.curriculum-cell[data-subject="pe"]:hover { border-color: #8BC34A; }
.curriculum-cell[data-subject="technology"]:hover { border-color: #607D8B; }
.curriculum-cell[data-subject="life"]:hover { border-color: #795548; }
.curriculum-cell[data-subject="heritage"]:hover { border-color: #FFC107; }

/* Quick Access */
.quick-access {
    text-align: center;
    margin-top: 3rem;
}

.quick-access h3 {
    margin-bottom: 1.5rem;
    color: #2C3E50;
}

.quick-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-link {
    background: white;
    border: 2px solid #E3F2FD;
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: #1565C0;
    transition: all 0.3s;
    min-width: 150px;
}

.quick-link:hover {
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.quick-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.quick-text {
    font-weight: 600;
    font-size: 1rem;
}

/* Level Filtering */
.grid-row.hidden {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .curriculum-main {
        padding: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .curriculum-grid {
        grid-template-columns: 100px repeat(12, 100px);
        gap: 0.25rem;
        padding: 0.5rem;
        min-width: 1100px;
    }
    
    .header-cell, .curriculum-cell {
        min-height: 80px;
        padding: 0.5rem;
    }
    
    .cell-icon {
        font-size: 1.5rem;
    }
    
    .cell-title {
        font-size: 0.8rem;
    }
    
    .cell-desc {
        font-size: 0.7rem;
    }
    
    .level-buttons {
        gap: 0.25rem;
    }
    
    .level-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .quick-links {
        gap: 0.5rem;
    }
    
    .quick-link {
        padding: 1rem;
        min-width: 120px;
    }
    
    .quick-icon {
        font-size: 2rem;
    }
    
    .quick-text {
        font-size: 0.9rem;
    }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .curriculum-grid {
        grid-template-columns: 110px repeat(12, 90px);
        min-width: 1150px;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

/* Achievement Animations */
@keyframes unlock {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.curriculum-cell.unlocked {
    animation: unlock 0.5s ease-out;
}

.curriculum-cell.locked {
    opacity: 0.5;
    pointer-events: none;
}

.curriculum-cell.locked::after {
    content: "🔒";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.7;
}

/* Progress Indicators */
.progress[style*="width: 100%"] {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.progress[style*="width: 0%"] {
    background: #E0E0E0;
}

/* Loading States */
.curriculum-cell.loading {
    background: linear-gradient(90deg, #f0f0f0, #e0e0e0, #f0f0f0);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}