/* Theme Styles - Dark/Light Mode */
/* İkbal Kocaeli - Gelişmiş tema stilleri */

/* ============================================
   ROOT VARIABLES - Kolay özelleştirme için
   ============================================ */

:root {
    /* Light Mode Colors - AÇIK ARKA PLAN, KOYU YAZI */
    --bg-primary: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-input: #ffffff;
    
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #757575;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-focus: #B87333;
    
    --accent-primary: #B87333;
    --accent-secondary: #D4A574;
    --accent-gradient: linear-gradient(135deg, #B87333 0%, #D4A574 100%);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Variables - KOYU ARKA PLAN, AÇIK YAZI */
.dark-mode {
    --bg-primary: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
    --bg-secondary: rgba(10, 14, 26, 0.95);
    --bg-card: rgba(26, 31, 53, 0.8);
    --bg-input: #1a1f35;
    
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: #ff6b35;
    
    --accent-primary: #ff6b35;
    --accent-secondary: #ff8c61;
    --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%);
}

.dark-mode select, 
.dark-mode select option {
    background-color: #1a1f35 !important;
    color: #ffffff !important;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.5em;
    transition: color 0.3s ease;
}

p, span, div {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Logo Styles */
.header-logo {
    height: 72px;
    width: auto;
    transition: all 0.3s ease;
}

/* Dark mode'da normal SVG (beyaz yazı, turuncu yaprak/kare) */
.dark-mode .header-logo {
    /* JavaScript tarafından yönetiliyor */
}

/* Light mode'da logo (siyah yazı, turuncu yaprak/kare) */
body:not(.dark-mode) .header-logo {
    /* JavaScript tarafından yönetiliyor */
}

/* Gradient Text */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block; /* Chrome'da kutu hesaplama hatasını önler */
    line-height: 1.25;      /* Metinlerin üst üste binmesini önler */
    padding-bottom: 0.1em;
    padding-top: 0.1em;    /* Üstten de pay bırakarak kesilmeyi önler */
    vertical-align: middle;
}

/* Light mode'da gradient text - daha koyu ve belirgin */
body:not(.dark-mode) .gradient-text {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #D2691E 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 900 !important; /* Daha kalın */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Daha hafif gölge (Chrome render dostu) */
    display: inline-block !important;
    line-height: 1.25 !important;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.cargo-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cargo-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.tracking-widget {
    background: var(--bg-secondary);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dark-mode nav {
    background: rgba(26, 32, 44, 0.8);
}

/* Light mode navigation - BEYAZ arka plan + glassmorphism */
body:not(.dark-mode) nav {
    background: rgba(255, 255, 255, 0.85) !important; /* Hafif şeffaf beyaz */
    backdrop-filter: blur(12px) saturate(180%) !important; /* Glassmorphism efekti */
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); /* Çok hafif gölge */
}

body:not(.dark-mode) nav a {
    color: #000000 !important; /* Menü yazıları tam siyah */
    font-weight: 600;
}

body:not(.dark-mode) nav a:hover {
    color: #B87333 !important;
}

nav a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-primary);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

input,
textarea,
select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--border-focus);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
    box-shadow: 0 0 0 3px rgba(221, 107, 32, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */

button,
.btn {
    transition: all 0.3s ease;
}

.btn-primary,
button[type="submit"] {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    transition: background 0.3s ease;
}

.bg-section-alt {
    background: var(--bg-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #ffffff !important; /* Gündüz bembeyaz */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dark-mode footer {
    background: rgba(5, 8, 15, 0.98) !important;
    border-top: 1px solid rgba(184, 115, 51, 0.2);
}

/* Light mode footer - glassmorphism */
body:not(.dark-mode) footer {
    background: rgba(255, 255, 255, 0.88) !important; /* Hafif şeffaf beyaz */
    backdrop-filter: blur(10px) saturate(160%) !important; /* Glassmorphism efekti */
    -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03); /* Yukarı doğru hafif gölge */
}

/* Dark mode footer - glassmorphism */
.dark-mode footer {
    background: rgba(5, 8, 15, 0.85) !important;
    backdrop-filter: blur(10px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
    border-top: 1px solid rgba(184, 115, 51, 0.15) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Light mode footer text - Siyah */
footer p, footer li, footer div, footer span {
    color: #000000 !important; /* Tam siyah */
    font-weight: 500;
}

/* Dark mode footer text - Beyaz */
.dark-mode footer p, 
.dark-mode footer li, 
.dark-mode footer div, 
.dark-mode footer span {
    color: #ffffff !important; /* Tam beyaz */
}

footer a {
    color: #1a1a1a !important;
}

.dark-mode footer a {
    color: #ffffff !important;
}

footer a:hover {
    color: #ea580c !important;
}

.dark-mode footer a:hover {
    color: #ff6b35 !important;
}

footer h4 {
    color: #c2410c !important; /* Daha koyu turuncu */
    font-weight: 800 !important;
}

.dark-mode footer h4 {
    color: #ff8c61 !important; /* Açık turuncu */
}

/* ============================================
   SPECIAL ELEMENTS
   ============================================ */

/* Video Overlay */
.video-overlay {
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.dark-mode .video-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Network Nodes */
.network-node {
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Stats Cards */
.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Dark mode için özel stiller */
.dark-mode {
    /* Background TAMAMEN farklı */
    background: var(--bg-primary) !important;
}

.dark-mode body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Light mode için text override */
body:not(.dark-mode) {
    color: #1a1a1a !important;
}

body:not(.dark-mode) .text-orange-400,
body:not(.dark-mode) .text-orange-300,
body:not(.dark-mode) .text-orange-500 {
    color: #c2410c !important; /* Çok daha koyu turuncu */
    font-weight: 700 !important;
}

body:not(.dark-mode) .text-gray-300,
body:not(.dark-mode) .text-gray-400 {
    color: #1f2937 !important; /* Resmen siyah yapıyoruz ki okunsun */
}

body:not(.dark-mode) p, 
body:not(.dark-mode) span:not(.counter) {
    color: #1a1a1a !important; /* Resmen siyah yapıyoruz ki okunsun */
}

body:not(.dark-mode) .bg-opacity-30,
body:not(.dark-mode) .bg-black.bg-opacity-20 {
    background-color: rgba(0, 0, 0, 0.05) !important; /* Griliği azaltıp beyazlığa yaklaştırıyoruz */
}

body:not(.dark-mode) p,
body:not(.dark-mode) span,
body:not(.dark-mode) div {
    color: #4a4a4a;
}

body:not(.dark-mode) h1,
body:not(.dark-mode) h2,
body:not(.dark-mode) h3,
body:not(.dark-mode) h4 {
    color: #1a1a1a !important;
}

/* Light mode video overlay - daha koyu */
body:not(.dark-mode) .video-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Dark mode'da section'lar */
.dark-mode section {
    background: transparent;
}

.dark-mode .bg-black {
    background: rgba(10, 14, 26, 0.9) !important;
}

/* Dark mode'da text'ler - BEYAZ */
.dark-mode .text-gray-300 {
    color: #e0e0e0 !important;
}

.dark-mode .text-gray-400 {
    color: #c0c0c0 !important;
}

.dark-mode .text-gray-500 {
    color: #a0a0a0 !important;
}

/* Dark mode'da butonlar - TURUNCU */
.dark-mode .bg-orange-600 {
    background: #ff6b35 !important;
}

.dark-mode .bg-orange-600:hover {
    background: #ff5722 !important;
}

.dark-mode .border-orange-600 {
    border-color: #ff6b35 !important;
}

.dark-mode .hover\\:bg-orange-600:hover {
    background: #ff6b35 !important;
}

.dark-mode .hover\\:bg-orange-700:hover {
    background: #ff5722 !important;
}

/* Dark mode'da navigation - SİYAH */
.dark-mode nav {
    background: rgba(10, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .text-orange-300 {
    color: #ff8c61 !important;
}

.dark-mode .text-orange-400 {
    color: #ff6b35 !important;
}

.dark-mode .hover\\:text-orange-300:hover {
    color: #ff8c61 !important;
}

/* Dark mode'da kartlar - KOYU MAVİ */
.dark-mode .cargo-card {
    background: rgba(26, 31, 53, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .tracking-widget {
    background: rgba(10, 14, 26, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark mode'da footer - SİYAH */
.dark-mode footer {
    background: rgba(5, 8, 15, 0.98) !important;
    border-top-color: rgba(184, 115, 51, 0.2) !important;
}

/* Dark mode'da hero subtitle - sadece text-shadow ile okunabilir */
.dark-mode #hero-subtitle {
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 1),
        0 4px 20px rgba(0, 0, 0, 0.9),
        0 6px 30px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 0, 0, 0.7) !important;
    font-weight: 600 !important;
}

/* Light mode'da hero subtitle - sadece text-shadow */
body:not(.dark-mode) #hero-subtitle {
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 0, 0, 0.5) !important;
    font-weight: 600 !important;
}

/* Dark mode'da gradient text - TURUNCU */
.dark-mode .gradient-text {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ============================================
   PROSE (İçerik Alanları)
   ============================================ */

.prose {
    color: var(--text-secondary);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: var(--text-primary);
}

.prose a {
    color: var(--accent-primary);
}

.prose a:hover {
    color: var(--accent-secondary);
}

.prose strong {
    color: var(--text-primary);
}

.prose code {
    background: var(--bg-input);
    color: var(--accent-primary);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
}

.prose pre {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
}

.prose blockquote {
    border-left: 4px solid var(--accent-primary);
    background: var(--bg-card);
    padding: 1rem;
}

/* ============================================
   TABLES
   ============================================ */

table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

thead {
    background: var(--bg-secondary);
}

th {
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background: var(--bg-secondary);
}

/* ============================================
   MODALS & POPUPS
   ============================================ */

.modal,
.popup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* ============================================
   SCROLLBAR (Webkit)
   ============================================ */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   UTILITIES
   ============================================ */

.bg-blur {
    backdrop-filter: blur(10px);
}

.border-accent {
    border-color: var(--accent-primary);
}

.text-accent {
    color: var(--accent-primary);
}

.shadow-accent {
    box-shadow: 0 0 20px var(--accent-primary);
}

/* WhatsApp enabled butonlar */
.whatsapp-enabled {
    position: relative;
    transition: all 0.3s ease;
}

.whatsapp-enabled:hover {
    transform: translateY(-2px);
}

.whatsapp-enabled::after {
    content: '💬';
    position: absolute;
    right: -8px;
    top: -8px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-enabled:hover::after {
    opacity: 1;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    :root {
        --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.2);
        --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
    
    .dark-mode {
        --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.4);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .gradient-text {
        -webkit-text-fill-color: black !important;
    }
    
    nav,
    footer,
    button,
    .network-node {
        display: none !important;
    }
}


/* ============================================
   ÖZEL SAYFA DÜZELTMELERİ
   ============================================ */

/* Hizmet Noktaları Haritası - Her iki modda da karanlık */
#map-container {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
}

/* Video bölümleri - Light Mode için koyu overlay */
body:not(.dark-mode) .video-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

body:not(.dark-mode) .hero-video-container .video-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Hero section'lar - Light Mode */
body:not(.dark-mode) section.relative.min-h-screen {
    position: relative;
}

body:not(.dark-mode) section.relative.min-h-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5) !important; /* Koyu overlay'e geri dönüyoruz - Videolar için en iyisi */
    z-index: 1;
    pointer-events: none;
}

/* Hero Description Text */
.hero-description {
    color: #ffedd5 !important; /* Soft light orange / Creamy white */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    font-weight: 500;
    line-height: 1.6;
}

body:not(.dark-mode) .hero-description {
    color: #fff7ed !important; /* Slightly lighter for light mode overlay */
    text-shadow: 0 2px 12px rgba(0, 0, 0, 1);
}

/* Hero section içindeki başlıklar her zaman belirgin olsun */
section.relative.min-h-screen .gradient-text {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body:not(.dark-mode) section.relative.min-h-screen .relative.z-10 {
    z-index: 10 !important;
}

/* Hero Title - Desktop sola kaydırma */
@media (min-width: 768px) {
    #hero-title {
        margin-left: -8rem !important;
    }
}

/* Mobil - Küçük ekranlar için font küçültme ve harf aralığı düzeltme */
@media (max-width: 375px) {
    .wow.animate__fadeInRight h2 {
        font-size: 0.75rem !important;
        letter-spacing: 0.15em !important;
        line-height: 1.8 !important; /* Harflerin birbirine değmesini engeller */
        margin-bottom: 1.5rem !important; /* Altındaki başlık ile mesafeyi açar */
    }
    
    .wow.animate__fadeInRight h3 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
}
