/* ══════════════════════════════════════════════════════════
   ROTA OPTİMİZASYON SİSTEMİ — route-optimization.css
   Raporlama standardı ile uyumlu hale getirilmiştir.
   reporting.css üzerine extend eder.
   ══════════════════════════════════════════════════════════ */

/* ── Yardımcı ────────────────────────────────────────────── */
.mb-6 { margin-bottom: 3rem; }

/* ══ HERO — Raporlama stage sarmalı ════════════════════════ */

/* rp-hero-section zaten reporting.css'den geliyor.
   Sadece bu sayfaya özgü overrides burada. */

.ro-stage-wrap {
    position: relative;
    min-height: 480px;
    border-radius: 30px;
    background: linear-gradient(145deg, #06101f 0%, #0c1e34 50%, #0a1628 100%);
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(6, 16, 31, 0.25);
    padding: 24px;
    display: flex;
    align-items: center;
}

/* Grid overlay — reporting.css'deki .rp-stage-grid ile aynı */
.ro-stage-wrap .rp-stage-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.ro-stage-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(52px);
    animation: roGlowPulse 7s ease-in-out infinite;
    pointer-events: none;
}
.ro-glow-a {
    width: 260px; height: 260px;
    top: 0; right: 0;
    background: rgba(59, 130, 246, 0.18);
}
.ro-glow-b {
    width: 180px; height: 180px;
    bottom: 20px; left: 20px;
    background: rgba(16, 185, 129, 0.14);
    animation-delay: -3s;
}
@keyframes roGlowPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.1); opacity: .7; }
}

/* Floating kartlar — raporlama float-card patternı */
.ro-float-card {
    position: absolute;
    width: 168px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    color: #fff;
    z-index: 10;
    pointer-events: none;
}
.ro-float-card span  { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,0.45); margin-bottom: 3px; }
.ro-float-card strong { display: block; font-size: 1.05rem; font-weight: 800; margin-bottom: 2px; }
.ro-float-card p     { margin: 0; font-size: .70rem; color: rgba(255,255,255,0.50); }

.ro-float-a { bottom: 18px; left: 18px; animation: roFloatA 7s ease-in-out infinite; }
.ro-float-b { bottom: 18px; right: 18px; animation: roFloatB 6.5s ease-in-out infinite; }

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

/* Dashboard kartı — stage içinde yüzer */
.ro-stage-wrap .ro-hero-dashboard {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    overflow: hidden;
    animation: roDashFloat 6s ease-in-out infinite;
    margin-bottom: 60px; /* float kartlara alan */
}
@keyframes roDashFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* Dashboard header — koyu arka plan üzerinde accent rengiyle */
.ro-stage-wrap .ro-hd-header {
    background: rgba(13,110,253,0.75);
    backdrop-filter: blur(8px);
}

/* Araç satırları — saydam yüzey */
.ro-stage-wrap .ro-hd-vehicle {
    border-bottom-color: rgba(255,255,255,0.07);
}
.ro-stage-wrap .ro-hd-vehicle:hover {
    background: rgba(255,255,255,0.05);
}
.ro-stage-wrap .ro-hd-veh-left strong { color: #fff; }
.ro-stage-wrap .ro-hd-veh-left span   { color: rgba(255,255,255,0.45); }
.ro-stage-wrap .ro-hd-pax             { color: rgba(255,255,255,0.80); }
.ro-stage-wrap .ro-hd-bar             { background: rgba(255,255,255,0.12); }
.ro-stage-wrap .ro-hd-bar-wrap > span { color: rgba(255,255,255,0.70); }

/* Summary strip */
.ro-stage-wrap .ro-hd-summary {
    background: rgba(255,255,255,0.04);
    border-top-color: rgba(255,255,255,0.08);
}
.ro-stage-wrap .ro-hd-sstat strong { color: #fff; }
.ro-stage-wrap .ro-hd-sstat span   { color: rgba(255,255,255,0.40); }
.ro-stage-wrap .ro-hd-sdiv         { background: rgba(255,255,255,0.10); }

/* Badge ok */
.ro-stage-wrap .ro-hd-badge-ok {
    background: rgba(34,197,94,0.12);
    border-top-color: rgba(34,197,94,0.20);
    color: #6ee7b7;
}

/* ══ ADIMLAR ════════════════════════════════════════════════ */
.ro-steps-section {
    background: #f8fbfe;
}

/* rp-section-head kullanıldığı için eski .ro-section-badge/.ro-section-title gerekmez,
   sadece adım kartları için stiller kalıyor. */

.ro-steps-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 8px;
}

.ro-steps-wrapper::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, rgba(13,110,253,0.15));
    z-index: 0;
}

.ro-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px 32px;
    z-index: 1;
}

.ro-step-num {
    position: absolute;
    top: -10px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #0d6efd;
    opacity: 0.5;
}

.ro-step-icon-wrap {
    margin-top: 20px;
    margin-bottom: 20px;
}

.ro-step-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}
.ro-step-icon:hover { transform: scale(1.1) rotate(-5deg); }
.ro-step-icon--1 { background: linear-gradient(135deg, #22C55E, #16a34a); }
.ro-step-icon--2 { background: linear-gradient(135deg, #3B82F6, #1d4ed8); }
.ro-step-icon--3 { background: linear-gradient(135deg, #0d6efd, #0369a1); }
.ro-step-icon--4 { background: linear-gradient(135deg, #F59E0B, #d97706); }

.ro-step-content h4 { font-size: 1rem; margin-bottom: 8px; color: #0d2238; }
.ro-step-content p  { font-size: 0.83rem; color: #6a7a88; line-height: 1.65; }

.ro-step-arrow {
    position: absolute;
    top: 38px; right: -18px;
    font-size: 1.8rem;
    color: #0d6efd;
    opacity: 0.4;
    z-index: 2;
    display: none;
}

/* ══ EKRAN MOCKUPları ══════════════════════════════════════ */
.ro-screens-section { background: #fff; }

.ro-screen-mockup {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(13,34,56,0.08);
    transition: transform 0.35s, box-shadow 0.35s;
}
.ro-screen-mockup:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.ro-sm-chrome {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: #64748b;
}
.ro-sm-dots { display: flex; gap: 5px; }
.ro-sm-dots span {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #e2e8f0;
}

.ro-sm-body--screenshot {
    height: 260px;
    overflow: hidden;
    position: relative;
}
.ro-sm-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    transition: transform 0.4s ease;
}
.ro-screen-mockup:hover .ro-sm-screenshot {
    transform: scale(1.03);
}

/* Feature text */
.ro-feature-text { padding: 12px 0; }

.ro-ft-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(13,110,253,0.10);
    line-height: 1;
    margin-bottom: 4px;
}

.ro-feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: #0d2238;
}
.ro-feature-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #6a7a88;
    margin-bottom: 20px;
}

.ro-feature-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ro-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f8fbfe;
    border: 1px solid #eef3f8;
    transition: background 0.2s, transform 0.2s;
}
.ro-feature-list li:hover {
    background: rgba(13,110,253,0.05);
    border-color: rgba(13,110,253,0.12);
    transform: translateX(4px);
}
.ro-feature-list i { color: #0d6efd; font-size: 0.9rem; flex-shrink: 0; }

/* ══ NUMBERS ════════════════════════════════════════════════ */
.ro-numbers-section {
    background: #f8fbfe;
}

.ro-number-card {
    padding: 32px 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(13,34,56,0.08);
    box-shadow: 0 14px 32px rgba(12,34,56,0.05);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.ro-number-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.ro-number-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(12,34,56,0.09);
}
.ro-number-card:hover::before { opacity: 1; }

.ro-nc-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s;
}
.ro-number-card:hover .ro-nc-icon { transform: scale(1.15) rotate(-5deg); }

.ro-nc-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.ro-nc-num span:last-child { font-size: 1.6rem; opacity: 0.7; }

.ro-nc-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0d2238;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ro-number-card p {
    font-size: 0.82rem;
    color: #6a7a88;
    line-height: 1.65;
    margin: 0;
}

/* ══ HERO DASHBOARD — Orijinal stiller (stage dışı kullanım için) ══ */
.ro-hero-dashboard {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(13,34,56,0.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.ro-hero-dashboard:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.ro-hd-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}
.ro-hd-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: roBlink 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
.ro-hd-time {
    margin-left: auto;
    font-size: 0.72rem;
    opacity: 0.65;
    font-weight: 400;
}
@keyframes roBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.ro-hd-vehicles { padding: 6px 0; }
.ro-hd-vehicle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(13,34,56,0.06);
    transition: background 0.2s;
}
.ro-hd-vehicle:last-child { border-bottom: none; }
.ro-hd-vehicle:hover { background: rgba(13,110,253,0.03); }

.ro-hd-veh-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ro-hd-vcolor   { width: 4px; height: 36px; border-radius: 3px; flex-shrink: 0; }
.ro-hd-vcolor--1 { background: #3B82F6; }
.ro-hd-vcolor--2 { background: #22C55E; }
.ro-hd-vcolor--3 { background: #F59E0B; }
.ro-hd-vcolor--4 { background: #A855F7; }
.ro-hd-veh-left strong { display: block; font-size: 0.88rem; color: #0d2238; white-space: nowrap; }
.ro-hd-veh-left span   { font-size: 0.75rem; color: #6a7a88; white-space: nowrap; }

.ro-hd-veh-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ro-hd-pax {
    font-size: 0.82rem;
    color: #0d2238;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.ro-hd-pax i { color: #0d6efd; font-size: 0.75rem; }

.ro-hd-bar-wrap { display: flex; align-items: center; gap: 8px; }
.ro-hd-bar {
    width: 80px; height: 6px;
    background: #eef3f8;
    border-radius: 3px;
    overflow: hidden;
}
.ro-hd-fill {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.ro-hd-fill--1 { background: #3B82F6; }
.ro-hd-fill--2 { background: #22C55E; }
.ro-hd-fill--3 { background: #F59E0B; }
.ro-hd-fill--4 { background: #A855F7; }
.ro-hd-bar-wrap span { font-size: 0.72rem; font-weight: 700; color: #0d2238; width: 28px; text-align: right; }

.ro-hd-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fbfe;
    border-top: 1px solid rgba(13,34,56,0.08);
}
.ro-hd-sstat { display: flex; align-items: center; gap: 10px; }
.ro-hd-sstat > i { font-size: 1.1rem; color: #0d6efd; }
.ro-hd-sstat strong { display: block; font-size: 1.1rem; font-weight: 700; color: #0d2238; line-height: 1; }
.ro-hd-sstat span   { font-size: 0.68rem; color: #6a7a88; margin-top: 2px; display: block; }
.ro-hd-sdiv { width: 1px; height: 28px; background: rgba(13,34,56,0.10); }

.ro-hd-badge-ok {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(34,197,94,0.07);
    border-top: 1px solid rgba(34,197,94,0.16);
    color: #16a34a;
    font-size: 0.82rem;
    font-weight: 600;
}
.ro-hd-badge-ok i { font-size: 0.9rem; }

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .ro-stage-wrap { min-height: 420px; padding: 18px; }
    .ro-float-a, .ro-float-b { display: none; }
    .ro-steps-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .ro-steps-wrapper::before { display: none; }
    .ro-step-arrow { display: none; }
}

@media (max-width: 767.98px) {
    .ro-steps-wrapper { grid-template-columns: 1fr; }
    .ro-stage-wrap { min-height: 360px; }
    .ro-stage-wrap .ro-hero-dashboard { margin-bottom: 0; }
}
