/* =====================================================
   HIZ RAPORU — speed-report.css
   ===================================================== */

/* ── HERO STAGE ──────────────────────────────────── */
.sr-hero-stage {
    position: relative;
    min-height: 560px;
    border-radius: 30px;
    background: linear-gradient(145deg, #100d1e 0%, #1a1035 50%, #0d1a2b 100%);
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(12, 20, 56, 0.22);
}

.sr-stage-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(52px);
    animation: srPulseGlow 7s ease-in-out infinite;
}

.sr-glow-a {
    width: 220px; height: 220px;
    top: 10px; right: 20px;
    background: rgba(99, 102, 241, 0.22);
}

.sr-glow-b {
    width: 160px; height: 160px;
    bottom: 30px; left: 40px;
    background: rgba(239, 68, 68, 0.16);
    animation-delay: -3.2s;
}

/* ── DASH WINDOW ─────────────────────────────────── */
.sr-dash-window {
    position: absolute;
    top: 22px; left: 22px; right: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 16px 18px;
    z-index: 2;
    animation: srFloatSoft 6s ease-in-out infinite;
}

.sr-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sr-dash-label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 2px;
}

.sr-dash-header > div > strong { color: #fff; font-size: .9rem; font-weight: 700; }

.sr-dash-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(99,102,241,0.18);
    border: 1px solid rgba(99,102,241,0.25);
    color: #a5b4fc;
    font-size: .72rem;
    font-weight: 600;
}

/* ── SPEEDOMETER ─────────────────────────────────── */
.sr-speedo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.sr-speedo-svg { width: 220px; height: 130px; }

.sr-needle {
    transform-origin: 110px 118px;
    transform: rotate(-90deg);
}

.sr-speedo-center {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}

.sr-speedo-center strong { display: block; font-size: 1.8rem; font-weight: 800; color: #ef4444; line-height: 1; }
.sr-speedo-center span   { display: block; font-size: .72rem; color: rgba(255,255,255,0.50); }
.sr-speedo-center small  { display: block; font-size: .65rem; color: rgba(255,255,255,0.35); margin-top: 2px; font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ── EVENT PILLS ─────────────────────────────────── */
.sr-event-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.sr-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: .28rem .65rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
}

.sr-pill-red    { background: rgba(239,68,68,0.18);   border: 1px solid rgba(239,68,68,0.25);   color: #fca5a5; }
.sr-pill-orange { background: rgba(249,115,22,0.18);  border: 1px solid rgba(249,115,22,0.25);  color: #fdba74; }
.sr-pill-amber  { background: rgba(245,158,11,0.18);  border: 1px solid rgba(245,158,11,0.25);  color: #fcd34d; }
.sr-pill-blue   { background: rgba(59,130,246,0.18);  border: 1px solid rgba(59,130,246,0.25);  color: #93c5fd; }

/* ── LOG LIST ────────────────────────────────────── */
.sr-log-list { display: flex; flex-direction: column; gap: 4px; }

.sr-log-row {
    display: grid;
    grid-template-columns: 88px 1fr 70px 1fr;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: .73rem;
    transition: background .3s ease, box-shadow .3s ease;
}

.sr-lr-ok     { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.12); }
.sr-lr-warn   { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.15); }
.sr-lr-danger { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.18); }
.sr-log-active { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.20); }

.sr-log-plate { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .72rem; font-weight: 700; color: #fff; }
.sr-log-event { font-size: .7rem; color: rgba(255,255,255,0.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-log-road  { font-size: .68rem; color: rgba(255,255,255,0.40); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sr-log-speed { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: .78rem; text-align: center; }
.sr-spd-normal { color: #93c5fd; }
.sr-spd-warn   { color: #fcd34d; }
.sr-spd-danger { color: #f87171; }

/* ── FLOATING CARDS ──────────────────────────────── */
.sr-float-card {
    position: absolute;
    width: 185px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.11);
    backdrop-filter: blur(10px);
    color: #fff;
    z-index: 10;
}

.sr-float-card span  { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,0.50); margin-bottom: 3px; }
.sr-float-card strong { display: block; font-size: 1.2rem; font-weight: 800; margin-bottom: 2px; }
.sr-float-card p     { margin: 0; font-size: .72rem; color: rgba(255,255,255,0.55); }

.sr-float-a { bottom: 18px; left: 18px; animation: srFloatCardA 7s ease-in-out infinite; }
.sr-float-b { bottom: 18px; right: 18px; animation: srFloatCardB 6.5s ease-in-out infinite; }

/* ── SHARED CARD ─────────────────────────────────── */
.sr-card {
    background: #fff;
    border: 1px solid rgba(13,34,56,0.08);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 32px rgba(12,34,56,0.05);
}

.sr-card-sub {
    font-size: .86rem;
    color: #6a7a88;
    margin-bottom: 16px;
    line-height: 1.65;
}

/* ── VEHICLES SECTION ────────────────────────────── */
.sr-vehicles-section { padding-top: 20px; padding-bottom: 20px; }

/* ── VEHICLE LIST ────────────────────────────────── */
.sr-vehicle-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.sr-veh-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px 70px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fbfe;
    border: 1px solid #eef3f8;
    animation: srFadeUp .5s ease both;
    transition: background .2s ease;
}

.sr-veh-row:hover { background: #f0f7ff; }

.sr-veh-plate {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .76rem; font-weight: 700; color: #0d2238;
    background: #f0f5fa; padding: .22rem .55rem; border-radius: 8px;
    white-space: nowrap;
}

.sr-veh-bar-wrap { flex: 1; }
.sr-veh-track { height: 8px; border-radius: 999px; background: #eef3f8; overflow: hidden; }
.sr-veh-fill { height: 100%; border-radius: 999px; width: var(--w); animation: srBarGrow .9s ease both; }

.sr-vf-red    { background: linear-gradient(90deg, #ef4444, #f87171); }
.sr-vf-orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.sr-vf-amber  { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.sr-vf-blue   { background: linear-gradient(90deg, #0d6efd, #56a0ff); }
.sr-vf-green  { background: linear-gradient(90deg, #10b981, #6ee7b7); }

.sr-veh-info { text-align: right; }
.sr-veh-max { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: .88rem; }
.sr-veh-info small { display: block; font-size: .68rem; color: #6a7a88; }

.sr-max-red    { color: #b91c1c; }
.sr-max-orange { color: #c2410c; }
.sr-max-amber  { color: #d97706; }
.sr-max-blue   { color: #0d6efd; }
.sr-max-green  { color: #059669; }

.sr-veh-badge {
    font-size: .66rem; font-weight: 700;
    padding: .22rem .55rem; border-radius: 999px;
    white-space: nowrap;
}

.sr-vb-red    { background: rgba(239,68,68,0.10);  color: #dc2626; }
.sr-vb-orange { background: rgba(249,115,22,0.10); color: #ea580c; }
.sr-vb-amber  { background: rgba(245,158,11,0.10); color: #d97706; }
.sr-vb-blue   { background: rgba(13,110,253,0.10); color: #0d6efd; }
.sr-vb-green  { background: rgba(16,185,129,0.10); color: #059669; }

/* ── EVENT LIST ──────────────────────────────────── */
.sr-event-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.sr-ev-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fbfe;
    border-radius: 12px;
    padding: 10px 12px;
    animation: srFadeUp .5s ease both;
    transition: background .2s ease;
}

.sr-ev-item:hover { background: #f0f7ff; }

.sr-ev-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .88rem; flex-shrink: 0;
}

.sr-evi-red    { background: rgba(239,68,68,0.10);  color: #ef4444; }
.sr-evi-orange { background: rgba(249,115,22,0.10); color: #f97316; }
.sr-evi-amber  { background: rgba(245,158,11,0.10); color: #f59e0b; }
.sr-evi-purple { background: rgba(139,92,246,0.10); color: #8b5cf6; }
.sr-evi-green  { background: rgba(16,185,129,0.10); color: #10b981; }
.sr-evi-blue   { background: rgba(13,110,253,0.10); color: #0d6efd; }

.sr-ev-body strong { display: block; font-size: .82rem; font-weight: 700; color: #0d2238; margin-bottom: 2px; }
.sr-ev-body span   { font-size: .74rem; color: #6a7a88; line-height: 1.5; }

/* ── ROAD BARS ───────────────────────────────────── */
.sr-road-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.sr-road-row { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 8px; }

.sr-road-lbl { font-size: .76rem; font-weight: 600; color: #29455d; }

.sr-road-track { height: 22px; border-radius: 999px; background: #eef3f8; overflow: hidden; }

.sr-road-fill {
    height: 100%; border-radius: 999px; width: var(--w);
    display: flex; align-items: center; padding-left: 8px;
    font-size: .68rem; color: #fff; font-weight: 600;
    animation: srBarGrow .9s ease both; min-width: 28px;
}

.sr-rf-blue  { background: linear-gradient(90deg, #0d6efd, #56a0ff); }
.sr-rf-teal  { background: linear-gradient(90deg, #06b6d4, #67e8f9); }
.sr-rf-amber { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.sr-rf-gray  { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.sr-rf-red   { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ── TABLE SECTION ───────────────────────────────── */
.sr-table-section { padding-top: 20px; padding-bottom: 20px; }

.sr-sample-table { display: flex; flex-direction: column; gap: 5px; }

.sr-st-head {
    display: grid;
    grid-template-columns: 100px 1.4fr .8fr 1.2fr .8fr;
    gap: 10px; padding: 0 12px 5px;
    font-size: .7rem; text-transform: uppercase;
    letter-spacing: .05em; color: #6a7a88;
}

.sr-st-row {
    display: grid;
    grid-template-columns: 100px 1.4fr .8fr 1.2fr .8fr;
    gap: 10px; align-items: center;
    padding: 9px 12px; border-radius: 12px;
    font-size: .82rem;
    animation: srFadeUp .5s ease both;
    transition: background .2s ease;
}
.sr-st-row:hover { filter: brightness(1.02); }

.sr-str-normal { background: #f8fbfe; border: 1px solid #eef3f8; }
.sr-str-warn   { background: rgba(245,158,11,0.05); border: 1px solid rgba(245,158,11,0.12); }
.sr-str-danger { background: rgba(239,68,68,0.05);  border: 1px solid rgba(239,68,68,0.12); }
.sr-str-city   { background: rgba(139,92,246,0.05); border: 1px solid rgba(139,92,246,0.10); }
.sr-str-purple { background: rgba(168,85,247,0.05); border: 1px solid rgba(168,85,247,0.10); }

.sr-plate-tag {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .74rem; font-weight: 700; color: #0d2238;
    background: #f0f5fa; padding: .2rem .5rem; border-radius: 8px;
    white-space: nowrap;
}

.sr-st-event { display: flex; align-items: center; gap: 5px; font-size: .78rem; }
.sr-ev-warn   { color: #d97706; }
.sr-ev-danger { color: #dc2626; }
.sr-ev-ok     { color: #059669; }
.sr-ev-city   { color: #7c3aed; }
.sr-ev-purple { color: #9333ea; }

.sr-st-spd { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: .82rem; }

.sr-st-road { font-size: .76rem; color: #29455d; }
.sr-st-road em { font-style: normal; font-size: .68rem; color: #94a3b8; display: block; }

.sr-st-dist { font-size: .76rem; color: #6a7a88; }

/* ── METRIC CARDS ────────────────────────────────── */
.sr-metric-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 16px; border: 1px solid transparent;
}
.sr-metric-card i      { font-size: 1.3rem; flex-shrink: 0; }
.sr-metric-card strong { display: block; font-size: .95rem; font-weight: 800; color: #0d2238; margin-bottom: 2px; }
.sr-metric-card span   { display: block; font-size: .76rem; color: #29455d; }
.sr-metric-card small  { display: block; font-size: .68rem; color: #6a7a88; margin-top: 2px; }

.sr-mc-red    { background: rgba(239,68,68,0.06);  border-color: rgba(239,68,68,0.14); }
.sr-mc-red i  { color: #ef4444; }
.sr-mc-orange { background: rgba(249,115,22,0.06); border-color: rgba(249,115,22,0.12); }
.sr-mc-orange i { color: #f97316; }
.sr-mc-amber  { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.12); }
.sr-mc-amber i { color: #f59e0b; }
.sr-mc-blue   { background: rgba(13,110,253,0.05); border-color: rgba(13,110,253,0.10); }
.sr-mc-blue i { color: #0d6efd; }

/* ── FEATURES SECTION ────────────────────────────── */
.sr-features-section { padding-top: 20px; padding-bottom: 20px; }

.sr-feat-card { transition: transform .28s ease, box-shadow .28s ease; animation: srFadeUp .5s ease both; }
.sr-feat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(12,34,56,0.09); }

/* ── KEYFRAMES ───────────────────────────────────── */
@keyframes srPulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: .80; }
}
@keyframes srFloatSoft {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}
@keyframes srFloatCardA {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}
@keyframes srFloatCardB {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}
@keyframes srFadeUp {
    0%   { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes srBarGrow {
    0%   { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 991.98px) {
    .sr-hero-stage { min-height: 480px; }
    .sr-dash-window { top: 16px; left: 16px; right: 16px; }
    .sr-float-a, .sr-float-b { display: none; }
    .sr-veh-row { grid-template-columns: 90px 1fr 80px; }
    .sr-veh-badge { display: none; }
    .sr-st-head, .sr-st-row { grid-template-columns: 90px 1.2fr .7fr 1fr; }
    .sr-st-dist { display: none; }
}

@media (max-width: 767.98px) {
    .sr-speedo-svg { width: 180px; height: 106px; }
    .sr-event-pills { gap: 4px; }
    .sr-log-row { grid-template-columns: 80px 1fr 60px; }
    .sr-log-road { display: none; }
    .sr-veh-row { grid-template-columns: 85px 1fr 70px; }
    .sr-st-head, .sr-st-row { grid-template-columns: 85px 1fr 65px; }
    .sr-st-road { display: none; }
}
