/* =====================================================
   JobMetasearch Landing - Design System
   Shared across all SSR pages (home, about, jobs, etc.)
   Uses same design tokens as the main Blazor app
   ===================================================== */

/* CSS Variables */
:root {
    --brand-purple: #6059C3;
    --brand-purple-dark: #4A47A3;
    --brand-purple-light: #7B75D1;
    --brand-gray-50: #F9FAFB;
    --brand-gray-100: #F3F4F6;
    --brand-gray-200: #E5E7EB;
    --brand-gray-500: #6B7280;
    --brand-gray-600: #4B5563;
    --brand-gray-800: #1F2937;
    --brand-gray-900: #111827;
    --light-purple: #F4F3FF;
    --gradient-primary: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
    --gradient-hero: linear-gradient(180deg, var(--light-purple) 0%, #ffffff 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 10px 30px -10px rgba(96, 89, 195, 0.3);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--brand-gray-800);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-gray-900);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-elevated);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(96, 89, 195, 0.4);
    background: var(--gradient-primary);
}

.btn-outline-secondary {
    border: 1px solid var(--brand-gray-200);
    color: var(--brand-gray-800);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    background: var(--brand-gray-100);
    border-color: var(--brand-gray-300);
    color: var(--brand-gray-900);
}

.btn-light {
    background: #fff;
    color: var(--brand-purple);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
}
.btn-light:hover {
    background: var(--brand-gray-50);
    color: var(--brand-purple-dark);
    transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Navbar */
.navbar-fixed {
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--brand-gray-100);
}
.navbar { padding: 1rem 0; }
.brand-name { font-weight: 700; font-size: 1.25rem; color: var(--brand-gray-900); }
.navbar-nav .nav-link {
    color: var(--brand-gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover { color: var(--brand-gray-900); }
.navbar-toggler { color: var(--brand-gray-800); }
.navbar-toggler:focus { box-shadow: none; }

/* Hero */
.hero-section {
    position: relative;
    padding: 2rem 0 2rem;
    background: var(--gradient-hero);
    overflow: hidden;
}
.hero-bg-decoration { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero-blob-1 { top: -10rem; right: -10rem; width: 20rem; height: 20rem; background: rgba(96, 89, 195, 0.08); }
.hero-blob-2 { bottom: -10rem; left: -10rem; width: 24rem; height: 24rem; background: rgba(96, 89, 195, 0.06); }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 9999px;
    background: var(--light-purple); border: 1px solid rgba(96, 89, 195, 0.2);
    margin-bottom: 2rem;
}
.hero-badge i { color: var(--brand-purple); }
.hero-badge span { font-size: 0.875rem; font-weight: 500; color: var(--brand-gray-800); }

.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
@media (min-width: 576px) { .hero-title { font-size: 3rem; } }
@media (min-width: 992px) { .hero-title { font-size: 3.75rem; } }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-subtitle { font-size: 1.125rem; color: var(--brand-gray-600); max-width: 36rem; margin: 0 auto 2.5rem; }
@media (min-width: 576px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: 4rem; }
@media (min-width: 576px) { .hero-cta { flex-direction: row; justify-content: center; } }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 100%; margin: 0 auto; }
@media (min-width: 576px) { .hero-stats { gap: 2rem; max-width: 32rem; } }
.stat-item { text-align: center; }
.stat-value { font-size: 1.875rem; font-weight: 700; color: var(--brand-gray-900); margin-bottom: 0.25rem; }
@media (min-width: 576px) { .stat-value { font-size: 2.25rem; } }
.stat-label { font-size: 0.875rem; font-weight: 500; color: var(--brand-gray-500); }

/* Features */
.features-section { padding: 2rem 0; background: #fff; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 576px) { .section-title { font-size: 2.5rem; } }
.section-subtitle-1 { font-size: 1.125rem; color: var(--brand-gray-600); margin-bottom: 0.5rem; }
.section-subtitle-2 { font-size: 1rem; color: var(--brand-gray-500); }

.feature-card {
    padding: 2rem; border-radius: 1rem; background: #fff;
    border: 1px solid var(--brand-gray-200); box-shadow: var(--shadow-sm);
    transition: all 0.3s ease; height: 100%;
}
.feature-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(96, 89, 195, 0.3); transform: translateY(-4px); }

.feature-icon {
    width: 56px; height: 56px; border-radius: 0.75rem;
    background: var(--light-purple); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; transition: background 0.3s ease;
}
.feature-card:hover .feature-icon { background: rgba(96, 89, 195, 0.15); }
.feature-icon i { font-size: 1.5rem; color: var(--brand-purple); }
.feature-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.feature-description { color: var(--brand-gray-600); line-height: 1.6; margin-bottom: 0; }

/* CTA Section */
.cta-section { padding: 5rem 0; background: var(--light-purple); }
@media (min-width: 992px) { .cta-section { padding: 7rem 0; } }
.cta-card { position: relative; padding: 3rem 2rem; border-radius: 1.5rem; background: var(--gradient-primary); overflow: hidden; text-align: center; }
@media (min-width: 992px) { .cta-card { padding: 4rem 3rem; } }
.cta-bg-decoration { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cta-blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.cta-blob-1 { top: 0; left: 25%; width: 16rem; height: 16rem; background: rgba(255, 255, 255, 0.08); }
.cta-blob-2 { bottom: 0; right: 25%; width: 12rem; height: 12rem; background: rgba(255, 255, 255, 0.06); }
.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: 1.875rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
@media (min-width: 576px) { .cta-title { font-size: 2.25rem; } }
@media (min-width: 992px) { .cta-title { font-size: 3rem; } }
.cta-description { font-size: 1.12rem; color: rgba(255, 255, 255, 0.85); max-width: 32rem; margin: 0 auto 2rem; }
.cta-button i { transition: transform 0.3s ease; }
.cta-button:hover i:last-child { transform: translateX(4px); }

/* Footer */
.footer-section { background: var(--brand-gray-900); color: #fff; padding: 4rem 0 2rem; }
.footer-brand .brand-name { color: #fff; }
.footer-description { color: rgba(255, 255, 255, 0.7); max-width: 20rem; line-height: 1.7; }
.footer-heading { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: #fff; }
.social-link { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s ease; }
.social-link:hover { color: #fff; }
.social-link i { font-size: 1.25rem; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.copyright { text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; margin: 0; }

/* About Page */
.about-hero-section { position: relative; padding: 5rem 0 5rem; background: var(--gradient-hero); overflow: hidden; }
@media (min-width: 992px) { .about-hero-section { padding: 9rem 0 6rem; } }
.about-hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
@media (min-width: 576px) { .about-hero-title { font-size: 3rem; } }
@media (min-width: 992px) { .about-hero-title { font-size: 3.5rem; } }
.about-hero-subtitle { font-size: 1.125rem; color: var(--brand-gray-600); max-width: 42rem; margin: 0 auto; line-height: 1.7; }
@media (min-width: 576px) { .about-hero-subtitle { font-size: 1.25rem; } }

.story-section { padding: 5rem 0; background: #fff; }
@media (min-width: 992px) { .story-section { padding: 7rem 0; } }
.story-content p { font-size: 1.125rem; color: var(--brand-gray-600); line-height: 1.8; margin-bottom: 1.5rem; }
.story-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }

.values-section { padding: 5rem 0; background: var(--brand-gray-50); }
@media (min-width: 992px) { .values-section { padding: 7rem 0; } }
.value-card { padding: 2rem; border-radius: 1rem; background: #fff; border: 1px solid var(--brand-gray-200); box-shadow: var(--shadow-sm); transition: all 0.3s ease; height: 100%; text-align: center; }
.value-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(96, 89, 195, 0.3); transform: translateY(-4px); }
.value-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--light-purple); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.value-card:hover .value-icon { background: rgba(96, 89, 195, 0.15); }
.value-icon i { font-size: 1.75rem; color: var(--brand-purple); }
.value-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.value-description { color: var(--brand-gray-600); line-height: 1.6; margin-bottom: 0; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease-out forwards; animation-delay: 0.4s; opacity: 0; }

/* Utility */
.text-brand { color: var(--brand-purple); }
.bg-brand { background: var(--brand-purple); }
.bg-brand-light { background: var(--light-purple); }
.bg-light { background: var(--brand-gray-50) !important; }
