/* ===============================================
   SHARED LAYOUT SYSTEM - UNIFIED CONTENT WIDTH & SPACING
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ===============================================
   PURE SWISS DESIGN SYSTEM - UNIFIED VARIABLES
   =============================================== */

:root {
    /* Pure Colors - No Compromises */
    --pure-white: #ffffff;
    --pure-black: #000000;
    
    /* Swiss Grays - Precision Engineering */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Swiss Red for Flag */
    --swiss-red: #ff0000;
    
    /* Viewport-Responsive Typography Hierarchy */
    --font-hero: clamp(48px, 9vw, 130px);
    --font-section-title: clamp(36px, 6vw, 72px);
    --font-subsection-title: clamp(24px, 4vw, 40px);
    --font-card-title: clamp(20px, 3vw, 28px);
    --font-list-title: clamp(18px, 2.5vw, 24px);
    --font-hero-subtitle: clamp(14px, 2.5vw, 22px);
    --font-section-subtitle: clamp(16px, 2.5vw, 22px);
    --font-body: clamp(15px, 2vw, 18px);
    --font-small: clamp(13px, 1.5vw, 16px);
    --font-tiny: clamp(12px, 1.2vw, 14px);
    --font-mono: clamp(11px, 1vw, 13px);
    
    /* Viewport-Responsive Spacing Scale */
    --space-xs: clamp(6px, 1vh, 12px);
    --space-sm: clamp(12px, 2vh, 20px);
    --space-md: clamp(16px, 2.5vh, 28px);
    --space-lg: clamp(20px, 3vh, 36px);
    --space-xl: clamp(24px, 4vh, 48px);
    --space-2xl: clamp(32px, 5vh, 64px);
    --space-3xl: clamp(40px, 6vh, 80px);
    --space-4xl: clamp(48px, 8vh, 100px);
    
    /* UNIFIED LAYOUT - SAME FOR ALL PAGES */
    --container-max: 1536px;
    --container-padding: var(--space-xl);
    --section-padding: var(--space-4xl);
    --nav-height: 80px;
    
    /* Liquid Transitions - Enhanced Smoothness */
    --transition-fast: 0.15s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-smooth: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-liquid: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Shadows */
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.dark {
    --shadow-subtle: 0 1px 3px rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 4px 12px rgba(255, 255, 255, 0.08);
    --shadow-medium: 0 8px 24px rgba(255, 255, 255, 0.12);
    --shadow-strong: 0 16px 48px rgba(255, 255, 255, 0.16);
}

/* ===============================================
   GLOBAL RESET & FOUNDATION
   =============================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: "kern" 1, "liga" 1, "cv02" 1, "cv03" 1, "cv04" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: var(--pure-white);
    color: var(--pure-black);
    line-height: 1.5;
    overflow-x: hidden;
}

.dark body {
    background: var(--pure-black);
    color: var(--pure-white);
}

/* ===============================================
   UNIFIED LAYOUT CONTAINERS
   =============================================== */

/* Main content areas - account for fixed navigation */
.main-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* Standard container for all pages */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Admin-style container for authenticated pages */
.admin-container {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(249,250,251,0.95) 100%);
    padding-top: var(--nav-height);
}

.dark .admin-container {
    background: linear-gradient(135deg, rgba(0,0,0,0.98) 0%, rgba(17,24,39,0.95) 100%);
}

/* Hero section - unified for all pages */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: clamp(120px, 12vh, 160px) 0 clamp(40px, 5vh, 80px);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(249,250,251,0.95) 100%);
    z-index: 1;
}

.dark .hero-section {
    background: linear-gradient(135deg, rgba(0,0,0,0.98) 0%, rgba(17,24,39,0.95) 100%);
}

/* Section container */
.section {
    padding: var(--section-padding) 0;
}

/* ===============================================
   TYPOGRAPHY SYSTEM - UNIFIED
   =============================================== */

/* Hero Typography */
.hero-title {
    font-size: var(--font-hero);
    font-weight: 100;
    letter-spacing: -0.03em;
    line-height: 0.9;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--pure-black) 0%, var(--gray-600) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.dark .hero-title {
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--gray-400) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: var(--font-hero-subtitle);
    font-weight: 300;
    color: var(--gray-600);
    line-height: 1.4;
    margin-bottom: var(--space-xl);
    max-width: min(600px, 90vw);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.dark .hero-subtitle {
    color: var(--gray-400);
}

/* Admin Typography */
.admin-title {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.dark .admin-title {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: rgba(0,0,0,0.6);
}

.dark .admin-subtitle {
    color: rgba(255,255,255,0.6);
}

/* Launchpad specific titles */
.launchpad-title {
    font-size: var(--font-hero);
    font-weight: 200;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: var(--pure-black);
    margin-bottom: var(--space-lg);
}

.dark .launchpad-title {
    color: var(--pure-white);
}

.launchpad-subtitle {
    font-size: var(--font-hero-subtitle);
    font-weight: 300;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.5;
}

.dark .launchpad-subtitle {
    color: var(--gray-400);
}

/* ===============================================
   BUTTONS - UNIFIED SYSTEM
   =============================================== */

.admin-btn-primary {
    background: rgba(0,0,0,1);
    border: 1px solid rgba(0,0,0,1);
    color: white;
    padding: 14px 28px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.005em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dark .admin-btn-primary {
    background: rgba(255,255,255,1);
    border-color: rgba(255,255,255,1);
    color: rgba(0,0,0,1);
}

.admin-btn-primary:hover {
    background: rgba(59, 130, 246, 1);
    border-color: rgba(59, 130, 246, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    color: white;
}

.admin-btn-secondary {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    color: rgba(0,0,0,0.7);
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.dark .admin-btn-secondary {
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}

.admin-btn-secondary:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.25);
    color: rgba(0,0,0,0.9);
    transform: translateY(-1px);
}

.dark .admin-btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
}

/* ===============================================
   HEADER SECTIONS - UNIFIED
   =============================================== */

.launchpad-header {
    text-align: center;
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.launchpad-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

/* ===============================================
   RESPONSIVE DESIGN - UNIFIED
   =============================================== */

@media (max-width: 1200px) {
    :root {
        --container-padding: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-md);
        --section-padding: var(--space-2xl);
    }
    
    .hero-section {
        min-height: 80vh !important;
        height: 80vh !important;
        padding: calc(80px + var(--space-xl)) 0 var(--space-lg) !important;
        align-items: center !important;
        z-index: 1 !important;
    }
    
    .launchpad-actions {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }
    
    .admin-btn-primary,
    .admin-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 75vh !important;
        height: 75vh !important;
        padding: calc(70px + var(--space-md)) 0 var(--space-md) !important;
    }
}
