﻿/* ========================================================================== */
/* GENEL TANIMLAR & FONT */
/* ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --menu-radius: 18px;
    --menu-font: 16px;
}

/* ========================================================================== */
/* NAVBAR GENEL */
/* ========================================================================== */
.navbar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    min-height: 60px;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ========================================================================== */
/* MENU LINKLER (ROUNDED) */
/* ========================================================================== */
.custom-menu-link,
.navbar .nav-link {
    font-size: 16px !important; /* 🔥 Mobil ve masaüstü dengesi için 16px'e çekildi */
    font-weight: 500;
    padding: 10px 18px !important;
    border-radius: var(--menu-radius);
    transition: all 0.25s ease;
    display: inline-block;
}

    /* HOVER & ACTIVE */
    .custom-menu-link:hover,
    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        background-color: rgba(178, 0, 255, 0.85) !important;
        color: #fff !important;
        border-radius: var(--menu-radius);
    }

    .custom-menu-link:hover,
    .navbar .nav-link:hover {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 6px 18px rgba(178, 0, 255, 0.35);
    }

/* ========================================================================== */
/* FORM ELEMANLARI */
/* ========================================================================== */
.form-control {
    border-radius: 14px;
    border: 1px solid #e5e5e5;
    padding: 10px 14px;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

    .form-control:hover {
        border-color: #cfcfcf;
    }

    .form-control:focus {
        border-color: #ff7a18;
        box-shadow: 0 0 0 0.2rem rgba(255, 122, 24, 0.25);
        transform: translateY(-1px);
        outline: none;
    }

    .form-control::placeholder {
        color: #aaa;
        font-size: 0.95rem;
    }

.form-select {
    border-radius: 12px !important;
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    background-color: #fff;
}

    .form-select:hover {
        border-color: #b0b0b0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        transform: translateY(-1px);
    }

    .form-select:focus {
        border-color: #ff7a18;
        box-shadow: 0 0 0 0.2rem rgba(255, 122, 24, 0.25), 0 12px 30px rgba(0,0,0,0.35);
        transform: translateY(-1px);
    }

.form-label-blue {
    color: #1f3a93;
    font-weight: 600;
    transition: 0.2s;
}

    .form-label-blue:hover {
        color: #0d47a1;
    }

.form-label-red {
    color: #c0392b;
    font-weight: 600;
}

    .form-label-red:hover {
        color: #e74c3c;
    }

/* ========================================================================== */
/* CARDS & CONTAINERS */
/* ========================================================================== */
.saas-card {
    background: linear-gradient(135deg, #ffffff, #f6f8fc) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12), 0 35px 80px rgba(0,0,0,0.20) !important;
}

    .saas-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.18), 0 30px 70px rgba(0,0,0,0.25) !important;
    }

    .saas-card h2, .saas-card h3 {
        font-weight: 600;
        color: #222;
    }

/* ========================================================================== */
/* DROPDOWN MENU */
/* ========================================================================== */
.dropdown-menu,
.custom-dropdown {
    background: rgba(255, 255, 255, 0.95) !important; /* Cam efekti okunabilirlik için netleştirildi */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    width: 260px !important;
    min-width: 260px !important;
    padding: 8px;
    border-radius: 18px;
    font-size: 15px; /* 🔥 '12pt' kaldırıldı, px yapıldı */
}

.dark-theme .dropdown-menu,
.dark-theme .custom-dropdown {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dropdown-menu .dropdown-item,
.dropdown-item {
    font-size: 15px !important; /* 🔥 18px'den 15px'e düşürüldü, mobilde taşmayı engeller */
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 14px;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu li, .dropdown-menu li a {
    width: 100%;
}

.dropdown-item:hover {
    background-color: rgba(178, 0, 255, 0.85) !important;
    color: #fff !important;
    transform: scale(1.02);
}

.dropdown-submenu > a::after {
    content: "▶";
    float: right;
    font-size: 10px;
}

/* ========================================================================== */
/* LOGIN & İLETİŞİM & EREŞİM UI */
/* ========================================================================== */
.login-container {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f7f7f7, #dddddd);
    color: #000 !important;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.btn-primary, .btn-login {
    background: linear-gradient(135deg, #111111, #000000);
    color: #fff !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.25s ease;
    border-radius: 12px;
}

    .btn-primary:hover, .btn-login:hover {
        background: linear-gradient(135deg, #b200ff, #7a00cc) !important;
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(178, 0, 255, 0.4);
        transform: translateY(-2px) scale(1.02);
        border-radius: 20px;
    }

.contact-hero {
    background: url('/images/iletisimheader.jpg') center/cover no-repeat;
    height: 300px;
}

.contact-content {
    padding: 60px 20px;
    background: #f5f5f5;
}

    .contact-content h1 {
        font-size: 42px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .contact-content p {
        max-width: 700px;
        margin: auto;
        color: #666;
    }

.contact-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin: 10px;
    transition: 0.3s;
    border: 1px solid #eee;
}

    .contact-card h5 {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .contact-card p {
        font-size: 14px;
        color: #777;
    }

    .contact-card span {
        display: block;
        margin-top: 10px;
        font-weight: 500;
    }

    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.access-denied {
    height: 80vh;
    background: #f8f9fa;
}

    .access-denied h1 {
        font-size: 120px;
    }

    .access-denied h2 {
        font-weight: 600;
    }

footer {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* ========================================================================== */
/* HERO SECTION (Masaüstü) */
/* ========================================================================== */
.hero-video {
    position: relative;
    height: 90vh !important;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

    .hero-media.image {
        display: none;
    }

.hero-video .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient( rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65) );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 15px;
}

    .hero-content h1 {
        font-size: 48px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .hero-content p {
        font-size: 20px;
        margin: 20px 0;
    }

.hero-btn-blue {
    background-color: #007bff;
    color: #fff;
    border: none;
}

    .hero-btn-blue:hover {
        background-color: #0056b3;
        color: #fff;
    }

.hero-btn-red {
    background-color: #dc3545;
    color: #fff;
    border: none;
}

    .hero-btn-red:hover {
        background-color: #a71d2a;
        color: #fff;
    }

/* ========================================================================== */
/* 🔥 KRİTİK DÜZELTME: MOBİL VE TABLET RESPONSIVE REVIZYONU */
/* ========================================================================== */

@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        display: none;
        position: absolute;
    }
}

@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-left: 15px;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }

        .dropdown-submenu > .dropdown-menu.show {
            display: block !important;
        }

    .navbar .nav-link, .dropdown-item {
        -webkit-tap-highlight-color: transparent;
    }

        .navbar .nav-link:active, .navbar .nav-link:focus,
        .dropdown-item:active, .dropdown-item:focus {
            background-color: rgba(178, 0, 255, 0.85) !important;
            color: #fff !important;
            border-radius: 12px;
            transition: none !important;
        }

    .hero-video {
        height: 45vh !important;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .masonry {
        column-count: 1;
    }
}

/* 📱 TELEFON EKRANLARI (768px ve altı) - Canlıdaki Kaba Görüntüyü Çözen Kısım */
@media (max-width: 768px) {
    .hero-video {
        height: 40vh !important;
    }

    .hero-media.video {
        display: none;
    }

    .hero-media.image {
        display: block;
    }

    /* 🔥 Görsellerdeki patlayan başlıkları ve paragrafları mobilde hizalama kuralları */
    h1, .h1 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    h2, .h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-top: 15px !important;
    }

    h3, .h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .hero-content {
        top: 50%;
        transform: translateY(-50%);
    }

        .hero-content h1 {
            font-size: 22px !important;
        }

        .hero-content p {
            font-size: 13px !important;
            margin: 10px 0;
        }

    .contact-content h1 {
        font-size: 28px;
    }

    .access-denied h1 {
        font-size: 60px;
    }
}
/* ========================================================================== */
/* ARAÇ TAKİP MODÜLÜ ÖZEL STİLLERİ */
/* ========================================================================== */
.custom-arac-table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

    .custom-arac-table thead th {
        border: none;
        color: #777;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .custom-arac-table tbody tr {
        background-color: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.03);
        border-radius: 10px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .custom-arac-table tbody tr:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }

    .custom-arac-table td {
        padding: 14px 12px !important;
        border: none;
    }

        .custom-arac-table td:first-child {
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        .custom-arac-table td:last-child {
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }

/* Yapılan KM Badge */
.km-badge-success {
    background-color: rgba(40, 167, 69, 0.12);
    color: #28a745;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    display: inline-block;
}