/**
 * Harabat Turizm - Genel Stil ve Tasarım Sistemi (Vanilla CSS)
 * Modern, Hızlı, Premium Görünüm ve RTL Uyumlu
 */

/* 1. TASARIM DEĞİŞKENLERİ VE TOKENS */
:root {
    --primary-color: #ed1c24;
    --primary-hover: #d1171d;
    --primary-rgb: 237, 28, 36;
    --dark-color: #191b20;
    --dark-rgb: 25, 27, 32;
    --bg-light: #f7f7f8;
    --text-color: #22252a;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. GENEL SIFIRLAMA VE TYPOGRAPHY */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-display);
    font-weight: 700;
}

/* Satır yüksekliği ve okunaklılık */
.leading-relaxed { line-height: 1.75 !important; }
.leading-normal { line-height: 1.5 !important; }
.lh-1-2 { line-height: 1.2 !important; }

/* Font boyutu kısaltmaları */
.fs-7 { font-size: 0.9rem !important; }
.fs-8 { font-size: 0.8rem !important; }
.fs-9 { font-size: 0.72rem !important; }
.fs-10 { font-size: 0.6rem !important; }
.fw-extrabold { font-weight: 800 !important; }

/* Renk Değişiklikleri */
.text-primary {
    color: var(--primary-color) !important;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}
.bg-dark {
    background-color: var(--dark-color) !important;
}

/* 3. ARAYÜZ BİLEŞENLERİ (INTERACTION ELEMENTS) */
.transition {
    transition: var(--transition-normal);
}

.hover-up:hover {
    transform: translateY(-5px);
}

.hover-white:hover {
    color: #fff !important;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Buton Tasarımları */
.btn {
    font-family: var(--font-display);
    font-weight: 600;
    transition: var(--transition-normal);
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}
.btn-outline-dark {
    border-color: var(--dark-color);
    color: var(--dark-color);
}
.btn-outline-dark:hover {
    background-color: var(--dark-color);
    color: #fff;
}

/* 4. HEADER VE NAVBAR */
.topbar {
    z-index: 1025;
}

.navbar-wrapper {
    z-index: 1020;
    box-shadow: var(--shadow-sm);
}

.logo-img {
    height: 75px;
    width: auto;
    transition: var(--transition-normal);
}

@media (min-width: 992px) {
    .logo-img {
        height: 90px;
        position: relative;
        z-index: 1030;
    }
}

/* Navigasyon Linkleri */
.navbar-nav .nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--dark-color);
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Mega Dropdown Menü */
.dropdown-mega {
    position: static !important;
}

.dropdown-mega .dropdown-menu-mega {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0;
    border-radius: var(--radius-xl) !important;
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Mega Menü Hizmet Kartları */
.mega-item {
    background-color: transparent;
    border: 1px solid transparent;
}
.mega-item:hover {
    background-color: var(--bg-light);
    border-color: rgba(0, 0, 0, 0.03);
}
.mega-item:hover .transition-color {
    color: var(--primary-color) !important;
}

/* Dil Seçici */
.lang-switcher {
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.lang-btn {
    font-size: 11px;
    height: 28px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}
.lang-btn:hover {
    color: var(--dark-color);
}

/* 5. HERO ALANI TASARIMI */
.hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.04) 0%, transparent 60%);
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.circle-1 { width: 300px; height: 300px; top: -50px; left: -100px; }
.circle-2 { width: 450px; height: 450px; bottom: -150px; right: -100px; }
.circle-3 { width: 400px; height: 400px; top: 10%; right: -200px; }
.circle-4 { width: 600px; height: 600px; bottom: -300px; left: -200px; }

.hero-image-container {
    padding: 20px;
}
.hero-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 40px;
    left: 40px;
    opacity: 0.1;
    z-index: 0;
}
.hero-main-img {
    max-height: 450px;
    object-fit: cover;
}

.stat-card {
    border: 1px solid rgba(0,0,0,0.02);
}

/* 6. HİZMETLER BÖLÜMÜ VE KARTLARI */
.service-card {
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
}
.service-card-img-wrapper img {
    transition: var(--transition-normal);
}
.service-card:hover .service-card-img-wrapper img {
    transform: scale(1.08);
}
.service-card:hover .service-card-title {
    color: var(--primary-color) !important;
}

/* 7. SÜREÇ ADIMLARI (PROCESS CARDS) */
.process-row::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: rgba(var(--primary-rgb), 0.2);
    z-index: 0;
    display: none;
}
@media (min-width: 992px) {
    .process-row::before {
        display: block;
    }
}
.process-card {
    position: relative;
    z-index: 1;
}

/* 8. CTA BANNER VE İLETİŞİM */
.cta-circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
.cta-c1 { width: 250px; height: 250px; top: -100px; right: -50px; }
.cta-c2 { width: 350px; height: 350px; bottom: -150px; left: -100px; }

.contact-info-card {
    border: 1px solid rgba(0,0,0,0.02);
}

.map-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 9. BREADCRUMBS VE BANNERS */
.page-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2a2e38 100%) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3) !important;
}
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, "/");
}

.breadcrumb {
    font-size: 13px;
}
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: var(--transition-fast);
}
.breadcrumb-item a:hover {
    color: #fff !important;
}
.breadcrumb-item.active {
    color: var(--primary-color) !important;
}

/* Card and Feature Icon Background Fixes */
.card-icon, .feature-icon {
    background-color: rgba(237, 28, 36, 0.1) !important;
    color: var(--primary-color) !important;
}

/* 10. SAĞDAN SOLA (RTL) ÖZELLEŞTİRMELERİ */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .me-1,
html[dir="rtl"] .me-2,
html[dir="rtl"] .me-3 {
    margin-right: 0 !important;
}
html[dir="rtl"] .ms-1 { margin-left: 0.25rem !important; }
html[dir="rtl"] .ms-2 { margin-left: 0.5rem !important; }
html[dir="rtl"] .ms-3 { margin-left: 1rem !important; }

/* RTL Mega Dropdown overrides */
html[dir="rtl"] .dropdown-toggle::after {
    margin-right: 0.255em;
    margin-left: 0;
}

html[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

html[dir="rtl"] .list-unstyled {
    padding-right: 0;
}

html[dir="rtl"] .step-badge-dot {
    right: -26px !important;
    left: auto !important;
}

html[dir="rtl"] .service-steps .position-relative {
    border-right: 3px solid var(--border-color) !important;
    border-left: none !important;
    padding-right: 1.5rem !important;
    padding-left: 0 !important;
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .info-icon {
    order: 2;
}

html[dir="rtl"] .contact-info-card {
    text-align: right;
}

/* 11. RESPONSIVE DÜZENLEMELER */
@media (max-width: 991.98px) {
    .dropdown-menu-mega {
        background-color: var(--bg-light) !important;
        box-shadow: none !important;
    }
    .dropdown-menu-mega .col-lg-4 {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
        margin-bottom: 15px;
    }
    .hero-image-container {
        margin-top: 30px;
    }
    .hero-image-bg {
        display: none;
    }
    .navbar-collapse {
        background-color: #fff;
        padding: 20px;
        border-radius: var(--radius-lg);
        margin-top: 15px;
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        padding: 5px 0;
    }
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .lang-switcher {
        margin-top: 10px;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
}

/* 12. FLOATING WHATSAPP WIDGET (LEFT CORNER TREND) */
.floating-whatsapp {
    position: fixed;
    left: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    z-index: 9999;
    font-size: 30px;
    text-decoration: none;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.4;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    left: 75px;
    background-color: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: var(--transition-normal);
    pointer-events: none;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    left: 70px;
}

