/* assets/style.css - WERSJA "HIGH CONTRAST" (Mniej męcząca wzrok) */

/* === 1. ZMIENNE KOLORYSTYCZNE === */
:root {
    /* DARK MODE (Domyślny) */
    --bg-body: #020617;      /* Bardzo ciemny granat/czarny */
    --bg-section: #0b101e;   /* Odrobinę jaśniejszy od body */
    --bg-card: #151e32;      /* Wyraźnie jaśniejsze tło kart */
    --bg-main: #0b101e;      /* Tło elementów wewnątrz kart */
    --bg-glass: rgba(2, 6, 23, 0.9);
    
    --bg-scientists: #000000;

    --text-main: #f1f5f9;    /* Jasny biały/szary */
    --text-muted: #94a3b8;   /* Stonowany szary */
    --text-active: #ffffff;
    
    --accent: #38bdf8;         
    --accent-secondary: #0ea5e9;
    --accent-glow: rgba(56, 189, 248, 0.15);
    
    /* SUCCESS/GREEN - Darker Emerald for better contrast */
    --success: #059669;           /* Emerald 600 - darker, professional */
    --success-light: #10b981;     /* Emerald 500 */
    --success-glow: rgba(5, 150, 105, 0.15);
    
    /* ERROR/RED */
    --error: #dc2626;
    --error-light: #ef4444;
    --error-glow: rgba(220, 38, 38, 0.15);
    
    /* ZWIĘKSZONY KONTRAST OBRAMOWAŃ (Dla Dark Mode) */
    --border-color: rgba(255, 255, 255, 0.15); 
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    
    --h-height: 80px;

    /* Lampa */
    --lamp-body: #64748b; 
    --lamp-shade-off: #475569;
    --lamp-glow: transparent;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--success);
    border-radius: 10px;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--success-light);
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--success) rgba(148, 163, 184, 0.1);
}

body.light-mode {
    /* LIGHT MODE (Poprawiony kontrast dla oczu) */
    --bg-body: #f8fafc;       /* Złamana biel (nie czysta!) */
    --bg-section: #ffffff;    /* Czysta biel dla sekcji */
    --bg-card: #ffffff;
    --bg-main: #f1f5f9;      /* Tło elementów wewnątrz kart */
    --bg-glass: rgba(255, 255, 255, 0.95);
    
    --bg-scientists: #f1f5f9; 

    --text-main: #0f172a;     /* Ciemny granat (prawie czarny) */
    --text-muted: #475569;
    --text-active: #020617;
    
    --accent: #0284c7;        
    --accent-secondary: #0369a1;
    --accent-glow: rgba(2, 132, 199, 0.08);
    
    /* SUCCESS/GREEN - Darker for light backgrounds */
    --success: #047857;           /* Emerald 700 - even darker for white bg */
    --success-light: #059669;     /* Emerald 600 */
    --success-glow: rgba(4, 120, 87, 0.1);
    
    /* ERROR/RED */
    --error: #b91c1c;
    --error-light: #dc2626;
    --error-glow: rgba(185, 28, 28, 0.1);
    
    /* ZWIĘKSZONY KONTRAST OBRAMOWAŃ (Dla Light Mode) */
    --border-color: #cbd5e1;  /* Wyraźna szara linia */
    --shadow-card: 0 4px 10px -3px rgba(0, 0, 0, 0.05);

    /* Lampa włączona */
    --lamp-body: #475569;
    --lamp-shade-off: #fbbf24; 
    --lamp-glow: rgba(251, 191, 36, 0.6);
}

/* === 2. BAZA === */
html { box-sizing: border-box; scroll-behavior: smooth; height: 100%; }
*, *:before, *:after { box-sizing: inherit; }

body {
    margin: 0; padding: 0; width: 100%; overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6; font-size: 16px;
    
    /* Sticky Footer Fix */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* Płynne przejście */
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Main content grows to push footer down */
main {
    flex: 1 0 auto;
}

/* Elementy zmieniające kolor */
.h-inner, .offer-card, .btn, .stationary-box, .stat-sidebar, a, i, svg path, .tag, .sc-img, .scientists-section {
    transition: all 0.4s ease; 
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; color: var(--text-main);
    line-height: 1.2; margin-top: 0; margin-bottom: 1rem;
}
p { color: var(--text-muted); margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1200px; }
.container-wide { max-width: 1600px; }
.h-spacer { height: var(--h-height); }

/* === 3. PRZYCISKI === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 8px; font-weight: 600; cursor: pointer;
    font-size: 1rem; white-space: nowrap; width: fit-content;
    border: 1px solid transparent; /* Rezerwacja miejsca na border */
}
.btn-primary {
    background: var(--accent); color: #ffffff !important;
    box-shadow: 0 4px 12px var(--accent-glow);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    background: var(--accent-secondary); 
    box-shadow: 0 8px 20px var(--accent-glow);
}

.tag {
    display: inline-block; width: fit-content;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--accent);
    margin-bottom: 15px; padding: 6px 12px;
    background: var(--accent-glow); 
    border-radius: 6px; border: 1px solid var(--accent);
}

/* === 4. NAGŁÓWEK === */
/* Style headera przeniesione do /assets/header.css */

/* === 5. SEKCJE GŁÓWNE (Z LINIAMI ODDZIELAJĄCYMI) === */

/* Hero: Linia na dole */
.hero { 
    padding: 100px 0 80px; 
    background: radial-gradient(circle at 80% 20%, var(--accent-glow) 0%, transparent 50%);
    border-bottom: 1px solid var(--border-color); /* Oddzielenie od reszty */
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; letter-spacing: -1px; }
.warsaw-highlight { color: var(--accent); position: relative; display: inline-block;}
.warsaw-highlight::after {
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 8px;
    background: var(--accent); opacity: 0.2; transform: skewX(-15deg); z-index: -1;
}
.hero-img { 
    border-radius: 24px; border: 1px solid var(--border-color); 
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4); 
    transform: perspective(1000px) rotateY(-5deg); transition: transform 0.5s ease;
}
.hero-img:hover { transform: perspective(1000px) rotateY(0deg); }

/* Oferta: Tło sekcji inne niż body + Linie góra/dół */
.offer-section { 
    padding: 100px 0; 
    background-color: var(--bg-section); /* Odróżnienie tła */
    border-bottom: 1px solid var(--border-color); 
}
.section-header { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* KARTY: Wyraźniejsze ramki i tło */
.offer-card {
    background: var(--bg-card); 
    border: 1px solid var(--border-color); /* Wyraźna ramka */
    border-radius: 20px; padding: 30px;
    display: flex; flex-direction: column; justify-content: space-between; 
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.offer-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--accent); 
    box-shadow: var(--shadow-card);
}
.card-icon {
    width: 54px; height: 54px; background: var(--accent-glow); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; color: var(--accent); margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.1);
}
.offer-card h3 { font-size: 1.2rem; margin-bottom: 12px; min-height: 2.4em; color: var(--text-main); }
.card-btn {
    display: block; width: 100%; padding: 12px; text-align: center; 
    border-radius: 10px; border: 1px solid var(--border-color);
    color: var(--text-main); font-weight: 600; font-size: 0.9rem; margin-top: auto;
}
.card-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* Kursy */
.stationary-section { 
    padding: 100px 0; 
    background-color: var(--bg-body); 
    border-bottom: 1px solid var(--border-color);
}
.stationary-box {
    background: var(--bg-card); 
    border: 1px solid var(--border-color); /* Ramka */
    border-radius: 24px;
    display: grid; grid-template-columns: 1.5fr 1fr; overflow: hidden; 
    box-shadow: var(--shadow-card);
}
.stat-content { padding: 50px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.stat-sidebar {
    background: var(--bg-section); 
    border-left: 1px solid var(--border-color); /* Linia podziału */
    padding: 50px; display: flex; flex-direction: column; gap: 25px; justify-content: center;
}
.stat-row { display: flex; align-items: center; gap: 15px; }
.stat-icon {
    width: 40px; height: 40px; border-radius: 10px; background: var(--bg-body);
    border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
    color: var(--accent); flex-shrink: 0;
}

/* O mnie */
.about-section { 
    padding: 100px 0; 
    background-color: var(--bg-section); 
}
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: 60px; align-items: center; }
.about-img { 
    width: 250px; border-radius: 20px; border: 1px solid var(--border-color); 
    box-shadow: 20px 20px 0px var(--accent-glow); object-fit: cover; 
}

/* === 6. NAUKOWCY === */
.scientists-section {
    padding: 60px 0; 
    background-color: var(--bg-scientists);
    border-top: 1px solid var(--border-color); /* Linia na górze paska */
    overflow: hidden; position: relative;
    transition: background-color 0.5s ease;
}
.scientists-section::before, .scientists-section::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
    transition: background 0.5s ease;
}
.scientists-section::before { left: 0; background: linear-gradient(to right, var(--bg-scientists), transparent); }
.scientists-section::after { right: 0; background: linear-gradient(to left, var(--bg-scientists), transparent); }

.marquee {
    display: flex; gap: 60px; width: max-content;
    animation: scroll 30s linear infinite; 
}
.marquee:hover { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.sc-item {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    width: 100px; flex-shrink: 0; cursor: pointer; transition: transform 0.3s;
}
.sc-item:hover { transform: translateY(-5px); }

.sc-img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--border-color); background: #333;
    filter: grayscale(100%); transition: filter 0.3s, border-color 0.3s;
}
.sc-item:hover .sc-img { filter: grayscale(0%); border-color: var(--accent); }
.sc-name {
    font-size: 0.85rem; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s;
}
.sc-item:hover .sc-name { color: var(--text-main); }

/* RWD */
@media (max-width: 1150px) {
    .h-nav, .h-btn-desk { display: none; }
    .h-burger { display: flex; }
    .offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero { padding: 60px 0; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; display: flex; flex-direction: column-reverse; gap: 40px; }
    .offer-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .stationary-box { grid-template-columns: 1fr; }
    .stat-sidebar { border-left: none; border-top: 1px solid var(--border-color); padding: 30px; }
    .about-grid { display: flex; flex-direction: column-reverse; text-align: center; gap: 40px; }
    .about-img { margin: 0 auto; box-shadow: 10px 10px 0px var(--accent-glow); }
}

/* === 7. LARGE SCREENS (1440px+) === */
@media (min-width: 1440px) {
    .container { padding: 0 40px; }
    .hero-grid { gap: 80px; }
    .offer-grid { gap: 30px; }
    .about-grid { gap: 80px; }
}

@media (min-width: 1920px) {
    .container { max-width: 1600px; }
    .h-inner { max-width: 1600px; }
}

/* === 8. PRINT STYLES === */
@media print {
    /* Hide non-essential elements */
    header, footer, nav, 
    .h-bar, .h-inner, .h-nav, .h-burger,
    .sidebar, .sidebar-toggle,
    .btn, .btn-primary, .btn-secondary, .btn-back, .btn-print,
    .modal-overlay, .toast,
    .filter-bar,
    .formula-trigger, .formula-panel, .formula-overlay {
        display: none !important;
    }
    
    /* Reset backgrounds and colors for print */
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    main {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Card styles for print */
    .section-card, .profile-card, .table-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 20px !important;
        padding: 15px !important;
        background: #fff !important;
    }
    
    /* Table styles for print */
    .data-table {
        width: 100% !important;
        font-size: 10pt;
    }
    .data-table th,
    .data-table td {
        padding: 8px 10px !important;
        border: 1px solid #ddd !important;
        color: #000 !important;
        background: #fff !important;
    }
    .data-table th {
        background: #f5f5f5 !important;
        font-weight: bold;
    }
    
    /* Links */
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
        color: #000 !important;
    }
    
    /* Show print-only elements */
    .print-only {
        display: block !important;
    }
    
    /* Hide actions column */
    .actions-cell {
        display: none !important;
    }
}