/*
Theme Name: Viya Premium
Theme URI: https://viya.com
Author: Senin Adın
Author URI: https://seninsiten.com
Description: Viya Premium Ulaşım Teması
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viya
*/

/* Reset ve Temel Ayarlar */
:root {
    --primary: #3b82f6;
    --primary-glow: #60a5fa;
    --accent: #8b5cf6;
    --dark-bg: #020617;
    --card-surface: #ffffff;
    --text-main: #0f172a;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HERO SECTION (HEADER) --- */
.hero-section {
    position: relative;
    background-color: var(--dark-bg);
    color: white;
    padding-bottom: 120px;
    overflow: hidden;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    z-index: 1;
}

.aurora-bg {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12), transparent 40%);
    filter: blur(80px);
    animation: auroraMove 20s infinite alternate;
    z-index: 0;
}

@keyframes auroraMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, 30px) rotate(5deg); }
}

/* --- NAVBAR --- */
.navbar { padding: 25px 0; transition: 0.4s ease; }
.navbar-brand { font-weight: 800; font-size: 1.8rem; color: white !important; letter-spacing: -1px; }
.nav-link { color: rgba(255,255,255,0.7) !important; font-weight: 500; transition: 0.3s; }
.nav-link:hover { color: white !important; }

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    transition: 0.3s;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- 3D HARİTA KART YAPISI --- */
.map-perspective-wrap {
    perspective: 1200px;
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center; justify-content: center;
}

.tech-map-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    transform: rotateX(12deg) rotateY(-8deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
}

.tech-map-card:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
}

.map-grid {
    position: absolute;
    width: 250%; height: 250%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotate(-15deg) translate(-100px, -100px);
    animation: mapScroll 60s linear infinite;
}
@keyframes mapScroll {
    0% { transform: rotate(-15deg) translate(-100px, -100px); }
    100% { transform: rotate(-15deg) translate(-160px, -160px); }
}

/* Dekoratif Elemanlar */
.static-road {
    position: absolute;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
}
.road-1 { top: 25%; left: -10%; width: 120%; height: 20px; transform: rotate(-15deg); }
.road-2 { top: 65%; left: -10%; width: 120%; height: 20px; transform: rotate(-15deg); }
.road-3 { top: -10%; left: 45%; width: 20px; height: 120%; transform: rotate(-15deg); }

.building-3d {
    position: absolute;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border-top: 1px solid rgba(255,255,255,0.2);
    border-left: 1px solid rgba(255,255,255,0.1);
    transform: rotate(-15deg);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    z-index: 2;
}
.b-1 { top: 15%; left: 20%; width: 60px; height: 80px; }
.b-2 { top: 55%; left: 60%; width: 100px; height: 120px; }
.b-3 { top: 30%; left: 80%; width: 50px; height: 50px; }

.route-assembly {
    position: absolute;
    top: 50%; left: 50%;
    width: 220px; height: 180px;
    transform: translate(-50%, -50%) rotate(-15deg);
    z-index: 5;
    pointer-events: none;
}

.active-route-path {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-left: 6px solid rgba(59, 130, 246, 0.2);
    border-bottom: 6px solid rgba(59, 130, 246, 0.2);
    border-radius: 0 0 0 35px;
    box-sizing: border-box;
}

.active-route-path::after {
    content: '';
    position: absolute;
    bottom: -6px; left: -6px;
    width: calc(100% + 6px); height: calc(100% + 6px);
    border-left: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-radius: 0 0 0 35px;
    background: linear-gradient(to right, transparent, #3b82f6, #60a5fa);
    background-size: 200% 200%;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    clip-path: inset(0 0 0 0); 
    animation: flowRoute 3s linear infinite;
    filter: drop-shadow(0 0 10px #3b82f6);
}

@keyframes flowRoute {
    0% { clip-path: inset(100% 0 0 0); opacity: 0; }
    20% { clip-path: inset(0 0 0 0); opacity: 1; }
    80% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(0 0 0 100%); opacity: 0; }
}

.car-marker {
    position: absolute;
    width: 32px; height: 32px;
    background: white;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 16px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 10px 20px rgba(0,0,0,0.5);
    z-index: 20;
    top: -16px; left: -19px; 
    animation: precisionDrive 8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.headlight-beam {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, transparent 100%);
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0% 100%);
    filter: blur(4px);
    opacity: 0.6;
    pointer-events: none;
}

.destination-point {
    position: absolute;
    bottom: -9px; right: -9px;
    width: 18px; height: 18px;
    background: #ef4444;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 20px #ef4444;
    z-index: 5;
}

.destination-point::before, .destination-point::after {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 1px solid #ef4444; border-radius: 50%;
    animation: rippleDest 2s infinite linear;
}
.destination-point::after { animation-delay: 1s; }

@keyframes rippleDest {
    0% { width: 100%; height: 100%; opacity: 1; border-width: 2px; }
    100% { width: 400%; height: 400%; opacity: 0; border-width: 0px; }
}

@keyframes precisionDrive {
    0% { transform: translate(0, 0) rotate(0deg); }
    35% { transform: translate(0, 145px) rotate(0deg); }
    45% { transform: translate(35px, 180px) rotate(-90deg); }
    90% { transform: translate(220px, 180px) rotate(-90deg); opacity: 1; }
    100% { transform: translate(220px, 180px) rotate(-90deg) scale(0.8); opacity: 0; }
}

/* --- UI KARTLARI --- */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 15px;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.glass-card:hover { transform: translateY(-5px); background: rgba(15, 23, 42, 0.8); }

.btn-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white; border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: 0.3s;
}
.btn-gradient-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6); color: white; }

/* --- FOOTER --- */
.footer-premium {
    background-color: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding-top: 40px;
    margin-top: auto;
    border-top: none;
    font-size: 0.95rem;
}
.footer-brand { font-size: 2rem; font-weight: 800; color: white; letter-spacing: -1px; display: inline-block; margin-bottom: 1rem; }
.footer-title { color: white; font-weight: 700; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-link { 
    color: rgba(255,255,255,0.6); 
    text-decoration: none; 
    display: block; 
    margin-bottom: 0.8rem; 
    transition: 0.3s; 
}
.footer-link:hover { color: var(--primary-glow); transform: translateX(5px); }

.social-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: white;
    transition: 0.3s;
    margin-right: 10px;
    text-decoration: none;
}
.social-icon:hover { background: var(--primary); transform: translateY(-3px); }

.app-badge-sm {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 8px 15px;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}
.app-badge-sm:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }
/* --- SITE HEADER (Global Menü) --- */
.site-header {
    background-color: var(--dark-bg); /* Menü her zaman koyu zemin */
    position: relative;
    z-index: 100;
}

/* Hero Section Güncellemesi (Artık Header içinde değil) */
.hero-wrapper {
    position: relative;
    background-color: var(--dark-bg);
    color: white;
    padding-bottom: 120px;
    padding-top: 50px; /* Menüden ayrıldığı için üst boşluk */
    overflow: hidden;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    margin-top: -1px; /* Menü ile çizgi oluşmaması için */
}

/* --- FOOTER MENU DÜZELTMELERİ (WordPress Uyumu) --- */

/* Footer Sütun Menüleri (ul > li > a) */
.footer-menu {
    padding: 0;
    margin: 0;
}
.footer-menu li {
    margin-bottom: 0.8rem;
}
.footer-menu li a {
    color: rgba(255,255,255,0.6); 
    text-decoration: none; 
    display: block; 
    transition: 0.3s;
    font-size: 0.95rem;
}
.footer-menu li a:hover {
    color: var(--primary-glow);
    transform: translateX(5px);
}

/* Footer Alt Kısım Menüsü (Yatay Menü) */
.footer-bottom-menu {
    display: inline-block;
}
.footer-bottom-menu li {
    display: inline-block;
    margin-left: 1rem;
}
.footer-bottom-menu li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}
.footer-bottom-menu li a:hover {
    color: white;
}
/* --- DROPDOWN MENU TASARIMI (Premium Dark) --- */

/* Dropdown Kutusu */
.dropdown-menu {
    background: rgba(15, 23, 42, 0.95); /* Koyu Lacivert/Siyah */
    backdrop-filter: blur(15px); /* Cam efekti */
    border: 1px solid rgba(255, 255, 255, 0.15); /* İnce beyaz çerçeve */
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 200px;
    margin-top: 15px !important; /* Menüden biraz aşağıda dursun */
}

/* Dropdown Linkleri */
.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Link Hover Durumu */
.dropdown-item:hover, 
.dropdown-item:focus {
    background: var(--primary); /* Mavi arka plan */
    color: white;
    transform: translateX(5px); /* Sağa kayma efekti */
}

/* Dropdown Oku (Navbarda aşağı bakan ok) */
.nav-link.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: 0.15em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    opacity: 0.7;
    transition: 0.3s;
}
.nav-link.dropdown-toggle.show::after {
    transform: rotate(180deg); /* Açılınca ok dönsün */
}

/* --- ANIMASYON (Fade Up) --- */
.dropdown-menu.fade-up {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Bootstrap 'show' class'ı eklediğinde çalışacak animasyon */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobilde Dropdown Ayarları */
@media (max-width: 991px) {
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.05); /* Mobilde daha şeffaf */
        border: none;
        margin-top: 0 !important;
    }
    .dropdown-item {
        color: white;
    }
}
/* --- HOVER MENÜ AYARI (Sadece Masaüstü) --- */
@media (min-width: 992px) {
    /* Menü elemanının (li) üzerine gelince alt menüyü göster */
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Aradaki boşlukta farenin kaybolmaması için köprü */
    .navbar .dropdown > .dropdown-menu {
        margin-top: 0; /* Menüyü yukarı çekip boşluğu kapatalım */
    }
    
    /* İstersen menüyü biraz aşağı itmek için margin yerine padding verelim */
    .navbar .dropdown:hover > .dropdown-menu {
        margin-top: 10px; /* Görsel boşluk */
    }
    
    /* Önemli: Menü ile Link arasına görünmez bir köprü kuralım ki mouse kaçmasın */
    .navbar .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -15px; /* Menünün üstünden 15px yukarı taşar */
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
    }
}