/* ==========================================
   MacBook Guide — Styles
   Modern Apple-inspired dark theme
   ========================================== */

:root {
    /* Color Palette - Dark Space Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #22222f;
    
    /* Accent Colors */
    --accent-blue: #0a84ff;
    --accent-purple: #bf5af2;
    --accent-pink: #ff375f;
    --accent-orange: #ff9f0a;
    --accent-green: #30d158;
    --accent-teal: #64d2ff;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(191,90,242,0.15) 0%, transparent 70%);
    
    /* Spacing */
    --sidebar-width: 260px;
    --content-padding: 60px;
    
    /* Borders */
    --border-subtle: 1px solid rgba(255,255,255,0.06);
    --border-glow: 1px solid rgba(191,90,242,0.3);
    
    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(191,90,242,0.2);
    
    /* Typography */
    --font-main: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(120,0,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(0,120,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 100%, rgba(255,0,128,0.08) 0%, transparent 50%);
}

/* ==========================================
   SIDEBAR NAVIGATION
   ========================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo::before {
    content: '';
    font-size: 1.5rem;
}

.apple-icon::before {
    content: '🍎';
}

.nav-links {
    list-style: none;
    flex: 1;
    padding: 10px 15px;
    overflow-y: auto;
}

.nav-links li {
    margin-bottom: 4px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(10,132,255,0.2), rgba(191,90,242,0.2));
    color: var(--text-primary);
    border: 1px solid rgba(191,90,242,0.3);
}

.sidebar-footer {
    padding: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border-top: var(--border-subtle);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.content {
    margin-left: var(--sidebar-width);
    padding: var(--content-padding);
    min-height: 100vh;
}

.section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 50px;
}

.section-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ==========================================
   INTRO SECTION
   ========================================== */

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.intro-card {
    background: var(--gradient-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.intro-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(191,90,242,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.intro-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.intro-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.intro-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Keyboard Layout */
.keyboard-layout {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 24px;
    padding: 40px;
}

.keyboard-layout h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.keyboard-visual {
    display: flex;
    justify-content: center;
}

.key-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.key-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.key {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2a2a35, #1a1a22);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 
        0 4px 0 #0a0a0f,
        0 6px 12px rgba(0,0,0,0.4);
    transition: all 0.15s ease;
}

.key:hover {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #0a0a0f,
        0 3px 8px rgba(0,0,0,0.4);
}

.key-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================
   SHORTCUTS SECTION
   ========================================== */

.shortcuts-category {
    margin-bottom: 50px;
}

.shortcuts-category h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.shortcut-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
}

.shortcut-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(10,132,255,0.3);
    transform: translateY(-2px);
}

.shortcut-card.highlight {
    background: linear-gradient(135deg, rgba(10,132,255,0.15), rgba(191,90,242,0.15));
    border-color: rgba(191,90,242,0.4);
}

.shortcut-card .keys {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.shortcut-card .keys span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: linear-gradient(145deg, #2a2a35, #1a1a22);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.shortcut-card .desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Pro Tip Box */
.pro-tip {
    display: flex;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255,159,10,0.1), rgba(255,55,95,0.1));
    border: 1px solid rgba(255,159,10,0.3);
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 30px;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tip-content strong {
    color: var(--accent-orange);
}

.tip-content code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ==========================================
   TRACKPAD GESTURES
   ========================================== */

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

.gesture-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.gesture-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(100,210,255,0.3);
    transform: translateY(-4px);
}

.gesture-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(100,210,255,0.2), rgba(191,90,242,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gesture-animation::before {
    content: '👆';
    font-size: 2rem;
}

.gesture-animation.tap-2::before { content: '✌️'; }
.gesture-animation.scroll::before { content: '↕️'; }
.gesture-animation.zoom::before { content: '🔍'; }
.gesture-animation.rotate::before { content: '🔄'; }
.gesture-animation.swipe-2::before { content: '↔️'; }
.gesture-animation.swipe-3::before { content: '🖐️'; }
.gesture-animation.swipe-up::before { content: '⬆️'; }
.gesture-animation.pinch-out::before { content: '🤏'; }
.gesture-animation.pinch-in::before { content: '🖐️'; }
.gesture-animation.force::before { content: '👇'; }
.gesture-animation.tap-3::before { content: '🤟'; }

.gesture-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.gesture-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Settings Hint */
.settings-hint {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.settings-hint h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.settings-hint p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.path-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.path-step {
    background: rgba(10,132,255,0.15);
    border: 1px solid rgba(10,132,255,0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--accent-blue);
}

.path-arrow {
    color: var(--text-muted);
}

.path-visual.small {
    justify-content: flex-start;
    margin-top: 16px;
}

.path-visual.small span {
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   FINDER SECTION
   ========================================== */

.finder-views {
    margin-bottom: 50px;
}

.finder-views h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.views-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.view-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.view-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(10,132,255,0.3);
}

.view-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.view-card h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.shortcut-mini {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.shortcut-mini span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Feature Box */
.feature-box {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.feature-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.numbered-list {
    list-style: none;
    counter-reset: step;
}

.numbered-list li {
    counter-increment: step;
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.numbered-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

/* ==========================================
   SPOTLIGHT SECTION
   ========================================== */

.spotlight-demo {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.spotlight-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 16px 32px;
    min-width: 500px;
    box-shadow: var(--shadow-card);
}

.spotlight-icon {
    font-size: 1.5rem;
}

.spotlight-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.spotlight-features h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

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

.feature-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(10,132,255,0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.feature-card .example {
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ==========================================
   SCREENSHOTS SECTION
   ========================================== */

.screenshot-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.screenshot-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(48,209,88,0.3);
    transform: translateY(-4px);
}

.screenshot-visual {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(48,209,88,0.2), rgba(10,132,255,0.2));
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.screenshot-visual::before {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.screenshot-visual.full::before {
    inset: 10px;
}

.screenshot-visual.area::before {
    width: 60%;
    height: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(255,255,255,0.3);
}

.screenshot-visual.window::before {
    width: 70%;
    height: 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.screenshot-visual.toolbar::before {
    width: 80%;
    height: 40px;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.screenshot-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.screenshot-card .keys {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.screenshot-card .keys span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: linear-gradient(145deg, #2a2a35, #1a1a22);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.screenshot-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pro-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* ==========================================
   MISSION CONTROL SECTION
   ========================================== */

.mission-control-visual {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 50px;
}

.spaces-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: var(--border-subtle);
}

.space-item {
    background: rgba(255,255,255,0.1);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.space-item.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
}

.space-item.add {
    background: transparent;
    border: 2px dashed rgba(255,255,255,0.2);
    color: var(--text-muted);
}

.windows-preview {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.window-item {
    width: 180px;
    height: 120px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   TERMINAL SECTION
   ========================================== */

.terminal-window {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.terminal-header {
    background: #2d2d3d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }
.btn-max { background: #27c93f; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.prompt {
    color: var(--accent-green);
}

.prompt::after {
    content: ' $';
    color: var(--text-muted);
}

.command {
    color: var(--text-primary);
}

.comment {
    color: var(--text-muted);
    margin-left: auto;
}

/* Commands Grid */
.commands-grid {
    margin-bottom: 30px;
}

.commands-grid h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.command-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: var(--border-subtle);
}

.command-card:last-child {
    border-bottom: none;
}

.command-card code {
    background: rgba(48,209,88,0.15);
    color: var(--accent-green);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    min-width: 160px;
}

.command-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   TIPS SECTION
   ========================================== */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tip-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,159,10,0.3);
    transform: translateY(-4px);
}

.tip-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(255,159,10,0.3), rgba(255,55,95,0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.tip-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tip-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   VIDEOS SECTION
   ========================================== */

.videos-category {
    margin-bottom: 50px;
}

.videos-category h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

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

.videos-grid.wide {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.video-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.video-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,55,95,0.3);
    transform: translateY(-4px);
}

.video-card.wide {
    display: flex;
    align-items: center;
    gap: 20px;
}

.video-thumbnail {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,55,95,0.2), rgba(191,90,242,0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.video-card.wide .video-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.video-thumbnail.apple {
    background: linear-gradient(135deg, rgba(10,132,255,0.2), rgba(100,210,255,0.2));
}

.video-thumbnail.yt {
    background: linear-gradient(135deg, rgba(255,55,95,0.3), rgba(255,0,0,0.2));
}

.video-thumbnail.playlist {
    background: linear-gradient(135deg, rgba(191,90,242,0.2), rgba(10,132,255,0.2));
}

.video-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.video-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-info {
    flex: 1;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.app-icon {
    font-size: 1.5rem;
}

.app-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.app-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .content {
        margin-left: 220px;
        padding: 40px;
    }
    
    .views-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        border-right: none;
        border-top: var(--border-subtle);
        padding: 0;
    }
    
    .logo, .sidebar-footer {
        display: none;
    }
    
    .nav-links {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        gap: 8px;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        padding: 10px 14px;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    
    .content {
        margin-left: 0;
        margin-bottom: 80px;
        padding: 30px 20px;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .spotlight-bar {
        min-width: auto;
        width: 100%;
    }
    
    .videos-grid.wide {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gesture-animation {
    animation: float 3s ease-in-out infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

