/* 
 * MissionPilot - Main Stylesheet
 * Shared across all pages for consistency
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Blues */
    --primary-blue: #1a73e8;
    --accent-blue: #60a5fa;
    --accent-gradient-start: #1a73e8;
    --accent-gradient-end: #4285f4;
    
    /* Backgrounds */
    --bg-primary: #0a0e1a;
    --bg-secondary: #131720;
    --bg-tertiary: #1a1f2e;
    --bg-elevated: #212837;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #e3e8ef;
    --text-tertiary: #94a3b8;
    --text-accent: #60a5fa;
    
    /* Borders */
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-medium: rgba(148, 163, 184, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* ===== BASE STYLES ===== */
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    color: white;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-coming {
    background: var(--bg-elevated);
    color: var(--text-tertiary);
    border: 1px solid var(--border-medium);
}

.badge-highlight {
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    color: white;
}

/* ===== ICONS ===== */
.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* ===== NAVIGATION & MEGA MENU ===== */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-item {
    position: relative;
    display: inline-block;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    min-width: 280px;
    z-index: 1000;
    margin-top: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-item:hover .mega-menu {
    display: block;
}

.mega-menu-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.mega-menu-item:hover {
    background: var(--bg-tertiary);
}

.mega-menu-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.mega-menu-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Mega Menu Grid Layout (for Movement menu) */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    min-width: 500px;
}

.mega-menu-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.mega-menu-link:hover {
    background: var(--bg-tertiary);
}

.mega-menu-icon {
    width: 40px;
    height: 40px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-menu-icon i {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
}

.mega-menu-content {
    flex: 1;
}

