﻿/* =====================================================
   Cennet Lojistik - Frontend CSS
   Renk paleti: Logo navy + kirmizi
   ===================================================== */

:root {
    --cl-navy:   #2B3875;
    --cl-navy-dark: #1E2B5F;
    --cl-navy-light: #3A4A8A;
    --cl-red:    #C51A25;
    --cl-red-dark: #A01520;
    --cl-white:  #FFFFFF;
    --cl-gray-light: #F4F6FB;
    --cl-text:   #1A1A2E;
    /* Bootstrap uyum */
    --primary: var(--cl-navy);
    --accent:  var(--cl-red);
    --text-dark: var(--cl-text);
}

/* ===== GENEL ===== */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--cl-text);
    background: #fff;
}
a { color: var(--cl-navy); }
a:hover { color: var(--cl-red); }

/* ===== ÜST BAR ===== */
.topbar {
    background: #1E2B5F !important;
    background-color: #1E2B5F !important;
    font-size: 13px;
    border-bottom: 2px solid #C51A25;
    color: #ffffff !important;
}

/* ===== NAVBAR ===== */
nav.navbar,
nav.navbar.fixed-top,
.navbar.bg-white {
    background-color: #ffffff !important;
    background: #ffffff !important;
    padding: 6px 0;
    border-bottom: 1px solid #e8eaf6;
    z-index: 1030;
}
.navbar-brand img {
    height: 48px;
    width: auto;
}
.nav-link {
    font-weight: 600;
    color: var(--cl-navy) !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all .2s;
    font-size: .95rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--cl-red) !important;
    background: rgba(197,26,37,.06);
}
.btn-tracking {
    background: var(--cl-red) !important;
    border-color: var(--cl-red) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 20px;
}
.btn-tracking:hover {
    background: var(--cl-red-dark) !important;
    border-color: var(--cl-red-dark) !important;
}

/* ===== HERO SLIDER ===== */
.slider-img {
    height: 520px;
    object-fit: cover;
    filter: brightness(.65);
}
.slider-placeholder { position: relative; height: 520px; }
.slider-default-bg  {
    height: 100%;
    background: linear-gradient(135deg, var(--cl-navy-dark) 0%, var(--cl-navy) 60%, var(--cl-navy-light) 100%);
}
.carousel-caption {
    top: 0; bottom: 0; left: 0; right: 0;
    text-align: left;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-title { font-size: 3rem; text-shadow: 0 2px 8px rgba(0,0,0,.4); font-weight: 800; }
.slide-sub   { font-size: 1.2rem; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.slide-accent { color: var(--cl-red); }

/* ===== HERO SECTION (slider yoksa) ===== */
.hero-section {
    background: linear-gradient(135deg, var(--cl-navy-dark) 0%, var(--cl-navy) 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 6px;
    background: var(--cl-red);
}

/* ===== TAKİP KUTUSU ===== */
.tracking-box {
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.2);
    padding: 28px;
}
.tracking-box .form-control {
    border-radius: 10px 0 0 10px;
    border: 2px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.9);
    font-family: monospace;
    font-size: 1rem;
    height: 50px;
}
.tracking-box .btn {
    border-radius: 0 10px 10px 0;
    background: var(--cl-red);
    border-color: var(--cl-red);
    height: 50px;
    font-weight: 700;
    padding: 0 24px;
}
.tracking-box .btn:hover { background: var(--cl-red-dark); border-color: var(--cl-red-dark); }

/* ===== HİZMET KARTLARI ===== */
.service-card {
    border: none;
    border-radius: 16px;
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(43,56,117,.15) !important;
}
.service-card .card-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cl-navy), var(--cl-navy-light));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
}
.service-card .card-icon.red-icon {
    background: linear-gradient(135deg, var(--cl-red-dark), var(--cl-red));
}

/* ===== SAYFA HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--cl-navy-dark) 0%, var(--cl-navy) 100%);
    color: #fff;
    padding: 56px 0 48px;
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--cl-red);
}

/* ===== İSTATİSTİK BANDI ===== */
.stats-band {
    background: var(--cl-navy);
    color: #fff;
    padding: 36px 0;
}
.stat-num  { font-size: 2.2rem; font-weight: 900; color: #fff; }
.stat-unit { font-size: 1.1rem; color: rgba(255,255,255,.7); }

/* ===== CTA BÖLÜMÜ ===== */
.cta-section {
    background: linear-gradient(135deg, var(--cl-red-dark), var(--cl-red));
    color: #fff;
    padding: 64px 0;
}
.btn-cta-white {
    background: #fff; color: var(--cl-red);
    font-weight: 700; border-radius: 50px;
    padding: 14px 36px; border: none;
    transition: .2s;
}
.btn-cta-white:hover {
    background: var(--cl-navy-dark); color: #fff;
    transform: translateY(-2px);
}

/* ===== TAKİP HERO ===== */
.tracking-hero {
    background: linear-gradient(135deg, var(--cl-navy-dark) 0%, var(--cl-navy) 60%, var(--cl-navy-light) 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    position: relative;
}
.tracking-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--cl-red);
}
.tracking-input-lg {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

/* ===== DURUM ADIM PROGRESS BAR ===== */
.steps-horizontal {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding: 4px 0 12px;
    gap: 0;
    -webkit-overflow-scrolling: touch;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 72px;
    text-align: center;
}
.step-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #eceef5;
    color: #b0b8cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 3px solid #e0e4f0;
    transition: all .25s;
    position: relative;
    z-index: 1;
}
.step-item.done .step-circle {
    background: var(--cl-navy);
    color: #fff;
    border-color: var(--cl-navy-dark);
}
.step-item.active .step-circle {
    background: var(--cl-red);
    color: #fff;
    border-color: var(--cl-red-dark);
    box-shadow: 0 0 0 6px rgba(197,26,37,.15);
    transform: scale(1.13);
}
.step-info {
    margin-top: 10px;
    max-width: 78px;
}
.step-name {
    font-size: .77rem;
    font-weight: 600;
    color: #b0b8cc;
    line-height: 1.3;
}
.step-item.done .step-name { color: var(--cl-navy); }
.step-item.active .step-name { color: var(--cl-red); font-weight: 700; font-size: .82rem; }
.step-date {
    font-size: .67rem;
    color: #999;
    margin-top: 3px;
    white-space: nowrap;
}
.step-connector {
    flex: 1;
    height: 4px;
    background: #e0e4f0;
    border-radius: 2px;
    align-self: flex-start;
    margin-top: 25px; /* (54px / 2) - (4px / 2) */
    min-width: 14px;
    transition: background .25s;
}
.step-connector.done { background: var(--cl-navy); }

@media (max-width: 768px) {
    .step-circle { width: 42px; height: 42px; font-size: 1rem; }
    .step-name { font-size: .69rem; max-width: 54px; }
    .step-connector { margin-top: 19px; }
    .step-item { min-width: 52px; }
    .step-info { max-width: 56px; }
}

/* ===== TAKİP SONUÇ KARTI ===== */
.tracking-result,
.tracking-result-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(43,56,117,.12);
    border: 1px solid #e8eaf6;
}
.tracking-status-panel {
    background: linear-gradient(160deg, var(--cl-navy-dark) 0%, var(--cl-navy) 100%);
    border-right: 4px solid var(--cl-red);
}
.status-big-icon { font-size: 4rem; }
.tracking-info-row {
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f8;
}
.tracking-info-row:last-child { border-bottom: none; }
.tracking-info-label {
    font-size: .82rem;
    color: #7a80a0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
}
.tracking-info-value {
    font-size: 1rem;
    color: var(--cl-text);
    font-weight: 500;
}

/* ===== DURUM ADIMI ===== */
.status-step.active  { background: var(--cl-navy); color: #fff; border-radius: 50%; }
.status-step.done    { background: #198754; color: #fff; border-radius: 50%; }
.status-step.pending { background: #e0e0e0; color: #999; border-radius: 50%; }

/* ===== TAKİP TİMELINE (Detaylı Geçmiş) ===== */
.tracking-timeline { padding: 8px 0; }
.timeline-row {
    display: flex;
    gap: 16px;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f2f8;
    align-items: flex-start;
}
.timeline-row:last-child { border-bottom: none; }
.timeline-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.timeline-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.timeline-line {
    width: 2px;
    background: #e8eaf0;
    flex: 1;
    min-height: 16px;
    margin-top: 4px;
}
.timeline-right { flex: 1; }
.timeline-date {
    font-size: .75rem;
    color: #999;
    margin-bottom: 2px;
}
.timeline-status {
    font-size: .95rem;
    color: var(--cl-navy);
    margin-bottom: 2px;
}
.timeline-desc { color: #666; }
.timeline-location { color: #888; }
.timeline-notes { color: #888; }

/* ===== FOOTER ===== */
.footer-main {
    background: var(--cl-navy-dark);
    color: #fff;
    padding: 56px 0 28px;
}
.footer-main a                  { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-main a:hover            { color: var(--cl-red); }
.footer-main h6,
.footer-main h5,
.footer-main h4                 { color: #fff !important; }
.footer-main p,
.footer-main li,
.footer-main span               { color: rgba(255,255,255,.75) !important; }
.footer-main .text-muted        { color: rgba(255,255,255,.6) !important; }
.footer-main small,
.footer-main .small             { color: rgba(255,255,255,.6) !important; }
.footer-main hr                 { border-color: rgba(255,255,255,.15) !important; }
.footer-bottom {
    background: #141C42;
    color: rgba(255,255,255,.5);
    padding: 14px 0;
    font-size: 13px;
}

/* ===== MOBİL UYUM ===== */
@media (max-width: 768px) {
    .slider-img, .slider-placeholder { height: 320px; }
    .slide-title { font-size: 1.8rem; }
    .slide-sub   { font-size: 1rem; }
    .hero-section { min-height: 300px; }
    .navbar-brand img { height: 38px; }
    .tracking-box { padding: 18px; }
    .stat-num { font-size: 1.6rem; }
    .page-hero { padding: 36px 0 28px; }
}
@media (max-width: 480px) {
    .slide-title { font-size: 1.4rem; }
    .tracking-box .form-control,
    .tracking-box .btn { height: 44px; }
}
/* Bootstrap bg-primary override */
.cl-navy-bg { background-color: var(--cl-navy) !important; }
.text-primary { color: var(--cl-navy) !important; }
.btn-primary { background-color: var(--cl-navy) !important; border-color: var(--cl-navy) !important; }
.btn-primary:hover { background-color: var(--cl-navy-dark) !important; border-color: var(--cl-navy-dark) !important; }
.btn-danger { background-color: var(--cl-red) !important; border-color: var(--cl-red) !important; }
.btn-danger:hover { background-color: var(--cl-red-dark) !important; border-color: var(--cl-red-dark) !important; }


/* ===== LOGO (Her boyut uyumlu) ===== */
.navbar-brand { padding: 4px 0; line-height: 1; }
.navbar-brand img,
.site-logo {
    max-height: 52px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.footer-logo img {
    max-height: 56px;
    max-width: 220px;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* ===== LOGO OVERFLOW ENGELI ===== */
.navbar-brand { flex-shrink: 0; line-height: 1; padding: 4px 0; max-width: 200px; }
.navbar-brand img { display: block !important; max-height: 50px !important; max-width: 180px !important; width: auto !important; height: auto !important; object-fit: contain !important; }


/* Slider caption ortala */
.carousel-caption {
    text-align: center !important;
    align-items: center !important;
    padding: 0 12% !important;
}
.slide-title { text-align: center !important; }

/* Header: topbar + navbar birlikte sabit */
header[style*="position:fixed"] {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}
header[style*="position:fixed"] nav.navbar {
    background-color: #ffffff !important;
    background: #ffffff !important;
}
header[style*="position:fixed"] .topbar {
    background-color: #1E2B5F !important;
    border-bottom: 2px solid #C51A25;
}
