/* LEOS Mission Ready - Learning Center Styles */

.learning-center-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0a0e27;
    color: #e2e8f0;
    overflow: hidden;
}

/* Learning Header */
.learning-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 32px;
}

.header-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.header-content p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 24px 0;
}

.learning-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #00d4ff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

/* Navigation Tabs */
.learning-nav {
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    padding: 0 32px;
}

.nav-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: #e2e8f0;
}

.nav-tab.active {
    color: #00d4ff;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #00d4ff;
}

/* Learning Content */
.learning-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* My Courses View */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.view-all-btn {
    background: transparent;
    border: none;
    color: #00d4ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    color: #66d9ff;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.course-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.course-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.course-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(58%) sepia(84%) saturate(2044%) hue-rotate(178deg) brightness(102%) contrast(101%);
}

.course-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.difficulty {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.difficulty.beginner {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.difficulty.intermediate {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.difficulty.advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.duration {
    font-size: 12px;
    color: #64748b;
}

.course-title {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.course-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Course Progress */
.course-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0099ff 0%, #00d4ff 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.progress-text {
    color: #00d4ff;
    font-weight: 500;
}

.modules-text {
    color: #64748b;
}

/* Course Actions */
.course-actions {
    display: flex;
    gap: 12px;
}

.course-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.course-btn.primary {
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #00d4ff;
}

.course-btn.primary:hover {
    background: rgba(0, 153, 255, 0.3);
    transform: translateY(-1px);
}

.course-btn.secondary {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.course-btn.secondary:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
}

.course-btn.locked {
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #64748b;
    cursor: not-allowed;
}

/* Course Stats */
.course-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #94a3b8;
}

.course-instructor {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

/* Live Sessions */
.upcoming-section {
    margin-top: 48px;
}

.upcoming-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

.live-sessions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.session-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.session-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-date {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.session-duration {
    font-size: 12px;
    color: #64748b;
}

.session-info {
    flex: 1;
}

.session-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 4px 0;
}

.session-info p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.session-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-btn:hover {
    background: rgba(16, 185, 129, 0.3);
}

/* Simulations Grid */
.simulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.simulation-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.simulation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.sim-preview {
    width: 80px;
    height: 80px;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sim-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) saturate(100%) invert(58%) sepia(84%) saturate(2044%) hue-rotate(178deg) brightness(102%) contrast(101%);
}

.sim-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 16px 0;
    font-size: 13px;
    color: #64748b;
}

.sim-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #00d4ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sim-btn:hover {
    background: rgba(0, 153, 255, 0.3);
    transform: translateY(-1px);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.resource-category {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.resource-category h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 16px 0;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    margin-bottom: 12px;
}

.resource-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.resource-list a:hover {
    color: #00d4ff;
}

/* Achievements */
.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.achievement-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.earned-count {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

.achievement-progress {
    width: 200px;
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.achievement-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card.earned {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.achievement-card.locked {
    opacity: 0.5;
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.achievement-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.achievement-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Leaderboard */
.leaderboard {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item.current-user {
    background: rgba(0, 153, 255, 0.1);
}

.rank {
    font-size: 20px;
    font-weight: 700;
    color: #64748b;
    width: 40px;
}

.name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #e2e8f0;
}

.score {
    font-size: 16px;
    font-weight: 600;
    color: #00d4ff;
}

/* Course Player Modal */
.course-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-container {
    background: #0a0e27;
    width: 95%;
    height: 95%;
    max-width: 1400px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.player-header {
    background: rgba(15, 23, 42, 0.95);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.course-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 4px 0;
}

.course-info p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.close-player {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-player:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

.player-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.lesson-sidebar {
    width: 300px;
    background: rgba(15, 23, 42, 0.6);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    padding: 24px;
    overflow-y: auto;
}

.lesson-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lesson-item:hover:not(.locked) {
    background: rgba(148, 163, 184, 0.1);
}

.lesson-item.current {
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
}

.lesson-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.lesson-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
}

.lesson-item.completed .lesson-status {
    color: #10b981;
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    display: block;
}

.lesson-duration {
    font-size: 12px;
    color: #64748b;
}

.lesson-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.player-footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.player-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .learning-header {
        padding: 24px;
    }
    
    .learning-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .learning-nav {
        overflow-x: auto;
        padding: 0 20px;
    }
    
    .learning-content {
        padding: 20px;
    }
    
    .live-sessions {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .player-body {
        flex-direction: column;
    }
    
    .lesson-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        max-height: 200px;
    }
}