/* Site-wide Component Styles (matches index.html exactly) */

/* CSS Variables - Full index.html color system */
:root {
    /* Zed-inspired color system */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    
    /* Sophisticated grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Text colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-accent: var(--gray-100);
    
    /* Sophisticated spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Typography scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header Styles (matches index.html exactly) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--gray-300);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.logo-mark img {
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    list-style: none;
}

/* Ensure nav links are properly aligned on all pages */
.header .nav-links,
.nav-container .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-2xl) !important;
    list-style: none !important;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    transition: all 0.2s ease;
    position: relative;
}

/* Ensure nav links have consistent styling on all pages */
.header .nav-links a,
.nav-container .nav-links a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: var(--text-sm) !important;
    position: relative !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

/* Header button styling - more specific to avoid conflicts */
.header .btn,
.nav-container .btn {
    padding: var(--space-sm) var(--space-lg) !important;
    font-size: var(--text-sm) !important;
}

.btn-primary,
.header .btn-primary,
.nav-container .btn-primary {
    background: linear-gradient(145deg, #3b82f6, #1e40af) !important;
    color: white !important;
    box-shadow: 
        0 3px 6px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #1e40af !important;
}

.btn-primary:hover,
.header .btn-primary:hover,
.nav-container .btn-primary:hover {
    background: linear-gradient(145deg, #1d4ed8, #1e40af) !important;
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 
        0 8px 24px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Footer Styles (matches index.html exactly) */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    text-align: left;
}

.footer-section h3 {
    color: white;
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-section h4 {
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all 0.2s ease;
    display: block;
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-xl);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

/* Mobile Responsive for Components */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        flex: 1;
        justify-content: flex-end;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        text-align: center;
    }
}

/* CTA Section Styles */
.cta {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.cta-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
}

.cta .btn-primary {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    color: var(--gray-900);
    border: 1px solid #cbd5e1;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.cta .btn-primary:hover {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cta .btn-primary:active {
    transform: translateY(1px) scale(1.01);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 3px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta .btn-secondary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta .btn-secondary:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cta .btn-secondary:active {
    transform: translateY(1px) scale(1.01);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.section {
    padding: var(--space-4xl) 0;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
}

/* Mobile adjustments for CTA */
@media (max-width: 768px) {
    .cta-title {
        font-size: var(--text-3xl);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Body padding for fixed header */
body {
    padding-top: 80px;
}

/* Ensure header and footer components use full width regardless of page container */
.header,
.footer {
    width: 100%;
    max-width: none !important;
}

/* Navigation container should never be affected by page-specific container styles */
#navigation-container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Complete CSS reset for navigation container - isolate from page styles */
#navigation-container,
#navigation-container * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 100% !important;
    font: inherit !important;
    vertical-align: baseline !important;
    line-height: normal !important;
    text-decoration: none !important;
    list-style: none !important;
}

/* Ensure nav container uses proper styling regardless of page context */
#navigation-container .nav-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 var(--space-lg) !important;
}

/* Ensure navigation padding is consistent across all pages */
#navigation-container .nav {
    padding: var(--space-lg) 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Rebuild button styling after reset */
#navigation-container .btn,
#navigation-container .btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--space-sm) !important;
    padding: var(--space-md) var(--space-lg) !important;
    font-size: var(--text-sm) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    background: linear-gradient(145deg, #3b82f6, #1e40af) !important;
    color: white !important;
    box-shadow: 
        0 3px 6px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#navigation-container .btn:hover,
#navigation-container .btn-primary:hover {
    background: linear-gradient(145deg, #1d4ed8, #1e40af) !important;
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 
        0 8px 24px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Rebuild navigation styling after reset */
#navigation-container .logo {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-md) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: var(--text-xl) !important;
}

#navigation-container .logo-mark {
    width: 42px !important;
    height: 42px !important;
    background: var(--primary) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: var(--space-xs) !important;
}

#navigation-container .logo:hover .logo-mark {
    transform: scale(1.05) rotate(2deg) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2) !important;
}

#navigation-container .logo-mark img {
    width: 100% !important;
    height: 100% !important;
}

#navigation-container .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-2xl) !important;
}

#navigation-container .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: var(--space-2xl) !important;
}

#navigation-container .nav-links li {
    display: flex !important;
    align-items: center !important;
}

#navigation-container .nav-links a {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    font-size: var(--text-sm) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

#navigation-container .nav-links a:hover {
    color: var(--text-primary) !important;
    transform: translateY(-1px) !important;
}

#navigation-container .nav-cta {
    display: flex !important;
    align-items: center !important;
}

.nav-container,
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}