/* TheCommander Website Styles */
/* Modern design with blue accent - Light/Dark Mode Support */

:root {
    --color-primary: #3B82F6;
    --color-primary-dark: #2563EB;
    --color-primary-light: #60A5FA;
    --color-secondary: #F59E0B;
    --color-success: #10B981;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-bg: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-bg-alt: #F3F4F6;
    --color-border: #E5E7EB;
    --color-card: #FFFFFF;
    --spacing-unit: 1rem;
    --max-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --chrome-bg: linear-gradient(180deg, #e8e8e8 0%, #d1d1d1 100%);
    --chrome-border: #b8b8b8;
    --chrome-title: #4a4a4a;
}

[data-theme="dark"] {
    --color-primary: #60A5FA;
    --color-primary-dark: #3B82F6;
    --color-primary-light: #93C5FD;
    --color-secondary: #FBBF24;
    --color-success: #34D399;
    --color-text: #F9FAFB;
    --color-text-light: #9CA3AF;
    --color-bg: #111827;
    --color-bg-light: #1F2937;
    --color-bg-alt: #374151;
    --color-border: #374151;
    --color-card: #1F2937;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --chrome-bg: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
    --chrome-border: #1a1a1a;
    --chrome-title: #a0a0a0;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-primary: #60A5FA;
        --color-primary-dark: #3B82F6;
        --color-primary-light: #93C5FD;
        --color-secondary: #FBBF24;
        --color-success: #34D399;
        --color-text: #F9FAFB;
        --color-text-light: #9CA3AF;
        --color-bg: #111827;
        --color-bg-light: #1F2937;
        --color-bg-alt: #374151;
        --color-border: #374151;
        --color-card: #1F2937;
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
        --chrome-bg: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
        --chrome-border: #1a1a1a;
        --chrome-title: #a0a0a0;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Bar */
.top-bar {
    background-color: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 0.4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.top-bar-label {
    font-weight: 500;
}

.top-bar-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.top-bar-link:hover {
    color: var(--color-primary);
}

.top-bar-desc {
    font-weight: 400;
}

.top-bar-sep {
    color: var(--color-border);
    margin: 0 0.15rem;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.35rem 1rem;
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .top-bar-desc {
        display: none;
    }
}

/* Header & Navigation */
header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

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

.theme-toggle {
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--color-text);
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun-icon { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .moon-icon { display: none; }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: all 0.2s;
    line-height: 1;
}

.lang-btn:first-child {
    border-right: 1px solid var(--color-border);
}

.lang-btn.active {
    background-color: var(--color-primary);
    color: white;
}

.lang-btn:not(.active):hover {
    background-color: var(--color-bg-light);
    color: var(--color-text);
}

/* Language visibility */
[lang="de"] .lang-en,
[lang="en"] .lang-de {
    display: none !important;
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    border-radius: var(--border-radius-lg);
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    border: 2px solid var(--color-primary);
}

.cta-button-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mac App Store Badge */
.mac-app-store-badge {
    display: inline-block;
    transition: opacity 0.2s;
}

.mac-app-store-badge:hover {
    opacity: 0.8;
}

.mac-app-store-badge img {
    height: 40px;
    width: auto;
}

.mac-app-store-badge .badge-dark {
    display: none;
}

[data-theme="dark"] .mac-app-store-badge .badge-light {
    display: none;
}

[data-theme="dark"] .mac-app-store-badge .badge-dark {
    display: inline;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mac-app-store-badge .badge-light {
        display: none;
    }
    :root:not([data-theme="light"]) .mac-app-store-badge .badge-dark {
        display: inline;
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Features Grid */
.features {
    margin: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: var(--color-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-icon.primary { background-color: rgba(59, 130, 246, 0.15); color: var(--color-primary); }
.feature-icon.secondary { background-color: rgba(245, 158, 11, 0.15); color: var(--color-secondary); }
.feature-icon.success { background-color: rgba(16, 185, 129, 0.15); color: var(--color-success); }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

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

/* Feature List (compact) */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.4rem 0;
    padding-left: 1rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
    position: relative;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* Feature Detail Cards (larger with list) */
.feature-detail-card {
    background-color: var(--color-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.feature-detail-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.feature-detail-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Screenshots Section */
.screenshots {
    margin: 4rem 0;
}

.screenshot-hero {
    margin-bottom: 2rem;
}

.screenshot-hero .screenshot-caption {
    text-align: center;
    max-width: 700px;
    margin: 1.5rem auto 0 auto;
}

.screenshot-hero .screenshot-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.screenshot-hero .screenshot-caption p {
    color: var(--color-text-light);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.screenshots-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    background: var(--color-card);
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* macOS Window Chrome */
.window-chrome {
    background: var(--chrome-bg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--chrome-border);
    position: relative;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.window-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.window-controls .dot.red { background: #ff5f57; }
.window-controls .dot.yellow { background: #ffbd2e; }
.window-controls .dot.green { background: #28c840; }

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--chrome-title);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-item .screenshot-caption {
    padding: 1rem;
    text-align: center;
    background-color: var(--color-card);
}

.screenshot-item .screenshot-caption h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.screenshot-item .screenshot-caption p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Highlight Section */
.highlight-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    margin: 4rem 0;
}

[data-theme="dark"] .highlight-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .highlight-section {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    }
}

/* Keyboard Shortcuts Table */
.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.shortcuts-table th,
.shortcuts-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.shortcuts-table th {
    font-weight: 600;
    color: var(--color-text);
    background-color: var(--color-bg-light);
}

.shortcuts-table td {
    color: var(--color-text-light);
}

.shortcuts-table tr:hover td {
    background-color: var(--color-bg-light);
}

kbd {
    display: inline;
    padding: 0.15rem 0.4rem;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.85em;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    color: var(--color-text);
}

/* Archive Formats Badge List */
.format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.format-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: var(--color-bg-alt);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, monospace;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1001;
}

.lightbox-close:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: var(--color-primary);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Content Pages */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.content-page h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.content-page h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.content-page p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.content-page ul, .content-page ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.content-page a {
    color: var(--color-primary);
}

.content-page code {
    background-color: var(--color-bg-light);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.875em;
    color: var(--color-primary);
}

/* Info Box */
.info-box {
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 1.5rem 0;
}

/* Footer */
footer {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
        font-size: 0.875rem;
        flex-wrap: wrap;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid,
    .screenshots-grid-3 {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1rem;
    }

    .content-page {
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button, .cta-button-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .shortcuts-table {
        font-size: 0.85rem;
    }

    .shortcuts-table th,
    .shortcuts-table td {
        padding: 0.5rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
