/* AI-Powered Training Platform Styles - Learning Dashboard */
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&family=SF+Pro+Text:wght@300;400;500;600&display=swap');

/* Base Styles */
.sf-pro-display {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Glass Effect */
.glass-effect {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.blur-in {
    animation: blurIn 1s ease-out forwards;
    filter: blur(10px);
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blurIn {
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* Sidebar Styles */
.sidebar-item {
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar-item.active {
    background: rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
}

.sidebar-item.active svg {
    color: #00d4ff !important;
    stroke: #00d4ff !important;
}

.sidebar-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    margin-top: 0.25rem;
}

.sidebar-dropdown.active {
    display: block;
}

/* Content Tabs */
.content-tab {
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.content-tab:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.content-tab.active {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
    border-bottom-color: #00d4ff !important;
}

.content-tab.active svg {
    color: #00d4ff !important;
    stroke: #00d4ff !important;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Quiz Styles */
.quiz-option {
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.quiz-option:hover .option-content {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.quiz-option.correct .option-content {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

.option-letter {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.quiz-option.correct .option-letter {
    background: #00d4ff;
    color: #000;
}

/* Video Player Styles */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-\[16\/8\] {
    aspect-ratio: 16 / 8;
}

/* Metric Cards */
.metric-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

.metric-value {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

/* Progress Bars */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* Button Styles */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: scale(0.98);
}

/* AI Feedback Styles */
.bg-green-500\/10 {
    background: rgba(34, 197, 94, 0.1);
}

.border-green-500\/20 {
    border-color: rgba(34, 197, 94, 0.2);
}

.bg-blue-500\/10 {
    background: rgba(59, 130, 246, 0.1);
}

.border-blue-500\/20 {
    border-color: rgba(59, 130, 246, 0.2);
}

.bg-purple-500\/10 {
    background: rgba(168, 85, 247, 0.1);
}

.border-purple-500\/20 {
    border-color: rgba(168, 85, 247, 0.2);
}

.bg-yellow-500\/10 {
    background: rgba(234, 179, 8, 0.1);
}

.border-yellow-500\/20 {
    border-color: rgba(234, 179, 8, 0.2);
}

/* Resource Links */
.resource-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.resource-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Video Controls */
.video-controls {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Status Indicators */
.status-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hover Effects */
.hover\:bg-white\/5:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-blue-500\/30:hover {
    background-color: rgba(59, 130, 246, 0.3);
}

.hover\:bg-purple-500\/30:hover {
    background-color: rgba(168, 85, 247, 0.3);
}

.hover\:bg-yellow-500\/30:hover {
    background-color: rgba(234, 179, 8, 0.3);
}

/* Interactive Elements */
.interactive-element {
    transition: all 0.2s ease;
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Learning Platform Specific */
.learning-container {
    max-height: 600px;
    overflow: hidden;
}

.sidebar-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* AI Assistant */
.ai-assistant {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Progress Indicators */
.progress-indicator {
    display: flex;
    gap: 8px;
    align-items: center;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.progress-dot.completed {
    background: #00ff88;
}

.progress-dot.current {
    background: #00d4ff;
    transform: scale(1.2);
}

.progress-dot.pending {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1280px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 1024px) {
    /* Hero Section */
    .text-5xl.sm\:text-6xl.lg\:text-7xl {
        font-size: 3rem !important;
        line-height: 1.1;
    }
    
    .max-w-2xl {
        max-width: 100%;
    }
    
    /* Learning Platform Dashboard */
    .learning-container {
        flex-direction: column;
        height: auto;
    }
    
    .flex.h-\[600px\] {
        flex-direction: column;
        height: auto;
    }
    
    .w-48 {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Sidebar becomes horizontal on tablet */
    .sidebar-horizontal {
        display: flex;
        overflow-x: auto;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .sidebar-item {
        white-space: nowrap;
        min-width: fit-content;
    }
    
    /* Video player adjustments */
    .aspect-video {
        min-height: 250px;
    }

    .aspect-\[16\/8\] {
        min-height: 200px;
    }
    
    /* Metrics grid */
    .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Technology stack */
    .grid.lg\:grid-cols-4.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .text-5xl.sm\:text-6xl.lg\:text-7xl {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    .text-lg {
        font-size: 1rem;
    }
    
    .pt-40 {
        padding-top: 6rem;
    }
    
    .mb-12 {
        margin-bottom: 2rem;
    }
    
    /* Navigation */
    .h-14 {
        height: 3rem;
    }
    
    .text-lg {
        font-size: 1rem;
    }
    
    /* Buttons */
    .flex.flex-col.sm\:flex-row {
        gap: 0.75rem;
    }
    
    .px-8.py-4 {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Learning Platform */
    .p-6 {
        padding: 1rem;
    }
    
    .p-8 {
        padding: 1.5rem;
    }
    
    /* Sidebar Mobile */
    .sidebar-horizontal {
        padding: 0.75rem;
        gap: 0.25rem;
    }
    
    .sidebar-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .sidebar-item svg {
        width: 1rem;
        height: 1rem;
    }
    
    /* Content tabs mobile */
    .content-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .content-tab svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    /* Video player mobile */
    .aspect-video {
        min-height: 200px;
    }

    .aspect-\[16\/8\] {
        min-height: 150px;
    }
    
    .absolute.bottom-4 {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .p-3 {
        padding: 0.5rem;
    }
    
    /* Quiz mobile */
    .option-content {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .option-letter {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
    
    /* Metrics mobile */
    .metric-value {
        font-size: 1.75rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .grid.lg\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Technology stack mobile */
    .grid.lg\:grid-cols-4.md\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .w-16.h-16 {
        width: 3rem;
        height: 3rem;
    }
    
    /* Results comparison mobile */
    .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer mobile */
    .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .col-span-1.md\:col-span-2 {
        grid-column: span 1;
    }
    
    /* Glass effect optimization for mobile */
    .glass-effect {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Progress section mobile */
    .space-y-3 > * + * {
        margin-top: 0.5rem;
    }
    
    /* AI Assistant mobile */
    .w-6.h-6 {
        width: 1rem;
        height: 1rem;
    }
    
    /* Tab content mobile */
    .max-w-2xl {
        max-width: 100%;
    }
    
    .p-6.overflow-y-auto {
        padding: 1rem;
        max-height: 400px;
    }
}

@media (max-width: 640px) {
    /* Extra small screens */
    .text-5xl.sm\:text-6xl.lg\:text-7xl {
        font-size: 2rem !important;
    }
    
    .px-4.py-2 {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Hero buttons stack */
    .flex.flex-col.sm\:flex-row {
        flex-direction: column;
    }
    
    /* Sidebar becomes dropdown on very small screens */
    .sidebar-mobile-dropdown {
        position: relative;
    }
    
    .sidebar-toggle {
        display: block;
        width: 100%;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0.5rem;
        color: white;
        text-align: left;
    }
    
    .sidebar-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        margin-top: 0.25rem;
        z-index: 50;
        display: none;
    }
    
    .sidebar-dropdown.active {
        display: block;
    }
    
    .sidebar-dropdown .sidebar-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-dropdown .sidebar-item:last-child {
        border-bottom: none;
    }
    
    /* Content tabs scroll horizontally */
    .flex.content-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .content-tab {
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    /* Video controls mobile */
    .flex.items-center.gap-4 {
        gap: 0.5rem;
    }
    
    .text-xs {
        font-size: 0.625rem;
    }
    
    /* Quiz mobile adjustments */
    .space-y-3 > * + * {
        margin-top: 0.5rem;
    }
    
    .flex.justify-between.items-center {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .flex.gap-2 {
        justify-content: center;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 1024px) and (orientation: landscape) {
    .pt-40 {
        padding-top: 4rem;
    }
    
    .aspect-video {
        min-height: 300px;
    }

    .aspect-\[16\/8\] {
        min-height: 200px;
    }

    .flex.h-\[700px\] {
        height: 600px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .sidebar-item,
    .content-tab,
    .quiz-option {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .option-content {
        min-height: 44px;
    }
    
    button {
        min-height: 44px;
    }
    
    /* Larger touch targets */
    .w-3.h-3 {
        width: 1rem;
        height: 1rem;
    }
    
    /* Better spacing for touch */
    .space-y-1 > * + * {
        margin-top: 0.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-effect {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

/* Focus States */
button:focus,
.sidebar-item:focus,
.content-tab:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .metric-card {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .sidebar-item.active {
        background: rgba(0, 212, 255, 0.4);
        border: 2px solid #00d4ff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-up,
    .blur-in {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
    
    .status-dot {
        animation: none;
    }
    
    * {
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .video-controls,
    .floating-btn {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
    
    .glass-effect {
        background: white;
        color: black;
    }
}
