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

:root {
    /* Light Mode Colors (Default) */
    --color-primary: #0EA5E9; /* Cyan/Sky blue */
    --color-primary-dark: #0284C7;
    --color-primary-light: #38BDF8;
    --color-secondary: #F97316; /* Orange for triggers */
    --color-success: #22C55E; /* Green for actions */
    --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);

    /* Window Chrome */
    --chrome-bg: linear-gradient(180deg, #e8e8e8 0%, #d1d1d1 100%);
    --chrome-border: #b8b8b8;
    --chrome-title: #4a4a4a;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --color-primary: #38BDF8;
    --color-primary-dark: #0EA5E9;
    --color-primary-light: #7DD3FC;
    --color-secondary: #FB923C;
    --color-success: #4ADE80;
    --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);

    /* Window Chrome Dark */
    --chrome-bg: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
    --chrome-border: #1a1a1a;
    --chrome-title: #a0a0a0;
}

/* Auto Dark Mode (System Preference) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-primary: #38BDF8;
        --color-primary-dark: #0EA5E9;
        --color-primary-light: #7DD3FC;
        --color-secondary: #FB923C;
        --color-success: #4ADE80;
        --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;
}

/* 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;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.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);
}

/* Theme & Language Switchers */
.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; }
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    background-color: var(--color-bg-light);
    border-radius: 8px;
    padding: 0.25rem;
}

.lang-switcher a {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--color-text-light);
}

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

.lang-switcher a:not(.active):hover {
    background-color: var(--color-bg-alt);
    color: var(--color-text);
}

/* 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: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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;
    height: 48px;
    box-sizing: border-box;
    background-color: transparent;
    color: var(--color-primary);
    padding: 0 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1.5px solid var(--color-primary);
}

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

/* App Store Badge */
.app-store-link {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

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

/* 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: 4rem;
}

.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.trigger { background-color: rgba(249, 115, 22, 0.15); color: var(--color-secondary); }
.feature-icon.action { background-color: rgba(34, 197, 94, 0.15); color: var(--color-success); }
.feature-icon.primary { background-color: rgba(14, 165, 233, 0.15); color: var(--color-primary); }

.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;
}

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

/* Screenshot Hero */
.screenshot-hero {
    margin-bottom: 4rem;
}

.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);
}

/* Screenshot Categories */
.screenshot-category {
    margin: 4rem 0;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

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

/* Screenshot Items */
.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 Images - Light/Dark Switching */
.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

img.light-img { display: block; }
img.dark-img { display: none; }

[data-theme="dark"] img.light-img { display: none; }
[data-theme="dark"] img.dark-img { display: block; }

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

/* Screenshot Captions */
.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;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.badge-trigger {
    background-color: rgba(249, 115, 22, 0.15);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.badge-action {
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
    border-color: var(--color-success);
}

/* Lightbox Modal */
.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; }

/* Highlight Section */
.highlight-section {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(56, 189, 248, 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(14, 165, 233, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
}

/* Quick Links / Navigation Cards */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.nav-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nav-card-content h3 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.nav-card-content p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

/* 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 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;
}

.info-box.warning {
    border-left-color: var(--color-secondary);
}

.info-box.success {
    border-left-color: var(--color-success);
}

/* 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 {
        grid-template-columns: 1fr;
    }

    .nav-cards {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1rem;
    }

    .content-page {
        padding: 1rem;
    }

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

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

    .cta-button-secondary {
        height: 40px;
        font-size: 0.875rem;
    }

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

    .cta-button, .cta-button-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: 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 animations */
.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);
}
