/* Belt Pages Styling - Premium Design with Dark Mode Support */

/* CSS Variables for Belt Colors and Dark Mode */
:root {
    /* Light Mode Belt Colors */
    --belt-white: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --belt-yellow: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    --belt-orange: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --belt-green: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    --belt-blue: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    --belt-brown: linear-gradient(135deg, #8d6e63 0%, #5d4037 100%);
    --belt-black: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --belt-gold: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    
    /* Belt Text Colors */
    --belt-white-text: #2c3e50;
    --belt-yellow-text: #2c3e50;
    --belt-orange-text: #ffffff;
    --belt-green-text: #ffffff;
    --belt-blue-text: #ffffff;
    --belt-brown-text: #ffffff;
    --belt-black-text: #ffffff;
    --belt-gold-text: #2c3e50;
    
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: #2d2d2d;
}

/* Belt Hero Section - Completely Redesigned */
.belt-hero {
    background: var(--bg-secondary);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.belt-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.belt-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.belt-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 40px var(--shadow-color);
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Belt-specific styling with proper contrast */
.belt-icon.white-belt { 
    background: var(--belt-white); 
    color: var(--belt-white-text);
    border-color: #dee2e6;
}
.belt-icon.yellow-belt { 
    background: var(--belt-yellow); 
    color: var(--belt-yellow-text);
    border-color: rgba(255, 193, 7, 0.3);
}
.belt-icon.orange-belt { 
    background: var(--belt-orange); 
    color: var(--belt-orange-text);
}
.belt-icon.green-belt { 
    background: var(--belt-green); 
    color: var(--belt-green-text);
}
.belt-icon.blue-belt { 
    background: var(--belt-blue); 
    color: var(--belt-blue-text);
}
.belt-icon.brown-belt { 
    background: var(--belt-brown); 
    color: var(--belt-brown-text);
}
.belt-icon.black-belt { 
    background: var(--belt-black); 
    color: var(--belt-black-text);
}
.belt-icon.gold-belt { 
    background: var(--belt-gold); 
    color: var(--belt-gold-text);
}

.belt-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.belt-description {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.belt-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.belt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    max-width: 400px;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Belt Progression Navigation - Redesigned */
.belt-progression {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.belt-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.belt-nav:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    color: var(--text-primary);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.belt-nav i {
    font-size: 0.8rem;
}

.belt-position {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Belt Curriculum Section - Redesigned */
.belt-curriculum {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.curriculum-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.curriculum-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d09c 0%, #74b9ff 100%);
}

.curriculum-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.content-type {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 208, 156, 0.3);
}

.curriculum-score {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.card-title {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #00d09c;
}

.card-summary {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.difficulty {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 0.8rem;
}

.difficulty.foundational { 
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); 
    color: #1565c0; 
    border: 1px solid #90caf9;
}
.difficulty.intermediate-skill { 
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); 
    color: #ef6c00; 
    border: 1px solid #ffcc02;
}
.difficulty.advanced-mastery { 
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%); 
    color: #ad1457; 
    border: 1px solid #f48fb1;
}

.time-required, .source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.time-required i, .source i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.card-actions {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 208, 156, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00b386 0%, #009970 100%);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 12px 32px rgba(0, 208, 156, 0.4);
}

.btn-primary i {
    font-size: 0.8rem;
}

/* Belt Requirements Section - Redesigned */
.belt-requirements {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.requirement-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d09c 0%, #74b9ff 100%);
}

.requirement-card h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.requirement-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-card li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.requirement-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1rem;
    color: #00d09c;
    font-weight: bold;
    font-size: 1.1rem;
}

.requirement-card li:last-child {
    border-bottom: none;
}

/* Empty State - Redesigned */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px var(--shadow-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dark-mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--shadow-color);
}

.dark-mode-toggle i {
    font-size: 1rem;
}

/* Responsive Design - Enhanced */
@media (max-width: 768px) {
    .belt-hero {
        padding: 2rem 0;
    }
    
    .belt-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .belt-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .belt-title {
        font-size: 2rem;
    }
    
    .belt-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .belt-progression {
        flex-direction: column;
        gap: 1rem;
        margin: 0 1rem;
    }
    
    .curriculum-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .section-header {
        padding: 0 1rem;
    }
    
    .dark-mode-toggle {
        top: 80px;
        right: 1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .belt-hero-content {
        padding: 0 0.5rem;
    }
    
    .curriculum-grid {
        padding: 0 0.5rem;
    }
    
    .requirements-grid {
        padding: 0 0.5rem;
    }
    
    .curriculum-card {
        padding: 1.5rem;
    }
    
    .requirement-card {
        padding: 2rem;
    }
}