/* ==========================================================================
   OKYMAP - İSTANBUL ULAŞIM REHBERİ
   VERSION: 5.0 (ULTIMATE FIXED EDITION)
   DEVELOPED BY: SELAHATTIN & GEMINI
   ========================================================================== */

/* --- 1. MODERN DEĞİŞKENLER & TEMA AYARLARI --- */
:root {
    --primary-color: #FF8C00;
    --primary-gradient: linear-gradient(135deg, #FF8C00 0%, #FF5E00 100%);
    --bg-color: #f8fafc;           /* Açık Tema Arka Plan */
    --text-color: #1e293b;         /* Koyu Antrasit Yazı */
    --text-light: #64748b;         /* Gri Yardımcı Yazı */
    --card-bg: #ffffff;            /* Kart Rengi */
    --nav-bg: rgba(255, 255, 255, 0.95); /* Menü Arka Planı (Biraz daha opak) */
    --border-color: #e2e8f0;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(255, 140, 0, 0.15);
}

/* Koyu Mod (Dark Mode) Ayarları */
[data-theme="dark"] {
    --bg-color: #0f172a;           /* Derin Gece Mavisi */
    --text-color: #f1f5f9;         /* Kırık Beyaz Yazı */
    --text-light: #94a3b8;
    --card-bg: #1e293b;            /* Koyu Kart Rengi */
    --nav-bg: rgba(15, 23, 42, 0.95);
    --border-color: #334155;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.5);
}

/* --- 2. GENEL SIFIRLAMA VE TEMEL AYARLAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden; /* Yanlardan taşmayı engelle */
}

/* --- 3. HEADER (ÜST MENÜ) TASARIMI --- */
.main-header {
    width: 100%;
    height: 100px; /* GÜNCELLENDİ: Header daha yüksek ve tok duruyor */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nav-bg);
    backdrop-filter: blur(12px); /* Cam efekti */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Alanı */
.brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

/* GÜNCELLENDİ: Logo Kutusu BÜYÜTÜLDÜ */
.nav-logo-box {
    width: 75px; /* 60px'den 75px'e çıkarıldı */
    height: 75px;
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.nav-logo-box:hover {
    transform: scale(1.05);
}

.nav-logo-img {
    width: 50px; /* Logo görseli büyüdü */
    height: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.8rem; /* Yazı fontu büyüdü */
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Orta Menü Tasarımı */
.nav-menu {
    display: flex;
    gap: 30px;
    background: var(--card-bg);
    padding: 12px 35px; /* Padding artırıldı */
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    transition: 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

/* Sağ Taraf (Butonlar) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    width: 50px; /* Buton biraz büyüdü */
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- 4. ANA KAPSAYICI & HERO METİNLERİ --- */
.app-container {
    width: 90%;
    max-width: 600px;
    margin-top: 40px;
    padding-bottom: 60px;
}

.hero-text {
    text-align: center;
    margin-bottom: 40px;
}

.hero-text h1 {
    font-size: 2.2rem; /* Başlık büyüdü */
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-color);
}

.hero-text p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- 5. GELİŞMİŞ KART TASARIMI --- */
.grid-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.select-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 35px 30px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    
    /* 3D Derinlik Ayarları */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Efektleri */
.select-card:hover {
    box-shadow: 0 20px 40px -10px rgba(255, 140, 0, 0.25);
    border-color: var(--primary-color);
}

/* İkon Kutusu */
.icon-box {
    width: 70px;
    height: 70px;
    background: #ffffff !important; /* Her zaman beyaz */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    flex-shrink: 0;
    transform: translateZ(20px);
    transition: background-color 0.3s ease;
}

.icon-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* ÖNEMLİ: Logo rengini bozan filtre kaldırıldı */
}

/* Hover durumunda İkon Kutusu */
.select-card:hover .icon-box {
    background: var(--primary-color) !important;
}

.select-card:hover .icon-box img {
    transform: scale(1.1);
    /* Logo rengi bozulmasın diye buradaki invert filtresini de kaldırdık */
}

/* Kart Yazıları */
.card-info {
    flex: 1;
    transform: translateZ(30px);
}

.card-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.card-info p {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.select-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    transition: 0.4s;
    pointer-events: none;
    transform: translateZ(-10px);
}

.select-card:hover::after {
    transform: scale(5) translateZ(-10px);
    opacity: 0.08;
}

/* --- 6. GÜNCELLENMİŞ MODERN FORM ELEMANLARI (SELECT BOX FIX) --- */
.glass-form {
    background: var(--card-bg);
    padding: 40px; /* Padding artırıldı */
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    display: block;
}

/* GÜNCELLENMİŞ SELECT KUTUSU */
select {
    width: 100%;
    height: 60px; /* Daha yüksek */
    padding: 0 20px;
    background-color: var(--bg-color);
    
    /* Standart Oku Gizle */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Özel Turuncu Ok Ekle (SVG) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8C00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    
    border: 2px solid var(--border-color);
    border-radius: 18px;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

select:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px); /* Hafif yukarı kalkma efekti */
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
}

.primary-btn {
    width: 100%;
    padding: 22px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.4);
}

/* --- 7. NAVİGASYON BUTONLARI --- */
.flow-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 25px;
    width: 100%;
}

.back-btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px; /* Buton büyüdü */
    height: 55px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
}

.back-btn-circle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* --- 8. ANİMASYON KEYFRAMES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- 9. SONUÇ EKRANI ÖZEL --- */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.route-badge {
    display: inline-block;
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.price-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.price-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 15px 10px;
    border-radius: 16px;
    text-align: center;
}

.price-card.featured {
    border-color: var(--primary-color);
    background: rgba(255, 140, 0, 0.05);
}

.price-type {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

/* --- 10. FOOTER DÜZENLEMESİ --- */
footer {
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-top: auto; /* Footer'ı her zaman en alta iter */
    border-top: 1px solid var(--border-color);
    text-align: center;
    transition: background-color 0.3s ease;
}

/* --- 11. MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .brand-text {
        font-size: 1.4rem;
    }
    
    .login-text {
        display: none;
    }
    
    .login-btn {
        width: 45px;
        height: 45px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .select-card {
        padding: 25px;
        gap: 20px;
    }
    
    /* Mobilde select yazısı sığsın */
    select {
        font-size: 0.95rem;
    }
}

/* --- DİL SEÇİM KUTUSU TASARIMI --- */
.lang-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 15px;
    height: 50px; /* Header ile uyumlu yükseklik */
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.lang-select-wrapper:hover {
    border-color: var(--primary-color);
}

.lang-icon {
    color: var(--primary-color);
    font-size: 1rem;
    margin-right: 8px;
}

.lang-select {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    height: auto;
    width: auto;
    appearance: none;
    outline: none;
    background-image: none;
    box-shadow: none;
}

.lang-select:focus {
    box-shadow: none;
}

.lang-select option {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 10px;
}

/* --- KISA KISA İSTANBUL SLIDER TASARIMI --- */
.knowledge-section {
    margin-top: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.knowledge-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.knowledge-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Yanıp sönen kırmızı canlı nokta */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Slider Alanı */
.slider-container {
    position: relative;
    min-height: 140px; /* Yükseklik sabitleme */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item {
    display: none; /* Varsayılan gizli */
    text-align: center;
    width: 80%;
    animation: fadeEffect 0.5s ease;
}

.slide-item.active {
    display: block; /* Sadece aktif olan görünür */
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.slide-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.slide-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* İleri Geri Butonları */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* Noktalar (Dots) */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
    width: 20px; /* Aktif olan uzasın */
    border-radius: 10px;
}

/* --- MODERN ARA ÇİZGİ --- */
.modern-line {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--border-color), rgba(0, 0, 0, 0));
    margin: 60px 0;
    width: 100%;
}

[data-theme="dark"] .modern-line {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), var(--border-color), rgba(255, 255, 255, 0));
}

/* --- HAKKIMIZDA YAZISI --- */
.about-okymap {
    max-width: 500px;
    margin: 20px auto 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* --- KARTLARIN KALINLIĞI (ŞİŞİRİLDİ) --- */
.select-card {
    padding: 45px 35px; /* Kalınlık arttı */
    min-height: 150px;
}

/* --- SMOOTH SCROLL (Yumuşak Kayma) --- */
html {
    scroll-behavior: smooth;
}

/* --- NAV LİNK AKTİF DURUMU --- */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* ... (Önceki CSS kodlarının aynısı, sadece şuraları güncelle veya ekle) ... */

/* --- SCROLL AYARI: Menü Altında Kalmayı Önler --- */
.scroll-section {
    scroll-margin-top: 110px; /* Header 100px olduğu için 110px boşluk bıraktık */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* İçeriği yatayda ortalar */
}

/* --- ANA KAPSAYICI DÜZENLEME --- */
.app-container {
    width: 95%;
    max-width: 700px; /* Biraz daha genişlettik */
    margin-top: 20px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- KARTLARIN YENİ ETKİLİ HALİ --- */
.grid-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%; /* Tam genişlik */
    justify-items: center; /* Kartları ortalar */
}

.select-card {
    width: 100%; /* Kartlar kapsayıcıyı doldursun */
    padding: 45px 35px; /* Daha dolgun */
    border-radius: 28px;
    background: var(--card-bg);
    border: 2px solid var(--border-color); /* Kenarlık belirginleşti */
    box-shadow: var(--shadow-soft);
}

/* --- AKTİF MENÜ DURUMU --- */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
}

.nav-link.active::after {
    transform: translateX(-50%) scale(1.5) !important; /* Alt nokta büyür */
}

/* --- SLIDER KUTUSU GENİŞLİK FIX --- */
.knowledge-section {
    width: 100%; /* Üstteki kartlarla aynı genişlik */
    min-height: 250px; /* Metin uzunsa kutu daralmasın, sabit bir duruşu olsun */
    margin-top: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- İLETİŞİM BÖLÜMÜ (Yeni Bölüm) --- */
.contact-section {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.contact-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.contact-item i {
    font-size: 1.4rem;
}

/* Hakkımızda Yazısı Profesyonel Tipografi */
.about-okymap p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 400;
    max-width: 650px;
    margin: 30px auto;
    opacity: 0.9;
}

/* Bilgi Slider'ı Font Büyütme */
.slide-content h4 {
    font-size: 1.6rem !important; /* Başlık büyüdü */
    margin-bottom: 15px;
}
.slide-content p {
    font-size: 1.2rem !important; /* Metin büyüdü */
}
.slide-icon {
    width: 70px !important; 
    height: 70px !important;
    font-size: 2rem !important;
}

/* İletişim Kartları Özel Ayar */
.contact-card {
    border-color: var(--primary-color) !important;
    background: var(--card-bg);
}

/* Sayfa Alt Kısmına Farklı Renk Arka Plan (Professional Look) */
#iletisim {
    box-shadow: 0 -20px 50px rgba(0,0,0,0.02);
}
[data-theme="dark"] #iletisim {
    background: rgba(30, 41, 59, 0.5) !important;
}

/* Slider & Bilgi Kutusu Büyütme */
.knowledge-section {
    min-height: 380px !important;
    padding: 50px !important;
}
.slide-content h4 { font-size: 1.7rem !important; margin-bottom: 15px; }
.slide-content p { font-size: 1.2rem !important; line-height: 1.6; }
.slide-icon { width: 75px !important; height: 75px !important; font-size: 2.2rem !important; }

/* İletişim Bölümü Arka Plan */
#iletisim {
    background: var(--nav-bg) !important;
    border-radius: 40px;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}
