/* FunPilot Landing Page Styles */

/* Light theme (default) */
:root {
    --primary-color: #FF33CC;
    --primary-dark: #D429A8;
    --secondary-color: #18CAC2;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-alt: #f5f5f5;
    --header-bg: #fff;
    --footer-bg: #333;
    --footer-text: #fff;
    --card-shadow: rgba(0,0,0,0.1);
}

/* Dark theme */
[data-theme="dark"] {
    --primary-color: #FF66D9;
    --primary-dark: #FF33CC;
    --secondary-color: #4DE8E0;
    --text-color: #E5E5E5;
    --text-light: #A0A0A0;
    --bg-color: #1A1A1A;
    --bg-alt: #2A2A2A;
    --header-bg: #1A1A1A;
    --footer-bg: #0D0D0D;
    --footer-text: #E5E5E5;
    --card-shadow: rgba(0,0,0,0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    box-shadow: 0 2px 4px var(--card-shadow);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
}

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

/* Language Toggle Button */
.lang-toggle {
    background: transparent;
    border: 1px solid var(--text-light);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    margin-left: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: border-color 0.2s, background-color 0.2s;
}

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

.lang-flag {
    display: inline-block;
    line-height: 1;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.feature {
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: 12px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Download Section */
.download {
    padding: 4rem 2rem;
    background: var(--bg-alt);
    text-align: center;
    transition: background-color 0.3s ease;
}

.download h2 {
    margin-bottom: 2rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn img {
    height: 50px;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background: var(--footer-bg);
    color: var(--footer-text);
    transition: background-color 0.3s ease;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--footer-text);
    margin: 0 1rem;
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

/* Theme Mode Selector (3 icons: light/system/dark) */
.theme-selector {
    display: flex;
    gap: 4px;
    margin-left: 0.5rem;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--text-light);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
}

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

.theme-btn.active {
    border-color: var(--primary-color);
    border-width: 2px;
    background-color: rgba(255, 51, 204, 0.1);
}

[data-theme="dark"] .theme-btn.active {
    background-color: rgba(255, 102, 217, 0.15);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
    transition: fill 0.2s;
}

.theme-btn:hover svg,
.theme-btn.active svg {
    fill: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        margin-left: 1rem;
    }
}
