/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #ffffff;
    --foreground: #000000;
    --card-bg: #ffffff;
    --border: #000000;
    --text-muted: #666666;
    --text-secondary: #333333;
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #cccccc;
    --black-gradient: linear-gradient(135deg, #000000, #333333);
    --white-gradient: linear-gradient(135deg, #ffffff, #f5f5f5);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    
    /* Terminal colors */
    --terminal-bg: #000000;
    --terminal-text: #00ff00;
    --terminal-border: #333333;
    --terminal-titlebar: #2d2d2d;
    --terminal-button-close: #ff5f56;
    --terminal-button-minimize: #ffbd2e;
    --terminal-button-maximize: #27ca3f;
    --terminal-prompt-user: #00aaff;
    --terminal-prompt-path: #ffaa00;
    --terminal-prompt-dollar: #ffffff;
    --terminal-command: #ffffff;
    --terminal-output: #cccccc;
    --terminal-success: #00ff00;
    --terminal-info: #00aaff;
    --terminal-warning: #ffaa00;
}

body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    antialiased: true;
}

.container {
    max-width: 88rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation Styles */
.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border);
}

.nav-container {
    max-width: 88rem;
    margin: 0 auto;
}

.nav-content {
    display: flex;
    align-items: center;
    height: 4rem;
    padding: 0 1rem;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .nav-content {
        padding: 0 2rem;
        gap: 2rem;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .nav-left {
        gap: 2rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
    flex-shrink: 0;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--black);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.tab-links {
    display: none;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .tab-links {
        display: flex;
        gap: 1.25rem;
    }
}

.tab-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.tab-link:hover {
    color: var(--foreground);
}

.tab-link.active {
    color: var(--foreground);
    font-weight: 600;
}

/* Removed the underline from active tab links */
.tab-link.active::after {
    display: none;
}

.nav-center {
    flex: 1;
    display: none;
    align-items: center;
    justify-content: center;
    max-width: 28rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .nav-center {
        display: flex;
    }
}

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 24rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    padding: 0 0.875rem;
    height: 2.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.search-container:hover {
    border-color: var(--text-muted);
}

.search-container:focus-within {
    outline: 2px solid var(--black);
    outline-offset: 2px;
    border-color: var(--black);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--foreground);
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-shortcut {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.nav-right {
    display: none;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .nav-right {
        display: flex;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1200px) {
    .nav-links {
        gap: 1.25rem;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--foreground);
}

.theme-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--foreground);
}

.moon-icon {
    display: none;
}

.mobile-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
    }
}

.mobile-search,
.mobile-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

/* Remove the separate tab navigation section since it's now inline */
.tab-nav {
    display: none;
}

/* Main Content */
.main-content {
    padding-top: 4rem;
}

@media (min-width: 1024px) {
    .main-content {
        padding-top: 0;
    }
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
}

@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0;
    }
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--foreground);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.hero-description em {
    font-style: italic;
    color: var(--foreground);
    font-weight: 600;
}

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

@media (min-width: 1024px) {
    .hero-visual {
        justify-content: flex-end;
    }
}

/* Terminal Window Styles */
.terminal-window {
    width: 100%;
    max-width: 32rem;
    background: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    border: 1px solid var(--terminal-border);
}

.terminal-titlebar {
    background: var(--terminal-titlebar);
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid var(--terminal-border);
}

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

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.terminal-button.close {
    background: var(--terminal-button-close);
}

.terminal-button.minimize {
    background: var(--terminal-button-minimize);
}

.terminal-button.maximize {
    background: var(--terminal-button-maximize);
}

.terminal-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.terminal-menu {
    color: #ffffff;
    font-size: 14px;
}

.terminal-content {
    background: var(--terminal-bg);
    padding: 16px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
}

/* Terminal Startup Info */
.terminal-startup {
    margin-bottom: 16px;
}

.startup-line {
    color: #888888;
    margin-bottom: 4px;
    font-size: 12px;
}

.system-info {
    font-family: inherit;
}

.info-label {
    color: #aaaaaa;
    font-weight: 600;
}

.startup-separator {
    color: #444444;
    margin: 8px 0;
    font-size: 12px;
}

/* Terminal Session */
.terminal-session {
    color: var(--terminal-text);
}

.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.terminal-line.hidden {
    opacity: 0;
}

.user-prompt {
    color: var(--terminal-prompt-user);
    font-weight: 600;
}

.path-prompt {
    color: var(--terminal-prompt-path);
    margin-left: 1px;
}

.dollar-prompt {
    color: var(--terminal-prompt-dollar);
    margin: 0 6px;
    font-weight: 600;
}

.command {
    color: var(--terminal-command);
    font-weight: 400;
}

.cursor {
    color: var(--terminal-text);
    font-weight: normal;
    animation: terminal-blink 1.2s infinite;
    margin-left: 1px;
}

.cursor.hidden {
    display: none;
}

@keyframes terminal-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Terminal Output */
.terminal-output {
    margin: 8px 0 16px 0;
    padding-left: 0;
}

.terminal-output.hidden {
    opacity: 0;
}

.output-line {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.status-icon {
    font-weight: 600;
    font-size: 12px;
    min-width: 60px;
}

.status-icon:contains('[INFO]') {
    color: var(--terminal-info);
}

.output-line .status-icon {
    color: #888888;
}

.output-line:has(.status-icon:contains('[✓]')) .status-icon {
    color: var(--terminal-success);
}

.output-line:has(.status-icon:contains('[INFO]')) .status-icon {
    color: var(--terminal-info);
}

.output-line:has(.status-icon:contains('[DATA]')) .status-icon {
    color: var(--terminal-warning);
}

.output-line:has(.status-icon:contains('[TRAIN]')) .status-icon {
    color: #ff6b9d;
}

.output-line:has(.status-icon:contains('[DEPLOY]')) .status-icon {
    color: #4ecdc4;
}

.output-line:has(.status-icon:contains('[MONITOR]')) .status-icon {
    color: #95e1d3;
}

.output-text {
    color: var(--terminal-output);
    font-size: 13px;
}

/* Progress Bar */
.progress-line {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
    font-family: inherit;
}

.progress-text {
    color: var(--terminal-output);
    font-size: 13px;
}

.progress-bar {
    color: #ff6b9d;
    font-size: 12px;
    font-family: inherit;
}

.progress-stats {
    color: #aaaaaa;
    font-size: 12px;
}

/* Metrics Display */
.metrics-line {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    gap: 12px;
}

.metric-label {
    color: #aaaaaa;
    font-size: 13px;
    min-width: 100px;
}

.metric-value {
    color: var(--terminal-success);
    font-weight: 600;
    font-size: 13px;
}

.metric-trend {
    color: var(--terminal-success);
    font-size: 12px;
}

.learning-status {
    color: #ff6b9d;
    font-size: 13px;
    margin-left: 8px;
}

/* How it works */
.how-it-works {
    padding: 4rem 0;
    background: var(--gray-light);
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: var(--foreground);
    margin-bottom: 4rem;
}

.steps-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 0.875rem;
    background: var(--black);
    border: 2px solid var(--black);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA */
.cta {
    padding: 4rem 0;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--shadow);
    border: 2px solid var(--black);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
    background: var(--white);
    color: var(--black);
}

/* Page-specific styles */
.page-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 42rem;
}

.content-section {
    padding: 2rem 0;
}

.content-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-section li::before {
    content: '■';
    color: var(--black);
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

.code-block {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    box-shadow: 2px 2px 0px var(--black);
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s;
    box-shadow: 2px 2px 0px var(--black);
}

.feature-card:hover {
    box-shadow: 4px 4px 0px var(--black);
    transform: translateY(-2px);
}

.feature-card h4 {
    color: var(--foreground);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .nav-content {
        gap: 1rem;
    }
    
    .nav-left {
        gap: 1rem;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .search-container {
        max-width: 20rem;
    }
}

@media (max-width: 1023px) {
    .nav-content {
        gap: 0.75rem;
    }
    
    .nav-left {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .terminal-window {
        max-width: 100%;
    }

    .terminal-content {
        padding: 12px;
        font-size: 12px;
        min-height: 300px;
    }

    .terminal-title {
        font-size: 12px;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .step {
        padding: 1.5rem;
    }

    .nav-content {
        gap: 0.5rem;
    }
    
    .nav-left {
        gap: 0.5rem;
    }
}

/* Dark mode support */
.dark-mode {
    --background: #000000;
    --foreground: #ffffff;
    --card-bg: #000000;
    --border: #ffffff;
    --text-muted: #999999;
    --text-secondary: #cccccc;
    --gray-light: #0a0a0a;
    
    /* Dark mode terminal colors */
    --terminal-bg: #1a1a1a;
    --terminal-text: #00ff41;
    --terminal-border: #444444;
    --terminal-titlebar: #333333;
    --terminal-output: #e0e0e0;
}

.dark-mode .navbar {
    background: rgba(0, 0, 0, 0.95);
}

.dark-mode .terminal-window {
    border-color: var(--terminal-border);
}

.dark-mode .terminal-titlebar {
    background: var(--terminal-titlebar);
    border-color: var(--terminal-border);
}

.dark-mode .terminal-content {
    background: var(--terminal-bg);
}

.dark-mode .step {
    background: var(--black);
    border-color: var(--white);
    box-shadow: 4px 4px 0px var(--white);
}

.dark-mode .step-number {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.dark-mode .cta-button {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.dark-mode .cta-button:hover {
    background: var(--black);
    color: var(--white);
    box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.3);
}

.dark-mode .code-block {
    background: var(--black);
    border-color: var(--white);
    box-shadow: 2px 2px 0px var(--white);
}

.dark-mode .feature-card {
    border-color: var(--white);
    box-shadow: 2px 2px 0px var(--white);
}

.dark-mode .feature-card:hover {
    box-shadow: 4px 4px 0px var(--white);
}/* Terminal Window Styles */
.terminal-window {
    width: 100%;
    max-width: 32rem;
    background: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    border: 1px solid var(--terminal-border);
}

.terminal-titlebar {
    background: var(--terminal-titlebar);
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid var(--terminal-border);
}

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

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.terminal-button.close {
    background: var(--terminal-button-close);
}

.terminal-button.minimize {
    background: var(--terminal-button-minimize);
}

.terminal-button.maximize {
    background: var(--terminal-button-maximize);
}

.terminal-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.terminal-menu {
    color: #ffffff;
    font-size: 14px;
}

.terminal-content {
    background: var(--terminal-bg);
    padding: 16px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
}

/* Custom Terminal Scrollbar */
.terminal-content::-webkit-scrollbar {
    width: 12px;
}

.terminal-content::-webkit-scrollbar-track {
    background: var(--terminal-bg);
    border-left: 1px solid #333333;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #444444;
    border: 2px solid var(--terminal-bg);
    border-radius: 0;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.terminal-content::-webkit-scrollbar-thumb:active {
    background: #666666;
}

.terminal-content::-webkit-scrollbar-corner {
    background: var(--terminal-bg);
}

/* Firefox scrollbar */
.terminal-content {
    scrollbar-width: thin;
    scrollbar-color: #444444 var(--terminal-bg);
}

/* Dark mode scrollbar adjustments */
.dark-mode .terminal-content::-webkit-scrollbar-track {
    background: var(--terminal-bg);
    border-left: 1px solid #555555;
}

.dark-mode .terminal-content::-webkit-scrollbar-thumb {
    background: #666666;
    border: 2px solid var(--terminal-bg);
}

.dark-mode .terminal-content::-webkit-scrollbar-thumb:hover {
    background: #777777;
}

.dark-mode .terminal-content::-webkit-scrollbar-thumb:active {
    background: #888888;
}

.dark-mode .terminal-content {
    scrollbar-color: #666666 var(--terminal-bg);
}

/* ===== SEARCH OVERLAY STYLES ===== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1rem 1rem;
    opacity: 1;
    transition: all 0.2s ease-out;
}

.search-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.search-modal {
    width: 100%;
    max-width: 42rem;
    background: var(--background);
    border: 3px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.2s ease-out;
}

.search-overlay.hidden .search-modal {
    transform: translateY(-20px);
}

.search-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    background: var(--background);
}

.search-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.search-input-container:focus-within {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

.search-icon-large {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-large {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--foreground);
    font-weight: 500;
}

.search-input-large::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-close:hover {
    color: var(--foreground);
    background: var(--gray-light);
}

.search-shortcuts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-shortcut-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.search-content {
    max-height: 28rem;
    overflow-y: auto;
}

/* Search Results */
.search-results {
    padding: 1rem 0;
}

.search-results.hidden {
    display: none;
}

.result-item {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gray-light);
    transition: all 0.2s;
}

.result-item:hover {
    background: var(--gray-light);
    color: var(--foreground);
}

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

.result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    display: block;
}

.result-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
}

.result-path {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

.result-highlight {
    background: var(--black);
    color: var(--white);
    padding: 0.125rem 0.25rem;
    border-radius: 0.125rem;
    font-weight: 600;
}

/* Search Suggestions */
.search-suggestions {
    padding: 1.5rem;
}

.search-suggestions.hidden {
    display: none;
}

.suggestion-section {
    margin-bottom: 2rem;
}

.suggestion-section:last-child {
    margin-bottom: 0;
}

.suggestion-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggestion-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item {
    display: block;
    padding: 0.75rem;
    background: var(--background);
    border: 2px solid var(--gray-light);
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.suggestion-item:hover {
    border-color: var(--border);
    box-shadow: 2px 2px 0 var(--border);
    transform: translateY(-1px);
}

.suggestion-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.suggestion-description {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Search Empty State */
.search-empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.search-empty.hidden {
    display: none;
}

.empty-state svg {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 20rem;
    margin: 0 auto;
}

/* Dark Mode Search Styles */
.dark-mode .search-overlay {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .search-modal {
    background: var(--background);
    border-color: var(--border);
}

.dark-mode .search-input-container {
    background: var(--background);
    border-color: var(--border);
}

.dark-mode .search-input-container:focus-within {
    outline-color: var(--white);
}

.dark-mode .search-close:hover {
    background: var(--gray-light);
}

.dark-mode .result-item:hover {
    background: var(--gray-light);
}

.dark-mode .result-highlight {
    background: var(--white);
    color: var(--black);
}

.dark-mode .suggestion-item {
    background: var(--background);
    border-color: var(--gray-light);
}

.dark-mode .suggestion-item:hover {
    border-color: var(--border);
    box-shadow: 2px 2px 0 var(--border);
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-overlay {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .search-modal {
        margin-top: 2rem;
    }
    
    .search-header {
        padding: 1rem;
    }
    
    .search-input-container {
        padding: 0.625rem 0.75rem;
    }
    
    .search-input-large {
        font-size: 1rem;
    }
    
    .search-suggestions {
        padding: 1rem;
    }
    
    .search-content {
        max-height: 24rem;
    }
}