﻿/* ===================================================
   EEG - Elektroencefalografia Oczami Elektroradiologa
   Paleta: Głęboki fiolet / Lawendowy
   =================================================== */

:root {
    --primary: #4a148c;
    --primary-light: #7b1fa2;
    --primary-dark: #2d0062;
    --secondary: #6a1b9a;
    --secondary-light: #ab47bc;
    --accent: #00897b;
    --accent-light: #26a69a;
    --error: #b71c1c;
    --bg: #f7f3ff;
    --surface: #ffffff;
    --text: #1a0a2e;
    --text-light: #5e4b8e;
    --shadow: 0 2px 12px rgba(74,20,140,0.1);
    --shadow-lg: 0 8px 32px rgba(74,20,140,0.18);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}
[data-theme="dark"] {
    --bg: #1a0a2e;
    --surface: #25123d;
    --text: #e0d4f5;
    --text-light: #9e80c5;
    --shadow: 0 2px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: 'Roboto', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }

.eeg-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(45,0,98,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    padding: 0 20px; transition: var(--transition);
}
.eeg-nav.scrolled { background: rgba(45,0,98,0.99); }
.nav-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.nav-logo i { font-size: 1.4rem; color: #ce93d8; }
.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; flex-wrap: nowrap; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: 0.82rem; font-weight: 500; transition: var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.15); color: white; }
.nav-links a.active { background: rgba(255,255,255,0.2); border-bottom: 2px solid #ce93d8; }
.nav-back { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; transition: var(--transition); white-space: nowrap; }
.nav-back:hover { background: rgba(255,255,255,0.1); color: white; }
.hamburger { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 8px; }

.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2d0062 0%, #4a148c 45%, #6a1b9a 100%);
    position: relative; overflow: hidden; text-align: center; padding: 100px 20px 60px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 850px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; color: white; margin-bottom: 20px; line-height: 1.2; }
.hero h1 span { color: #ce93d8; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero { padding: 14px 32px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-hero.primary { background: white; color: var(--primary-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.btn-hero.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.3); }
.btn-hero.secondary { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-hero.secondary:hover { border-color: white; background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 900; color: #ce93d8; }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.page-header { padding: 120px 20px 60px; text-align: center; position: relative; overflow: hidden; }
.page-header.purple { background: linear-gradient(135deg, #2d0062 0%, #4a148c 50%, #7b1fa2 100%); color: white; }
.page-header.violet { background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #ab47bc 100%); color: white; }
.page-header.teal { background: linear-gradient(135deg, #004d40 0%, #00695c 50%, #00897b 100%); color: white; }
.page-header.indigo { background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%); color: white; }
.page-header::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-header .header-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 16px; }
.page-header h1 i { margin-right: 12px; opacity: 0.8; }
.page-header .lead { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.85; max-width: 600px; margin: 0 auto; }

.breadcrumb { background: var(--surface); padding: 12px 20px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-light); }
.breadcrumb i { font-size: 0.7rem; color: var(--text-light); }

.section-block { padding: 80px 20px; }
.section-block.alt { background: var(--surface); }
.section-block.gradient { background: linear-gradient(135deg, #ede7f6 0%, #f7f3ff 50%, #e0f2f1 100%); }
[data-theme="dark"] .section-block.gradient { background: linear-gradient(135deg, #1a0a2e 0%, #2d0062 30%, #0d2a27 100%); }
.section-block.dark-gradient { background: linear-gradient(135deg, #2d0062 0%, #4a148c 50%, #00897b 100%); color: white; }
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 900px; margin: 0 auto; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.section-title.center { text-align: center; }
.section-title i { margin-right: 10px; color: var(--primary); }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; margin-bottom: 40px; max-width: 600px; }
.section-subtitle.center { text-align: center; margin-left: auto; margin-right: auto; }
.dark-gradient .section-title i { color: #ce93d8; }
.dark-gradient .section-subtitle { color: rgba(255,255,255,0.7); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; transition: var(--transition); border: 1px solid rgba(74,20,140,0.08); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; color: white; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.card ul { color: var(--text-light); font-size: 0.95rem; padding-left: 20px; margin-top: 8px; }
.card ul li { margin-bottom: 4px; }

.landing-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); border: 1px solid rgba(74,20,140,0.08); text-decoration: none; color: inherit; display: block; }
.landing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.landing-card .card-banner { height: 140px; display: flex; align-items: center; justify-content: center; color: white; font-size: 2.5rem; }
.landing-card .card-body { padding: 24px; }
.landing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.landing-card p { color: var(--text-light); font-size: 0.92rem; }
.landing-card .card-footer { padding: 12px 24px; border-top: 1px solid rgba(74,20,140,0.07); display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.landing-card.card-purple .card-banner { background: linear-gradient(135deg, #2d0062, #4a148c); }
.landing-card.card-violet .card-banner { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.landing-card.card-lilac .card-banner { background: linear-gradient(135deg, #7b1fa2, #ab47bc); }
.landing-card.card-indigo .card-banner { background: linear-gradient(135deg, #1a237e, #3949ab); }
.landing-card.card-teal .card-banner { background: linear-gradient(135deg, #004d40, #00897b); }
.landing-card.card-slate .card-banner { background: linear-gradient(135deg, #37474f, #607d8b); }
.landing-card.card-amber .card-banner { background: linear-gradient(135deg, #e65100, #f57c00); }
.landing-card.card-red .card-banner { background: linear-gradient(135deg, #b71c1c, #d32f2f); }
.landing-card.card-green .card-banner { background: linear-gradient(135deg, #1b5e20, #388e3c); }
.landing-card.card-cyan .card-banner { background: linear-gradient(135deg, #006064, #00838f); }

.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.fact-card {
    background: var(--surface);
    border: 1px solid rgba(74,20,140,0.1);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.fact-card .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.fact-card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.fact-card p,
.fact-card li {
    color: var(--text-light);
    font-size: 0.95rem;
}

.fact-card ul {
    padding-left: 18px;
    margin-top: 8px;
}

.fact-card li + li {
    margin-top: 6px;
}

.pill-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-list {
    display: grid;
    gap: 18px;
}

.info-list .item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-list .item i {
    color: var(--primary);
    margin-top: 4px;
}

.info-list .item strong {
    display: block;
    margin-bottom: 4px;
}

.note-box {
    background: rgba(74,20,140,0.06);
    border: 1px solid rgba(74,20,140,0.12);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-top: 24px;
}

.note-box.teal {
    background: rgba(0,137,123,0.08);
    border-color: rgba(0,137,123,0.16);
    border-left-color: var(--accent);
}

.note-box.red {
    background: rgba(183,28,28,0.08);
    border-color: rgba(183,28,28,0.14);
    border-left-color: var(--error);
}

.note-box h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.note-box p,
.note-box li {
    color: var(--text-light);
}

.faq-grid {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(74,20,140,0.08);
}

.faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.faq-item h3 i {
    color: var(--primary);
}

.faq-item p {
    color: var(--text-light);
}

.section-block.dark-gradient .fact-card,
.section-block.dark-gradient .faq-item {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.16);
}

.section-block.dark-gradient .fact-card .eyebrow,
.section-block.dark-gradient .faq-item h3 i {
    color: #ce93d8;
}

.section-block.dark-gradient .fact-card p,
.section-block.dark-gradient .fact-card li,
.section-block.dark-gradient .faq-item p {
    color: rgba(255,255,255,0.82);
}

[data-theme="dark"] .breadcrumb {
    background: #211038;
    border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .data-table td {
    border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .data-table tr:hover td {
    background: rgba(206,147,216,0.08);
}

[data-theme="dark"] .note-box {
    background: rgba(206,147,216,0.08);
    border-color: rgba(206,147,216,0.16);
}

[data-theme="dark"] .note-box.teal {
    background: rgba(38,166,154,0.1);
    border-color: rgba(38,166,154,0.18);
}

[data-theme="dark"] .note-box.red {
    background: rgba(239,154,154,0.08);
    border-color: rgba(239,154,154,0.14);
}

/* EEG wave visualization */
.wave-box { background: #1a0a2e; border-radius: var(--radius-lg); padding: 28px; margin: 20px 0; border: 1px solid rgba(206,147,216,0.2); }
.wave-label { font-size: 0.75rem; color: #ce93d8; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.wave-trace { font-family: 'Courier New', monospace; font-size: 0.8rem; color: #ce93d8; line-height: 1.6; overflow-x: auto; }
.wave-trace.alpha { color: #80cbc4; }
.wave-trace.beta { color: #fff176; }
.wave-trace.theta { color: #ef9a9a; }
.wave-trace.delta { color: #90caf9; }
.wave-trace.gamma { color: #f48fb1; }

.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--primary), var(--secondary-light)); transform: translateX(-50%); }
.timeline-item { display: flex; align-items: flex-start; margin-bottom: 40px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; box-shadow: 0 0 0 4px var(--bg); }
.timeline-content { width: 42%; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.timeline-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.timeline-content p { font-size: 0.92rem; color: var(--text-light); }

.info-box { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.info-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.info-box p { color: var(--text-light); margin-bottom: 16px; }
.info-box .block { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(0,0,0,0.08); }
.info-box .block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 60px; }
.detail-row.reverse { direction: rtl; }
.detail-row.reverse > * { direction: ltr; }
.detail-text h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.detail-text p { color: var(--text-light); margin-bottom: 12px; }
.detail-box { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.detail-box.teal { border-left-color: var(--accent); }
.detail-box.red { border-left-color: var(--error); }

.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--primary); color: white; padding: 14px 16px; font-weight: 600; font-size: 0.9rem; text-align: left; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.9rem; color: var(--text); }
.data-table tr:hover td { background: rgba(74,20,140,0.04); }
.data-table .highlight { font-weight: 700; color: var(--primary); }

.stats-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 40px 0; }
.stat-box { text-align: center; padding: 24px 32px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 160px; }
.stat-box .num { font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-box .label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

.cta-banner { background: linear-gradient(135deg, var(--primary-dark), var(--secondary-light)); color: white; border-radius: var(--radius-lg); padding: 40px; text-align: center; margin-top: 40px; }
.cta-banner h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { opacity: 0.85; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; background: white; color: var(--primary-dark); font-weight: 700; text-decoration: none; transition: var(--transition); }
.cta-banner .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

.page-nav { display: flex; justify-content: space-between; gap: 20px; padding: 40px 0; margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.08); }
.page-nav a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 16px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); max-width: 45%; }
.page-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }
.page-nav .label { font-size: 0.8rem; color: var(--text-light); }
.page-nav .title { font-weight: 700; font-size: 0.95rem; }
.page-nav .next { margin-left: auto; text-align: right; }

.eeg-footer { background: #1a0a2e; color: rgba(255,255,255,0.7); text-align: center; padding: 40px 20px; }
.eeg-footer a { color: #ce93d8; text-decoration: none; }
.eeg-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

.step-num { width: 40px; height: 40px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }

@media (max-width: 900px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(45,0,98,0.99); padding: 16px; gap: 4px; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; }
    .hamburger { display: block; }
    .nav-back { display: none; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; padding-left: 60px; }
    .timeline-dot { left: 20px; transform: translateX(-50%); }
    .timeline-content { width: 100%; }
    .card-grid.cols-2 { grid-template-columns: 1fr; }
    .detail-row, .detail-row.reverse { grid-template-columns: 1fr; }
    .page-nav { flex-direction: column; }
    .page-nav a { max-width: 100%; }
    .hero-stats { gap: 24px; }
}
@media (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; }
    .card-grid.cols-3 { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; align-items: center; }
    .page-header { padding: 100px 16px 40px; }
    .section-block { padding: 50px 16px; }
    .quick-facts { grid-template-columns: 1fr; }
}
