/* =====================================================
   HIZ İHLAL RAPORU — speed-violation.css
   ===================================================== */

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

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

.sv-glow-a {
    width: 240px; height: 240px;
    top: 10px; right: 20px;
    background: rgba(239, 68, 68, 0.22);
}

.sv-glow-b {
    width: 160px; height: 160px;
    bottom: 30px; left: 40px;
    background: rgba(245, 158, 11, 0.16);
    animation-delay: -3.2s;
}

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

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

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

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

.sv-dash-stats { display: flex; gap: 8px; }

.sv-ds-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.sv-ds-red {
    background: rgba(239,68,68,0.18);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
}

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

.sv-speedo-svg {
    width: 200px;
    height: 120px;
}

.sv-needle {
    transform-origin: 100px 110px;
    animation: svNeedle 1.4s .3s ease forwards;
    transform: rotate(-90deg);
}

.sv-speedo-val {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.sv-speedo-val strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ef4444;
    line-height: 1;
}

.sv-speedo-val span {
    font-size: .68rem;
    color: rgba(255,255,255,0.50);
}

/* ── SEVERITY MINI BARS ──────────────────────────── */
.sv-severity-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.sv-sev-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 48px;
}

.sv-sev-bar {
    width: 28px;
    height: var(--h);
    max-height: 60px;
    border-radius: 8px 8px 4px 4px;
    animation: svBarUp .9s ease both;
    min-height: 8px;
}

.sv-sev-green { background: linear-gradient(180deg, #4ade80, #86efac); }
.sv-sev-amber { background: linear-gradient(180deg, #f59e0b, #fcd34d); }
.sv-sev-red   { background: linear-gradient(180deg, #ef4444, #f87171); }

.sv-sev-lbl {
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sv-lbl-green { color: #4ade80; }
.sv-lbl-amber { color: #f59e0b; }
.sv-lbl-red   { color: #f87171; }

.sv-sev-item strong {
    font-size: .78rem;
    font-weight: 800;
    color: #fff;
}

/* ── LIVE LIST ───────────────────────────────────── */
.sv-live-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
}

.sv-live-row {
    display: grid;
    grid-template-columns: 90px 70px 60px 1fr;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: .75rem;
    transition: background .3s ease;
}

.sv-lr-danger { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.18); }
.sv-lr-warn   { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.15); }
.sv-lr-pulse  { box-shadow: 0 0 0 2px rgba(239,68,68,0.35); }

.sv-lr-plate { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; color: #fff; font-size: .74rem; }
.sv-lr-val   { color: #f87171; font-weight: 800; font-size: .82rem; }
.sv-lr-limit { color: rgba(255,255,255,0.45); font-size: .68rem; }
.sv-lr-loc   { color: rgba(255,255,255,0.55); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── FLOATING CARDS ──────────────────────────────── */
.sv-float-card {
    position: absolute;
    width: 175px;
    padding: 12px 15px;
    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;
}

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

.sv-float-a { bottom: 18px; left: 20px; animation: svFloatCardA 7s ease-in-out infinite; }
.sv-float-b { bottom: 18px; right: 20px; animation: svFloatCardB 6.5s ease-in-out infinite; }

/* ── SHARED CARD ─────────────────────────────────── */
.sv-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);
}

/* ── OVERVIEW SECTION ────────────────────────────── */
.sv-overview-section { padding-top: 20px; padding-bottom: 20px; }

/* ── FLEET DONUT ─────────────────────────────────── */
.sv-donut-wrap { display: flex; justify-content: center; padding: 16px 0 10px; }

.sv-donut-ring { position: relative; width: 150px; height: 150px; }

.sv-donut-svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.sv-donut-arc {
    stroke-dasharray: 0 339;
    animation: svArcDraw 1.2s .3s ease forwards;
}

.sv-donut-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}

.sv-donut-center strong { font-size: 1.8rem; font-weight: 800; color: #ef4444; line-height: 1; }
.sv-donut-center span   { font-size: .76rem; color: #6a7a88; margin-top: 3px; }

.sv-donut-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

.sv-dl-row { display: flex; align-items: center; gap: 10px; background: #f8fbfe; border-radius: 12px; padding: 10px 12px; }
.sv-dl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sv-dl-row strong { display: block; font-size: .88rem; font-weight: 700; color: #0d2238; }
.sv-dl-row small  { display: block; font-size: .74rem; color: #6a7a88; }

/* ── LIMIT BARS ──────────────────────────────────── */
.sv-limit-bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.sv-lb-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px; }

.sv-lb-label { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; font-weight: 700; color: #0d2238; }

.sv-lb-track { height: 24px; border-radius: 999px; background: #eef3f8; overflow: hidden; }

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

.sv-lbf-red    { background: linear-gradient(90deg, #ef4444, #f87171); }
.sv-lbf-orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.sv-lbf-amber  { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.sv-lbf-blue   { background: linear-gradient(90deg, #0d6efd, #56a0ff); }

/* ── SEVERITY DONUT ──────────────────────────────── */
.sv-sev-donut-wrap {
    position: relative;
    width: 130px; height: 130px;
    margin: 12px auto;
}

.sv-sev-svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.sv-sev-arc {
    stroke-dasharray: 0 302;
    animation: svSevArc 1s ease forwards;
}

.sv-sev-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}

.sv-sev-center strong { font-size: 1.4rem; font-weight: 800; color: #ef4444; }
.sv-sev-center span   { font-size: .72rem; color: #6a7a88; }

.sv-sev-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }

.sv-sel-row {
    display: flex; align-items: center; gap: 8px;
    background: #f8fbfe; border-radius: 10px; padding: 8px 10px;
}

.sv-sel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sv-sel-body { flex: 1; }
.sv-sel-body strong { display: block; font-size: .78rem; font-weight: 700; color: #0d2238; }
.sv-sel-body span   { font-size: .72rem; color: #6a7a88; }

.sv-sel-pct { font-size: .78rem; font-weight: 800; }
.sv-pct-red   { color: #ef4444; }
.sv-pct-amber { color: #d97706; }
.sv-pct-green { color: #059669; }

/* ── ANALYSIS SECTION ────────────────────────────── */
.sv-analysis-section { padding-top: 20px; padding-bottom: 20px; }

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

.sv-top-row {
    display: grid;
    grid-template-columns: 22px 100px 1fr 90px;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 14px;
    animation: svFadeUp .5s ease both;
}

.sv-tr-danger { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.12); }
.sv-tr-warn   { background: rgba(245,158,11,0.05); border: 1px solid rgba(245,158,11,0.10); }
.sv-tr-mild   { background: #f8fbfe; border: 1px solid #eef3f8; }

.sv-tr-rank {
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 800;
    background: #eef3f8; color: #6a7a88;
}

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

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

.sv-trf-red    { background: linear-gradient(90deg, #ef4444, #f87171); }
.sv-trf-orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.sv-trf-amber  { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.sv-trf-blue   { background: linear-gradient(90deg, #0d6efd, #56a0ff); }

.sv-tr-info { text-align: right; }
.sv-tr-info strong { display: block; font-size: .82rem; font-weight: 700; color: #0d2238; }
.sv-tr-info small  { font-size: .7rem; color: #6a7a88; }
.sv-extreme { color: #ef4444; font-weight: 700; }

/* ── HOUR GRID ───────────────────────────────────── */
.sv-hour-grid {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 90px;
    margin-bottom: 14px;
}

.sv-hour-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    height: 100%;
    justify-content: flex-end;
}

.sv-hour-bar {
    width: 100%;
    height: var(--h);
    border-radius: 6px 6px 3px 3px;
    animation: svBarUp .9s ease both;
    min-height: 6px;
}

.sv-hb-red    { background: linear-gradient(180deg, #ef4444, #f87171); }
.sv-hb-orange { background: linear-gradient(180deg, #f97316, #fb923c); }
.sv-hb-amber  { background: linear-gradient(180deg, #f59e0b, #fcd34d); }

.sv-hour-item span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .68rem; font-weight: 700; color: #29455d; }
.sv-hour-item small { font-size: .62rem; color: #94a3b8; }

/* ── LOCATION LIST ───────────────────────────────── */
.sv-loc-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

.sv-loc-row {
    display: grid;
    grid-template-columns: 18px 130px 1fr 32px;
    align-items: center;
    gap: 8px;
    animation: svFadeUp .5s ease both;
}

.sv-loc-rank {
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .62rem; font-weight: 800;
    background: #eef3f8; color: #6a7a88;
}

.sv-loc-r1 { background: rgba(239,68,68,0.12); color: #ef4444; }

.sv-loc-name { font-size: .8rem; font-weight: 600; color: #0d2238; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sv-loc-track { height: 7px; border-radius: 999px; background: #eef3f8; overflow: hidden; }
.sv-loc-fill { height: 100%; border-radius: 999px; width: var(--w); animation: svBarGrow .9s ease both; }

.sv-locf-red    { background: linear-gradient(90deg, #ef4444, #f87171); }
.sv-locf-orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.sv-locf-amber  { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.sv-locf-blue   { background: linear-gradient(90deg, #0d6efd, #56a0ff); }

.sv-loc-cnt { font-size: .74rem; font-weight: 700; color: #0d2238; text-align: right; }

/* ── NOTE ────────────────────────────────────────── */
.sv-note {
    display: flex; gap: 8px; align-items: flex-start;
    background: rgba(13,110,253,0.04);
    border: 1px solid rgba(13,110,253,0.10);
    border-radius: 12px; padding: 10px 13px;
    font-size: .8rem; color: #29455d; line-height: 1.65;
}
.sv-note i { color: #0d6efd; flex-shrink: 0; margin-top: 1px; }
.sv-note p { margin: 0; }
.sv-note-mt { margin-top: 12px; }

/* ── EXTREME SECTION ─────────────────────────────── */
.sv-extreme-section { padding-top: 20px; padding-bottom: 20px; }

/* ── EXTREME TABLE ───────────────────────────────── */
.sv-ex-table { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }

.sv-ex-head {
    display: grid;
    grid-template-columns: 100px 60px 1fr 50px 80px;
    gap: 10px; padding: 0 12px 5px;
    font-size: .7rem; text-transform: uppercase;
    letter-spacing: .05em; color: #6a7a88;
}

.sv-ex-row {
    display: grid;
    grid-template-columns: 100px 60px 1fr 50px 80px;
    gap: 10px; align-items: center;
    padding: 10px 12px; border-radius: 12px;
    font-size: .83rem;
    animation: svFadeUp .5s ease both;
    transition: background .2s ease;
}
.sv-ex-row:hover { filter: brightness(1.03); }

.sv-exr-critical { background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.14); }
.sv-exr-high     { background: rgba(249,115,22,0.06); border: 1px solid rgba(249,115,22,0.12); }

.sv-ex-time  { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; color: #6a7a88; }
.sv-ex-loc   { font-size: .78rem; color: #6a7a88; display: flex; align-items: center; gap: 4px; overflow: hidden; }
.sv-ex-loc i { color: #0d6efd; flex-shrink: 0; }
.sv-ex-limit { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; color: #6a7a88; text-align: center; }

.sv-ex-speed { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: .88rem; text-align: right; }
.sv-speed-critical { color: #b91c1c; }
.sv-speed-high     { color: #c2410c; }

.sv-ex-note {
    display: flex; gap: 8px; align-items: flex-start;
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.12);
    border-radius: 12px; padding: 10px 13px;
    font-size: .8rem; color: #7f1d1d; line-height: 1.65;
}
.sv-ex-note i { color: #ef4444; flex-shrink: 0; margin-top: 1px; }
.sv-ex-note p { margin: 0; }

/* ── METRIC CARDS ────────────────────────────────── */
.sv-metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.sv-metric-card i { font-size: 1.4rem; flex-shrink: 0; }
.sv-metric-card strong { display: block; font-size: 1rem; font-weight: 800; color: #0d2238; margin-bottom: 2px; }
.sv-metric-card span   { display: block; font-size: .8rem; color: #29455d; }
.sv-metric-card small  { display: block; font-size: .72rem; color: #6a7a88; margin-top: 2px; }

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

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

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

/* ── KEYFRAMES ───────────────────────────────────── */
@keyframes svPulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: .80; }
}

@keyframes svFloatSoft {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

@keyframes svFloatCardA {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}

@keyframes svFloatCardB {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

@keyframes svFadeUp {
    0%   { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes svBarGrow {
    0%   { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); }
}

@keyframes svBarUp {
    0%   { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}

@keyframes svArcDraw {
    0%   { stroke-dasharray: 0 339; }
    100% { stroke-dasharray: 200 339; }
}

@keyframes svSevArc {
    0%   { stroke-dasharray: 0 302; }
    100% { stroke-dasharray: var(--final, 259) 302; }
}

@keyframes svNeedle {
    0%   { transform: rotate(-90deg); }
    100% { transform: rotate(30deg); }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 991.98px) {
    .sv-hero-stage { min-height: 480px; }
    .sv-dash-window { top: 16px; left: 16px; right: 16px; }
    .sv-float-a, .sv-float-b { display: none; }
    .sv-top-row { grid-template-columns: 20px 90px 1fr; }
    .sv-tr-info { display: none; }
    .sv-ex-head, .sv-ex-row { grid-template-columns: 90px 50px 1fr 70px; }
    .sv-ex-limit { display: none; }
}

@media (max-width: 767.98px) {
    .sv-speedo-svg { width: 160px; height: 96px; }
    .sv-severity-row { gap: 12px; }
    .sv-hour-grid { gap: 5px; }
    .sv-loc-row { grid-template-columns: 18px 1fr 28px; }
    .sv-loc-track { display: none; }
    .sv-ex-head, .sv-ex-row { grid-template-columns: 90px 50px 1fr 70px; }
    .sv-top-row { grid-template-columns: 20px 85px 1fr; }
}
