/* =====================================================
   DESIGN SYSTEM - LPS MIRCEA ELIADE
   Culori uniforme, fonturi consistente, contrast WCAG AA
   ===================================================== */

/* ========== VARIABILE UNIFICATE ========== */
:root {
    /* === CULORI PRINCIPALE === */
    --color-primary: #0a2463;
    --color-primary-light: #1e4d8c;
    --color-primary-dark: #061539;
    --color-primary-rgb: 10, 36, 99;
    
    /* === CULORI SECUNDARE (ORANGE) === */
    --color-secondary: #fb8b24;
    --color-secondary-light: #fca94e;
    --color-secondary-dark: #e07a1f;
    --color-secondary-rgb: 251, 139, 36;
    
    /* === CULORI ACCENT === */
    --color-accent: #e63946;
    --color-success: #2dc653;
    --color-warning: #f39c12;
    --color-info: #17a2b8;
    --color-danger: #dc3545;
    
    /* === CULORI TEXT (CONTRAST WCAG AA) === */
    --text-dark: #1a1a2e;           /* Contrast 15.5:1 pe alb */
    --text-body: #2d3748;           /* Contrast 10.5:1 pe alb */
    --text-muted: #4a5568;          /* Contrast 7:1 pe alb - WCAG AA */
    --text-light: #718096;          /* Contrast 4.5:1 pe alb - minim WCAG AA */
    --text-white: #ffffff;
    --text-on-primary: #ffffff;
    --text-on-secondary: #1a1a2e;
    
    /* === CULORI FUNDAL === */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f1f5f9;
    --bg-dark: #1a1a2e;
    --bg-darker: #0d1b2a;
    
    /* === CULORI BORDER === */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    --border-dark: #a0aec0;
    
    /* === GRADIENTE UNIFICATE === */
    --gradient-primary: linear-gradient(135deg, #0a2463 0%, #1e4d8c 100%);
    --gradient-hero: linear-gradient(135deg, #0a2463 0%, #1e4d8c 50%, #3d5a80 100%);
    --gradient-secondary: linear-gradient(135deg, #fb8b24 0%, #fca94e 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #0d1b2a 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    
    /* === FONTURI === */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
    
    /* === DIMENSIUNI FONT === */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    
    /* === FONT WEIGHT === */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* === SPACING === */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    
    /* === BORDER RADIUS === */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* === SHADOWS === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(10, 36, 99, 0.08);
    --shadow-card-hover: 0 8px 30px rgba(10, 36, 99, 0.15);
    
    /* === TRANSITIONS === */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE STYLES ========== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-white);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--space-4);
}

h1, .h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
}

h2, .h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
}

h3, .h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
}

h4, .h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

h5, .h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
}

h6, .h6 {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-body);
}

/* Text pe fundal întunecat */
.text-on-dark,
.bg-dark p,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.hero-section p,
.hero-section h1, .hero-section h2,
.page-hero p,
.page-hero h1, .page-hero h2,
footer p,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: var(--text-white);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ========== LINKS ========== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

/* Links pe fundal întunecat */
.bg-dark a,
footer a,
.hero-section a:not(.btn) {
    color: rgba(255, 255, 255, 0.9);
}

.bg-dark a:hover,
footer a:hover,
.hero-section a:not(.btn):hover {
    color: var(--color-secondary);
}

/* ========== BUTTONS - UNIFORM ========== */
.btn,
button.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary,
.btn-cta {
    background: var(--gradient-secondary);
    color: var(--text-dark) !important;
    border-color: var(--color-secondary);
}

.btn-primary:hover,
.btn-cta:hover {
    background: var(--color-secondary-light);
    border-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white) !important;
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--color-primary) !important;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* ========== CARDS - UNIFORM ========== */
.card,
.news-card,
.service-card,
.sport-card,
.project-card,
.facility-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.card:hover,
.news-card:hover,
.service-card:hover,
.sport-card:hover,
.project-card:hover,
.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.card-body,
.card-content {
    padding: var(--space-6);
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    margin-bottom: var(--space-3);
}

.card-text,
.card-description {
    font-size: var(--text-base);
    color: var(--text-body);
    line-height: 1.6;
}

/* ========== SECTIONS ========== */
section {
    padding: var(--space-20) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

/* Section pe fundal întunecat */
.section-dark,
.bg-dark {
    background: var(--gradient-dark);
    color: var(--text-white);
}

.section-dark .section-title,
.bg-dark .section-title {
    color: var(--text-white);
}

.section-dark .section-subtitle,
.bg-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== HEADER & NAV ========== */
.header {
    background: var(--gradient-primary);
}

.header.scrolled,
.header.header-solid {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-white);
    transition: color var(--transition-fast);
}

.header.scrolled .nav-link,
.header.header-solid .nav-link {
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--color-secondary);
}

/* ========== FOOTER ========== */
footer,
.footer {
    background: var(--gradient-dark);
    color: var(--text-white);
    padding: var(--space-16) 0 var(--space-8);
}

footer h4,
footer h5,
.footer h4,
.footer h5 {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
}

footer p,
footer li,
.footer p,
.footer li {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    line-height: 1.8;
}

footer a,
.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

footer a:hover,
.footer a:hover {
    color: var(--color-secondary);
}

/* ========== HERO SECTIONS ========== */
.hero-section,
.page-hero,
.sport-hero {
    background: var(--gradient-hero);
    color: var(--text-white);
    position: relative;
}

.hero-section h1,
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: var(--text-white);
    margin-bottom: var(--space-6);
}

.hero-section p,
.page-hero p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* ========== FORMS ========== */
input,
textarea,
select {
    font-family: var(--font-body);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

/* ========== BADGES & TAGS ========== */
.badge,
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: rgba(10, 36, 99, 0.1);
    color: var(--color-primary);
}

.badge-secondary {
    background: rgba(251, 139, 36, 0.15);
    color: var(--color-secondary-dark);
}

.badge-success {
    background: rgba(45, 198, 83, 0.15);
    color: #1a8d3e;
}

/* ========== STATS ========== */
.stat-number,
.hero-stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--color-secondary);
    line-height: 1;
}

.stat-label,
.hero-stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== LISTS ========== */
.feature-list,
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li,
.check-list li {
    position: relative;
    padding-left: var(--space-8);
    margin-bottom: var(--space-3);
    color: var(--text-body);
}

.feature-list li::before,
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: var(--font-bold);
}

/* ========== CONTRAST FIX - TEXT GRIU ========== */
/* Înlocuiește #999, #4a5568, gray cu contrast mai bun */
.text-gray,
.text-secondary-muted {
    color: var(--text-muted) !important; /* #4a5568 - contrast 7:1 */
}

/* Override pentru clasele vechi cu contrast slab */
[class*="text-gray"],
[class*="text-muted"] {
    color: var(--text-muted) !important;
}

/* ========== UTILITY CLASSES ========== */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-white { color: var(--text-white) !important; }

.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }
.bg-white { background-color: var(--bg-white) !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    :root {
        --text-4xl: 2rem;
        --text-5xl: 2.5rem;
        --space-20: 4rem;
        --space-16: 3rem;
    }
    
    h1, .h1 {
        font-size: var(--text-3xl);
    }
    
    h2, .h2 {
        font-size: var(--text-2xl);
    }
    
    .hero-section h1,
    .page-hero h1 {
        font-size: var(--text-3xl);
    }
    
    section {
        padding: var(--space-16) 0;
    }
}

/* ========== PRINT ========== */
@media print {
    body {
        font-family: Georgia, 'Times New Roman', serif;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
}
