/* 
    BİRLİK MAKİNA — GLOBAL COMPONENTS [V3.5]
    Consolidated Styles: Header, Navbar, Dropdown, Footer, Buttons, Badges
*/

/* --- 1. HEADER & TOPBAR --- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Anasayfada şeffaf başlasın */
body.home-page .site-header:not(.scrolled) {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header.scrolled {
    background: rgba(11, 30, 53, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.site-header.scrolled .header-topbar {
    margin-top: -45px; /* Topbar yüksekliği kadar yukarı çekerek gizliyoruz */
    opacity: 0;
    pointer-events: none;
}

.header-topbar {
    background: var(--primary-900);
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s ease;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.topbar-item i {
    color: var(--accent-500);
    font-size: 1rem;
}

.topbar-item:hover {
    color: var(--accent-500);
}

.topbar-sep {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.2);
}

.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-badge {
    background: rgba(232, 88, 15, 0.15);
    color: var(--accent-500);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(232, 88, 15, 0.2);
}

/* --- 2. NAVBAR & NAVIGATION --- */
.navbar {
    padding: 15px 0 25px 0;
    transition: var(--transition-normal);
}

.site-header.scrolled .navbar {
    padding: 8px 0 12px 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 100px;
    width: 100%;
}

.logo-img {
    height: 145px; /* Büyük ve görkemli logo geri geldi */
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1100;
    transition: var(--transition-normal);
}

.site-header.scrolled .logo-img {
    height: 85px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    margin: 0; padding: 0;
    width: max-content;
    z-index: 1000;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 10px 0;
    transition: var(--transition-normal);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Nav link renklerini sabit beyazda tutuyoruz */
.site-header.scrolled .nav-link {
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-link:hover, .nav-link.active { color: var(--accent-500); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent-500);
    transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    width: 250px;
    background: var(--primary-900);
    border-top: 3px solid var(--accent-500);
    box-shadow: var(--shadow-xl);
    padding: 15px 0;
    list-style: none;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 25px;
    color: var(--steel-300);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    padding-left: 30px;
}

/* --- 3. FOOTER --- */
.site-footer {
    background: var(--primary-900);
    padding-top: 80px;
    border-top: 2px solid var(--accent-500);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-col p {
    color: var(--steel-300); /* Daha açık renk */
    margin-bottom: 15px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col p i {
    color: var(--accent-500);
    font-size: 1.1rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--accent-500);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: var(--steel-400);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover { color: var(--accent-500); padding-left: 5px; }

.footer-bottom {
    background: rgba(0,0,0,0.1); /* Çok hafif bir ayrım ama ana renge çok yakın */
    padding: 25px 0;
    color: var(--steel-500);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05); /* Zarif bir ayırıcı çizgi */
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-socials { display: flex; gap: 15px; }
.footer-socials a {
    color: var(--steel-400);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.footer-socials a:hover { color: var(--accent-500); transform: translateY(-3px); }

/* --- 4. PREMIUM BUTTON SYSTEM --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Boyutlar */
.btn-sm  { padding: 8px 18px;  font-size: 0.75rem; }
.btn-md  { padding: 12px 26px; font-size: 0.85rem; }
.btn-lg  { padding: 16px 36px; font-size: 0.95rem; }
.btn-full { width: 100%; }

/* Aksant (Turuncu) — Ana CTA */
.btn-accent {
    background: var(--accent-500);
    color: var(--white);
    border-color: var(--accent-500);
    box-shadow: 0 5px 15px rgba(232, 88, 15, 0.2);
}
.btn-accent:hover {
    background: var(--accent-400);
    border-color: var(--accent-400);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232, 88, 15, 0.35);
}
.btn-accent:active { transform: translateY(-1px); }

/* Birincil (Lacivert) */
.btn-primary {
    background: var(--primary-900);
    color: var(--white);
    border-color: var(--primary-900);
}
.btn-primary:hover {
    background: var(--primary-800);
    border-color: var(--primary-800);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 30, 53, 0.15);
}

/* Outline Beyaz (Koyu Arka Planlar İçin) */
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-900);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Ghost / Outline Dark (Açık Arka Planlar İçin) */
.btn-ghost {
    background: transparent;
    color: var(--primary-900);
    border: 2px solid var(--primary-100);
}
.btn-ghost:hover {
    background: var(--primary-900);
    color: var(--white);
    border-color: var(--primary-900);
    transform: translateY(-3px);
}

/* --- 5. LOGO TICKER --- */
.logo-ticker {
    background: var(--neutral-50); padding: 40px 0;
    border-top: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200); overflow: hidden;
}
.ticker-content { display: flex; gap: 80px; animation: scrollTicker 30s linear infinite; align-items: center; }
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 6. PREMIUM MOBILE HAMBURGER --- */
.hamburger {
    display: none;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    z-index: 2500; /* Daha yüksek bir değer vererek çakışmaları önlüyoruz */
    margin-left: auto;
    transition: all 0.3s ease;
    pointer-events: auto !important; /* Tıklanabilirliği zorunlu kılıyoruz */
}

.hamburger:hover {
    background: var(--accent-500);
    border-color: var(--accent-500);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: absolute;
    left: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; width: 16px; } /* Orta çizgi daha kısa, modern durur */
.hamburger span:nth-child(3) { top: 28px; }

/* Active State (X Transformation) */
.hamburger.active {
    background: var(--accent-500);
    border-color: var(--accent-500);
}

.hamburger.active span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

.site-header.scrolled .hamburger {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.site-header.scrolled .hamburger span {
    background: var(--white);
}

.site-header.scrolled .hamburger.active {
    background: var(--accent-500);
    border-color: var(--accent-500);
}

/* --- 7. PREMIUM FLOATING CONTACT (Desktop & Mobile) --- */
.floating-contact {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card-item {
    background: var(--primary-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
}

.contact-card-item i {
    font-size: 20px;
    color: var(--accent-400);
}

.contact-card-item span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-card-item:hover {
    transform: translateX(-10px) scale(1.02);
    background: var(--primary-800);
    border-color: var(--accent-500);
}

/* Mobile Sticky Bar Transformation */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 0;
        right: 0;
        left: 0;
        flex-direction: row;
        gap: 0;
        padding: 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    }

    .contact-card-item {
        flex: 1;
        border-radius: 0;
        padding: 15px 5px;
        flex-direction: column;
        gap: 5px;
        min-width: auto;
        border: none;
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    .contact-card-item:last-child { border-right: none; }

    .contact-card-item span { font-size: 10px; }
    .contact-card-item i { font-size: 18px; }

    /* Mobile Specific Colors (Match image) */
    .contact-card-item.phone-btn { background: var(--primary-900); }
    .contact-card-item.whatsapp-btn { background: #25D366; }
    .contact-card-item.whatsapp-btn i, .contact-card-item.whatsapp-btn span { color: var(--white); }
    .contact-card-item.quote-btn { background: var(--accent-500); }
    .contact-card-item.quote-btn i, .contact-card-item.quote-btn span { color: var(--white); }

    .contact-card-item:hover { transform: none; }
    
    /* Extra padding for body so content isn't hidden behind the bar */
    body { padding-bottom: 70px; }
}

/* --- 7. MOBILE OVERLAY MENU --- */
.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: var(--primary-900);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.nav-menu-mobile {
    list-style: none;
    text-align: center;
    padding: 0;
}

.nav-menu-mobile li {
    margin-bottom: 25px;
}

.nav-menu-mobile .nav-link {
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-menu {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

/* ─────────────────────────────────────────────────
   MOBİL NAVBAR — RESPONSIVE DÜZELTME (≤ 768px)
   ───────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* 1. Topbar gizle — mobilde yer kaplıyor */
    .header-topbar { display: none; }

    /* 2. Desktop nav-menüyü gizle */
    .nav-menu { display: none !important; }

    /* 3. Hamburger butonu göster */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* 4. Logo boyutunu mobil için küçült */
    .logo-img { height: 70px !important; }
    .site-header.scrolled .logo-img { height: 55px !important; }

    /* 5. Navbar padding azalt */
    .navbar { padding: 10px 0; }
    .navbar-inner { min-height: 60px; }

    /* 6. Site header — scrolled olmadan da koyu arka plan */
    .site-header { z-index: 5000 !important; }
    .site-header:not(.scrolled) {
        background: rgba(11, 30, 53, 0.95);
    }

    /* 7. Mobile overlay z-index güncelle */
    .mobile-nav { z-index: 3000; }
    .hamburger { z-index: 3100; } /* Menü açıkken bile buton üstte kalsın */

    /* 8. Kapat butonu iyileştirmesi */
    .close-menu {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
        padding: 10px;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 9. Dropdown mobilde kapalı (overlay menü kullanılıyor) */
    .dropdown-menu { display: none !important; }

    /* 10. Footer grid tek sütun */
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-img { height: 58px !important; }
    .navbar-inner { min-height: 50px; }
}
