/**
 * HAT TEL - Modern Kurumsal Tasarım Stili
 * Renk Paleti: Hat Tel Turuncu (#ff7700 / #f97316), Çelik Koyu Arduvaz (#0f172a / #1e293b), Nötr Stüdyo Zemin (#f8fafc)
 * Çift Tema (Light / Dark) Desteği
 */

:root {
    --ht-primary: #ff7700;
    --ht-primary-hover: #e06500;
    --ht-primary-light: #fff4ea;
    --ht-secondary: #0f172a;
    --ht-secondary-light: #1e293b;
    --ht-accent: #10b981;
    --ht-body-bg: #f8fafc;
    --ht-card-bg: #ffffff;
    --ht-text-main: #1e293b;
    --ht-text-muted: #64748b;
    --ht-border-color: #e2e8f0;
    --ht-header-bg: #ffffff;
    --ht-topbar-bg: #0f172a;
    --ht-footer-bg: #0b1120;
    --ht-card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --ht-card-hover: 0 20px 30px -10px rgba(255, 119, 0, 0.15), 0 10px 10px -5px rgba(15, 23, 42, 0.05);
}

[data-bs-theme="dark"] {
    --ht-body-bg: #0b1120;
    --ht-card-bg: #131c31;
    --ht-text-main: #f1f5f9;
    --ht-text-muted: #94a3b8;
    --ht-border-color: #243049;
    --ht-header-bg: #0f172a;
    --ht-topbar-bg: #060911;
    --ht-footer-bg: #060911;
    --ht-primary-light: rgba(255, 119, 0, 0.15);
    --ht-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --ht-card-hover: 0 20px 30px -10px rgba(255, 119, 0, 0.25);
}

body {
    background-color: var(--ht-body-bg);
    color: var(--ht-text-main);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 1. Üst İletişim Barı (TopBar) */
.ht-topbar {
    background-color: var(--ht-topbar-bg);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ht-topbar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ht-topbar a:hover {
    color: var(--ht-primary);
}
.ht-topbar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    margin-left: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}
.ht-topbar .social-links a:hover {
    background: var(--ht-primary);
    transform: translateY(-2px);
}

/* 2. Ana Navigasyon (Navbar) */
.ht-navbar {
    background-color: var(--ht-header-bg);
    border-bottom: 1px solid var(--ht-border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 12px 0;
    transition: all 0.3s ease;
}
.ht-navbar.sticky-top {
    backdrop-filter: blur(10px);
}
.ht-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.ht-nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ht-text-main) !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.ht-nav-link:hover, .ht-nav-link.active {
    color: var(--ht-primary) !important;
    background-color: var(--ht-primary-light);
}
.ht-dropdown-menu {
    border: 1px solid var(--ht-border-color);
    background-color: var(--ht-card-bg);
    box-shadow: var(--ht-card-shadow);
    border-radius: 12px;
    padding: 10px;
    min-width: 250px;
}
.ht-dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ht-text-main);
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.ht-dropdown-item:hover {
    background-color: var(--ht-primary-light);
    color: var(--ht-primary);
    transform: translateX(4px);
}

/* 3. Butonlar & Vurgular */
.btn-ht-primary {
    background-color: var(--ht-primary);
    border-color: var(--ht-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(255, 119, 0, 0.3);
    transition: all 0.25s ease;
}
.btn-ht-primary:hover {
    background-color: var(--ht-primary-hover);
    border-color: var(--ht-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 119, 0, 0.45);
}
.btn-ht-secondary {
    background-color: var(--ht-secondary);
    border-color: var(--ht-secondary);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-ht-secondary:hover {
    background-color: var(--ht-secondary-light);
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-ht-outline {
    background-color: transparent;
    border: 2px solid var(--ht-primary);
    color: var(--ht-primary);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-ht-outline:hover {
    background-color: var(--ht-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* 4. 16:9 Stüdyo Görsel Standardı */
.ht-img-ratio-16-9 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f1f5f9;
    border-radius: 10px;
}
[data-bs-theme="dark"] .ht-img-ratio-16-9 {
    background-color: #1e293b;
}
.ht-img-ratio-16-9 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s ease;
}
.ht-card:hover .ht-img-ratio-16-9 img {
    transform: scale(1.04);
}

/* 5. Kartlar ve Bileşenler */
.ht-card {
    background-color: var(--ht-card-bg);
    border: 1px solid var(--ht-border-color);
    border-radius: 14px;
    box-shadow: var(--ht-card-shadow);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ht-card:hover {
    box-shadow: var(--ht-card-hover);
    transform: translateY(-4px);
    border-color: var(--ht-primary);
}
.ht-badge {
    background-color: var(--ht-primary-light);
    color: var(--ht-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 6. Hero Slider */
.ht-hero-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ht-card-shadow);
}
.ht-hero-slide-item {
    position: relative;
    height: 520px;
    background-size: cover;
    background-position: center;
}
.ht-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(15, 23, 42, 0.2) 100%);
    display: flex;
    align-items: center;
}

/* 7. 3D Canvas Alanı */
#ht-3d-canvas-container {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}
.ht-canvas-controls {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 8. Hesaplayıcı Kutusu */
.ht-calculator-box {
    background: linear-gradient(135deg, var(--ht-card-bg) 0%, var(--ht-primary-light) 100%);
    border: 2px solid var(--ht-primary);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--ht-card-hover);
}
.ht-calc-result-card {
    background-color: var(--ht-secondary);
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 9. Alt Bilgi (Footer) */
.ht-footer {
    background-color: var(--ht-footer-bg);
    color: #cbd5e1;
    padding: 70px 0 25px 0;
    border-top: 3px solid var(--ht-primary);
}
.ht-footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}
.ht-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--ht-primary);
    border-radius: 2px;
}
.ht-footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}
.ht-footer a:hover {
    color: var(--ht-primary);
    padding-left: 4px;
}
.ht-footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #94a3b8;
}

/* 9.1 Koyu Zeminlerde Açık Renk Modu Kontrast Standartları */
.ht-calc-result-card,
[style*="#0f172a"],
[style*="#1e293b"],
.ht-hero-overlay {
    color: #ffffff;
}

.ht-calc-result-card small,
.ht-calc-result-card .text-light-emphasis,
.ht-calc-result-card .text-muted,
.ht-footer small,
.ht-footer .text-light-emphasis,
.ht-footer .text-muted,
.ht-hero-overlay .text-light-emphasis,
.ht-hero-overlay .text-muted,
[style*="#0f172a"] small,
[style*="#0f172a"] .text-light-emphasis,
[style*="#0f172a"] .text-muted,
[style*="#1e293b"] small,
[style*="#1e293b"] .text-light-emphasis,
[style*="#1e293b"] .text-muted,
.text-white .text-light-emphasis,
.text-white .text-muted {
    color: #cbd5e1 !important;
}

.ht-calc-result-card .text-white-50,
.ht-footer .text-white-50,
[style*="#0f172a"] .text-white-50,
[style*="#1e293b"] .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.ht-footer .badge.bg-secondary {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 10. WhatsApp Hızlı Destek Butonu */
.ht-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.ht-whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* 11. Mobil Uyumluluk ve Taşma Önleme (Zero Horizontal Scroll) */
@media (max-width: 768px) {
    .ht-hero-slide-item {
        height: 420px;
    }
    .ht-topbar {
        text-align: center;
    }
    .ht-topbar .social-links {
        justify-content: center;
        margin-top: 5px;
    }
    #ht-3d-canvas-container {
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

