/* TND - Global CSS Variables & Animations */
:root {
    --tnd-navy: #1a2a40;
    --tnd-gold: #C8A951;
    --tnd-cream: #F4F7F9;
    --z-nav: 50;
    --z-modal: 100;
    --z-toast: 200;
    --z-tooltip: 300;
}
/* Smooth font rendering */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Hero animasyonları */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes truckMove {
    0%   { transform: translateX(-20px); }
    50%  { transform: translateX(20px); }
    100% { transform: translateX(-20px); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.animate-fadeInUp   { animation: fadeInUp 0.6s ease-out both; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease-out both; }
.animate-slideInLeft  { animation: slideInLeft 0.6s ease-out both; }
.animate-slideInRight { animation: slideInRight 0.6s ease-out both; }
.animate-truck-move   { animation: truckMove 4s ease-in-out infinite; }
.animate-fadeIn       { animation: fadeIn 0.4s ease-out both; }
/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
/* Form focus güzelleştirmesi */
input:focus, textarea:focus, select:focus {
    outline: none;
}
/* Toast container */
#tnd-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
/* Loader */
.tnd-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--tnd-gold);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}
/* xs breakpoint (Tailwind <640px helper) */
@media (min-width: 480px) {
    .xs\:block { display: block; }
    .xs\:inline { display: inline; }
}
/* RichTextEditor */
.rte-toolbar button {
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.rte-toolbar button:hover {
    background: #f9fafb;
}
.rte-content {
    min-height: 200px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
}
.rte-content:focus {
    border-color: var(--tnd-gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.1);
}
/* WhatsApp widget gizleme yardımcısı */
.wa-hidden { display: none !important; }
/* SADECE MOBIL - Sehir grid ve kart duzenlemeleri */
@media (max-width: 640px) {
    /* Sehir grid - koyu yari saydam arka plan, modern */
    #city-grid {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 0;
    }
    #city-grid > div {
        max-height: 22vh;
        min-height: 70px;
        overflow-y: auto;
        background: rgba(15, 25, 38, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 8px 10px;
        gap: 4px 5px;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
    }
    /* Scrollbar */
    #city-grid > div::-webkit-scrollbar {
        width: 3px;
        height: 3px;
    }
    #city-grid > div::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 4px;
    }
    #city-grid > div::-webkit-scrollbar-thumb {
        background: rgba(200,169,81,0.3);
        border-radius: 4px;
    }
    /* Sehir butonlari */
    #city-grid button {
        font-size: 11px;
        padding: 3px 6px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
        flex-shrink: 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    #city-grid button:hover,
    #city-grid button:active {
        background: rgba(200, 169, 81, 0.15);
        border-color: rgba(200, 169, 81, 0.3);
    }
    /* Sehir karti - mobilde bottom sheet gibi, daha kompakt */
    #city-card {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: 50vh;
        border-radius: 16px 16px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    #city-card > div:first-child {
        padding: 10px 14px;
    }
     #cc-content {
        max-height: calc(50vh - 55px);
        padding: 10px 14px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #cc-content::-webkit-scrollbar {
        width: 4px;
    }
    #cc-content::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 4px;
    }
    #cc-content::-webkit-scrollbar-thumb {
        background: rgba(200,169,81,0.3);
        border-radius: 4px;
    }
    
}
/* Print */
@media print {
    .no-print { display: none !important; }
}