﻿/* ============================================================
   RADIOLOGIA ŚRÓDOPERACYJNA - Style CSS
   Paleta: Steel Blue / Navy / Silver-Grey
   Główne: #0d1b2a (bardzo ciemna granat), #1b3a5c (głęboki niebieski)
   Akcent: #4fc3f7 (jasny błękit), #b0bec5 (srebrny)
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --primary: #1b3a5c;
    --primary-dark: #0d1b2a;
    --secondary: #4fc3f7;
    --accent: #b3e5fc;
    --bg: #f5f7fa;
    --bg2: #edf2f7;
    --card-bg: #ffffff;
    --text: #1a2332;
    --text-muted: #4a5568;
    --border: #d1dce8;
    --shadow: rgba(13, 27, 42, 0.12);
    --shadow-hover: rgba(13, 27, 42, 0.22);
    --gradient-primary: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 50%, #2d5986 100%);
    --gradient-hero: linear-gradient(135deg, #0a1520 0%, #0d1b2a 40%, #1a2e47 100%);
    --hero-text: #ffffff;
    --nav-bg: rgba(13, 27, 42, 0.97);
    --nav-text: #e8f4fd;
    --nav-hover: #4fc3f7;
    --footer-bg: #050d17;
}

[data-theme="dark"] {
    --bg: #080f18;
    --bg2: #0d1b2a;
    --card-bg: #111f2e;
    --text: #e8f4fd;
    --text-muted: #90b4cc;
    --border: #1e3a55;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(0, 0, 0, 0.6);
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; transition: background 0.3s, color 0.3s; }
img { max-width: 100%; height: auto; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 20px; }
li { margin-bottom: 4px; }

/* ---- Nav ---- */
.rs-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(79, 195, 247, 0.15);
    transition: all 0.3s;
}
.rs-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
    padding: 0 20px; height: 60px;
}
.nav-logo {
    font-weight: 700; font-size: 1.1rem; color: var(--secondary) !important;
    white-space: nowrap; text-decoration: none !important; display: flex; align-items: center; gap: 8px;
}
.nav-links { list-style: none; display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; padding: 0; flex: 1; }
.nav-links li a {
    display: block; padding: 6px 10px; border-radius: 6px; font-size: 0.78rem;
    color: var(--nav-text); white-space: nowrap; transition: all 0.2s; text-decoration: none;
}
.nav-links li a:hover, .nav-links li a.active {
    background: rgba(79, 195, 247, 0.15); color: var(--secondary);
}
.nav-back {
    white-space: nowrap; font-size: 0.78rem; padding: 6px 12px; border-radius: 20px;
    border: 1px solid rgba(79, 195, 247, 0.35); color: var(--secondary) !important;
    text-decoration: none !important; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.nav-back:hover { background: rgba(79, 195, 247, 0.15); }
.hamburger { display: none; background: none; border: none; color: var(--nav-text); font-size: 1.3rem; cursor: pointer; padding: 4px; }
@media(max-width: 900px) {
    .hamburger { display: block; }
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--nav-bg); flex-direction: column; padding: 12px; gap: 4px; }
    .nav-links.open { display: flex; }
    .nav-links li a { font-size: 0.9rem; }
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-hero); position: relative; overflow: hidden; padding: 80px 20px 40px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(79,195,247,0.03) 80px, rgba(79,195,247,0.03) 81px),
                repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(79,195,247,0.03) 80px, rgba(79,195,247,0.03) 81px);
}
.hero-content { max-width: 900px; text-align: center; position: relative; z-index: 1; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; color: #fff; margin-bottom: 24px; line-height: 1.2; }
.hero-content h1 span { color: var(--secondary); }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn-hero {
    padding: 14px 32px; border-radius: 50px; font-size: 1rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s;
    text-decoration: none !important;
}
.btn-hero.primary { background: var(--secondary); color: #0d1b2a; }
.btn-hero.primary:hover { background: #81d4fa; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,195,247,0.4); }
.btn-hero.secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-hero.secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 900; color: var(--secondary); line-height: 1; }
.hero-stat .label { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ---- Page Header variants ---- */
.page-header { padding: 100px 20px 48px; text-align: center; }
.page-header .header-content { max-width: 800px; margin: 0 auto; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 16px; }
.page-header .lead { font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.7; }
.steel-blue { background: linear-gradient(135deg, #0d1b2a, #1b3a5c, #2d5986); }
.navy-dark { background: linear-gradient(135deg, #050d17, #0d1b2a, #1b3a5c); }
.silver-blue { background: linear-gradient(135deg, #1b2a3c, #2d4a6e, #3d6896); }
.deep-steel { background: linear-gradient(135deg, #0a1520, #0d1b2a, #1a2e47); }

/* ---- Breadcrumb ---- */
.breadcrumb { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .fa-chevron-right { font-size: 0.65rem; color: var(--text-muted); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.section-block { padding: 64px 0; }
.section-block.alt { background: var(--bg2); }
.section-block.gradient { background: var(--gradient-primary); }
.section-block.gradient .section-title,
.section-block.gradient .section-subtitle,
.section-block.gradient h3,
.section-block.gradient p,
.section-block.gradient li { color: rgba(255,255,255,0.9); }
.section-block.gradient a { color: var(--secondary); }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.section-title.center { text-align: center; }
.section-subtitle { color: var(--text-muted); margin-bottom: 40px; }
.section-subtitle.center { text-align: center; }

/* ---- Cards ---- */
.card-grid { display: grid; gap: 24px; margin-top: 32px; }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    background: var(--card-bg); border-radius: 16px; padding: 28px;
    border: 1px solid var(--border); transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--shadow-hover); }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; font-size: 1.4rem; color: #fff;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.card p, .card li { font-size: 0.9rem; color: var(--text-muted); }
.card ul { margin-top: 8px; }

/* ---- Landing Card ---- */
.landing-card {
    display: flex; flex-direction: column;
    background: var(--card-bg); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border); transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow); text-decoration: none !important;
}
.landing-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px var(--shadow-hover); }
.card-banner { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: rgba(255,255,255,0.9); }
.card-body { padding: 20px; flex: 1; }
.card-body h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.card-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.card-footer {
    padding: 12px 20px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem; font-weight: 500; color: var(--secondary);
}

/* ---- Detail Row ---- */
.detail-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
@media(max-width: 768px) { .detail-row { grid-template-columns: 1fr; } }
.detail-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.detail-text p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.detail-box {
    background: var(--card-bg); border-radius: 16px; padding: 24px;
    border: 1px solid var(--border); box-shadow: 0 2px 8px var(--shadow);
}
.detail-box h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.detail-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.detail-box ul { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Info Box ---- */
.info-box {
    background: var(--card-bg); border-radius: 16px; padding: 28px;
    border-left: 4px solid var(--secondary); box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 32px;
}
.info-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.info-box p { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Warning Box ---- */
.warning-box {
    background: rgba(255, 87, 34, 0.07); border-radius: 16px; padding: 24px;
    border-left: 4px solid #ff5722; margin-bottom: 24px;
}
.warning-box h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #e64a19; }
.warning-box p, .warning-box li { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--secondary), rgba(79,195,247,0.2)); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: -40px; top: 4px;
    background: var(--secondary); color: #0d1b2a;
    font-size: 0.7rem; font-weight: 700; border-radius: 20px;
    padding: 3px 8px; white-space: nowrap; min-width: 52px; text-align: center;
    box-shadow: 0 2px 8px rgba(79,195,247,0.4);
}
.timeline-content { background: var(--card-bg); border-radius: 12px; padding: 20px; border: 1px solid var(--border); box-shadow: 0 2px 6px var(--shadow); }
.timeline-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.timeline-content p { font-size: 0.88rem; color: var(--text-muted); }

/* ---- OR Box (intraoperative ASCII diagram) ---- */
.or-box {
    background: #020810;
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    overflow-x: auto;
}
.or-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4fc3f7;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.or-desc {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.82rem;
    color: #b0d8f0;
    line-height: 1.65;
    white-space: pre;
}
.or-hot { color: #ff5722; font-weight: 700; }
.or-safe { color: #66bb6a; font-weight: 700; }
.or-warn { color: #ffa726; font-weight: 700; }
.or-marker { color: #4fc3f7; font-weight: 700; }

/* ---- Data Table ---- */
.data-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px var(--shadow); font-size: 0.88rem; }
.data-table thead tr { background: linear-gradient(135deg, #0d1b2a, #1b3a5c); }
.data-table thead th { padding: 12px 14px; text-align: left; color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.82rem; }
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(79, 195, 247, 0.06); }
.data-table td { padding: 10px 14px; color: var(--text-muted); vertical-align: top; }
.data-table td.highlight { font-weight: 600; color: var(--text); }

/* ---- Page Nav ---- */
.page-nav {
    display: flex; gap: 16px; justify-content: space-between;
    margin: 40px 0; flex-wrap: wrap;
}
.page-nav a {
    display: flex; align-items: center; gap: 12px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 20px; flex: 1; min-width: 200px;
    transition: all 0.25s; text-decoration: none !important; color: var(--text) !important;
}
.page-nav a:hover { border-color: var(--secondary); box-shadow: 0 4px 16px var(--shadow-hover); }
.page-nav a.next { flex-direction: row-reverse; text-align: right; }
.page-nav a .label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.page-nav a .title { font-size: 0.95rem; font-weight: 700; }

/* ---- Footer ---- */
.rs-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.7);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(79, 195, 247, 0.15);
}
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; transition: color 0.2s; text-decoration: none !important; }
.footer-links a:hover { color: var(--secondary); }

/* ---- Badges (mode/tech labels) ---- */
.rs-badge {
    display: inline-block; padding: 2px 8px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700; margin: 2px;
}
.badge-oarm { background: rgba(79, 195, 247, 0.2); color: #4fc3f7; border: 1px solid rgba(79,195,247,0.4); }
.badge-nav { background: rgba(102, 187, 106, 0.2); color: #66bb6a; border: 1px solid rgba(102,187,106,0.4); }
.badge-fluoro { background: rgba(255, 167, 38, 0.2); color: #ffa726; border: 1px solid rgba(255,167,38,0.4); }
.badge-ct { background: rgba(171, 71, 188, 0.2); color: #ab47bc; border: 1px solid rgba(171,71,188,0.4); }
.badge-us { background: rgba(38, 198, 218, 0.2); color: #26c6da; border: 1px solid rgba(38,198,218,0.4); }
.badge-ionm { background: rgba(255, 87, 34, 0.2); color: #ff5722; border: 1px solid rgba(255,87,34,0.4); }

/* ---- Dose bars ---- */
.dose-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.dose-item { display: flex; align-items: center; gap: 12px; }
.dose-name { width: 220px; font-size: 0.82rem; color: var(--text-muted); flex-shrink: 0; }
.dose-bar-wrap { flex: 1; background: var(--border); border-radius: 4px; height: 18px; overflow: hidden; }
.dose-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1b3a5c, #4fc3f7); transition: width 0.6s; }
.dose-val { width: 70px; font-size: 0.82rem; font-weight: 700; color: var(--text); text-align: right; flex-shrink: 0; }

/* ---- Responsive tweaks ---- */
@media(max-width: 640px) {
    .section-block { padding: 40px 0; }
    .card-grid { gap: 16px; }
    .page-nav { flex-direction: column; }
    .page-nav a { min-width: unset; }
    .data-table { font-size: 0.78rem; }
    .data-table th, .data-table td { padding: 8px 10px; }
    .timeline { padding-left: 30px; }
    .timeline-dot { left: -30px; font-size: 0.65rem; }
}
