/* Global İskelet ve Yerleşim (Navbar, Footer, Header) */

/* Özelleştirilmiş Fare İmleci - Klasik Ok, Site Renginde */
@media (hover: hover) {
    * {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath d='M4 2 L4 18 L8 14 L11 20 L13 19 L10 13 L16 13 Z' fill='%232c3e50' stroke='%23c5a059' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 5 2, auto;
    }

    a, button, .btn, [role="button"],
    input[type="submit"], input[type="button"],
    input[type="checkbox"], input[type="radio"], select, label {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath d='M4 2 L4 18 L8 14 L11 20 L13 19 L10 13 L16 13 Z' fill='%23ffffff' stroke='%23c5a059' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 5 2, pointer;
    }

    input[type="text"], input[type="email"], input[type="tel"],
    input[type="number"], input[type="password"], textarea {
        cursor: text;
    }
}

/* Navbar */
html,
body {
    overflow-x: hidden;
    /* Mobilde yatay taşmayı engelle */
    width: 100%;
}

.navbar {
    background: rgba(33, 37, 41, 0.95) !important;
    /* Daha koyu, neredeyse opak zemin */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none;
    /* Alt çizgi kaldırıldı */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all var(--transition);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.navbar::after {
    display: none;
}

/* Mobil Menü Butonu (Hamburger) - Kenarlık Kaldırma */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Masaüstünde (LG ve üzeri) Toggle butonunu KESİN olarak gizle */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

.navbar.scrolled {
    background: rgba(44, 62, 80, 0.85) !important;
    backdrop-filter: blur(15px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-light) !important;
    transition: all var(--transition);
    text-shadow: none;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--accent-gold) !important;
    text-decoration: none;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: transparent;
    margin-right: 0.75rem;
    position: relative;
    padding: 0;
    flex-shrink: 0;
}

.brand-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Navbar Link Efekti (Footer ile Aynı) */
.navbar-nav .nav-link {
    font-family: var(--font-body);
    color: var(--text-light) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    /* Yazıya biraz daha yakın */
    left: 1rem;
    /* Padding kadar içerden başla */
    width: 0;
    height: 2px;
    background: #8E735B;
    /* Footer Rengi */
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: calc(100% - 2rem);
    /* Padding hariç genişlik */
}

/* Active class'ında çizgi çıkmasın (sadece renk değişsin) */
.navbar-nav .nav-link.active::after {
    width: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold) !important;
}


/* Highlight Link (Renk Simülatörü) */
.highlight-link {
    background: #975f2600;
    /* Daha koyu kahverengi (Kullanıcı İsteği) */
    border: 1px solid #8E735B;
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 1.25rem !important;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    margin-right: 1rem;
}

.navbar-nav .nav-link.highlight-link:hover,
.navbar-nav .nav-link.highlight-link.active {
    background: #6d5843;
    /* Hover'da daha da koyu */
    color: white !important;
    border-color: #6d5843;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(223, 203, 203, 0.15);
}

.highlight-link::after {
    display: none !important;
}

/* Navbar WhatsApp Butonu */
.btn-whatsapp {
    background-color: #25d366;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}


/* Sayfa Başlığı (Global) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    /* Premium Mavi Gradyan */
    padding: 4rem 0 4rem;
    /* About.css stili */
    color: white;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 350px;
}

/* Dekoratif Üst Çizgi (About Us'tan alındı) */
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-image: repeating-linear-gradient(90deg,
            white 0px,
            white 8px,
            transparent 8px,
            transparent 16px);
    opacity: 0.6;
    z-index: 2;
}

/* Header içindeki Container (İçeriği ortalayan kutu) */
.page-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff !important;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    color: white !important;
}

/* Breadcrumb Stilleri */
.page-header .breadcrumb {
    margin-bottom: 0;
    background: none;
    font-size: 1.1rem !important;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.78);
}

/* Breadcrumb Stilleri - Link Efekti */
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.page-header .breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8E735B;
    transition: width 0.3s ease;
}

.page-header .breadcrumb-item a:hover::after {
    width: 100%;
}

.page-header .breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobil Uyumluluk */
@media (max-width: 767.98px) {
    .page-header {
        padding: 100px 0 2rem !important; /* Increased padding-top to 100px */
        min-height: auto !important;
    }

    .page-header h1 {
        font-size: 1.8rem !important; /* Reduced from 2.5rem */
    }

    .page-header p {
        font-size: 1rem !important; /* Reduced from 1.2rem */
    }
    
    .page-header .breadcrumb {
        font-size: 0.95rem !important; /* Reduced for mobile */
    }

    /* Hide active item in breadcrumb on mobile to save space and prevent orphaned separators */
    .page-header .breadcrumb-item.active {
        display: none !important;
    }
}



/* Mobil Menü (Yan Panel) */
.offcanvas {
    width: 300px;
    /* Panelin genişliği */
    background: var(--light) !important;
    color: var(--dark) !important;

    /* Sağ tarafa dekoratif kesik çizgi ekle */
    border-right: 5px solid var(--dark);
    border-right-style: dashed;

    /* Panel açıldığında, ana sitenin üzerine düştüğü için derin gölge ver */
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.2);
}

/* Çok küçük ekranlarda (eski telefonlar) panel ekranı taşmasın */
@media (max-width: 420px) {
    .offcanvas {
        width: min(300px, 92vw);
    }

    /* Ekranın %92'sinden geniş olamaz */
}

.offcanvas-header {
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    /* Başlık altı çizgi */
    background: var(--light) !important;
}

.offcanvas-title {
    font-family: var(--font-heading);
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 1.8rem;
}

/* Mobil Link Tasarımları */
.mobile-nav .nav-link {
    padding: 1rem;
    /* Rahat dokunma alanı (Touch Target) */
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    /* Listeyi çizgilerle ayır */
    color: var(--dark) !important;
    font-weight: 500;
    position: relative;
    /* Before elementi buna göre konumlanır */
    transition: all 0.3s ease;
}

/* [EFEKT] Soldaki Sarı Çubuk */
.mobile-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    /* Çubuğun kalınlığı */
    background: var(--accent-gold);
    transform: scaleY(0);
    /* Başlangıçta görünmez (Yüksekliği 0) */
    transition: transform 0.3s ease-in-out;
    /* Animasyonlu uzama */
}

/* Hover veya Aktif olduğunda çubuk uzasın */
.mobile-nav .nav-link:hover::before,
.mobile-nav .nav-link.active::before {
    transform: scaleY(1);
    /* Tam boya ulaş */
    opacity: 1 !important;
}

/* Hover olduğunda zemin ve yazı rengi değişimi */
.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    background: rgba(180, 160, 120, 0.15) !important;
    /* Hafif sarı zemin */
    color: var(--accent-gold) !important;
    padding-left: 1.5rem;
    /* Yazıyı sağa kaydır (Hareket hissi) */
}

/* Kapatma Butonu (X) */
.offcanvas .btn-close {
    /* İkonu koyu yapmak için filtre trick'i */
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
}

.offcanvas .btn-close:hover {
    opacity: 1;
}

/* Alt Bilgi (Footer) */
.footer {
    position: relative;
    background: var(--secondary-bg);
    color: var(--text-light);
    margin-top: 0.1rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 4rem 0 2rem 0;
    /* Üst 4rem, Alt 2rem */
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h6 {
    color: var(--text-light) !important;
}

.footer .col-lg-2>h5,
.footer .col-lg-3>h5,
.footer .col-md-6>h5 {
    color: white !important;
    /* Beyaz Başlık */
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

.footer a:hover {
    color: var(--accent-gold) !important;
}

/* Sosyal Medya İkonları - Premium Görünüm */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white !important;
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent-gold) !important;
    border-color: var(--accent-gold);
    color: var(--primary-bg) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(184, 156, 124, 0.3);
}

.footer-social a i {
    transition: all 0.3s ease;
}

.footer-social a:hover i {
    transform: scale(1.1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

/* Footer Linkleri ve İletişim Linkleri İçin Ortak Efekt */
.footer-links a,
.footer-contact a {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.footer-links a::after,
.footer-contact a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8E735B;
    /* Kahverengi/Altın Çizgi */
    transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white !important;
    padding-left: 5px;
    /* Hafif kayma */
}

.footer-links a:hover::after,
.footer-contact a:hover::after {
    width: 100%;
}

/* Footer İletişim Listesi - Bullet Kaldırma */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 10px;
    color: white;
    font-size: 1.1rem;
    position: relative;
    top: 2px;
}

/* Sabit WhatsApp Butonu */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    /* Daha koyu yeşil */
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.floating-whatsapp i {
    margin-top: 2px;
    /* İkonu görsel olarak tam ortala */
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Bootstrap Specific Mobile Overrides */
    .offcanvas, 
    .collapsing, 
    .modal.fade .modal-dialog {
        transition: none !important;
        transform: none !important;
    }
}

/* Hero Video Stilleri */
.hero-video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: #000;
    transition: all 0.5s ease;
}

.hero-video-container.horizontal {
    aspect-ratio: 16 / 9;
}

.hero-video-container.vertical {
    aspect-ratio: 9 / 16;
    max-width: 350px;
    margin: 0 auto;
}

.hero-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
    z-index: 2;
    pointer-events: none;
}

.hero-video-overlay .hero-visual-title {
    color: white !important;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-video-overlay .hero-visual-subtitle {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Sayfa küçüldüğünde dikey videoyu biraz daha küçültelim */
@media (max-width: 768px) {
    .hero-video-container.vertical {
        max-width: 280px;
    }
}

/* Announcement Popup */
.announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10001;
}

.announcement-popup.show .popup-container {
    transform: translateY(0) scale(1);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.popup-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    min-height: 400px;
}

.popup-image {
    flex: 1 1 350px;
    max-height: 500px;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-text-content {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 3rem;
}

/* Branding */
.popup-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.popup-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.popup-divider {
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 8px;
    border-radius: 2px;
}


.popup-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-dark);
    line-height: 1.2;
    text-align: center;
}

.popup-description {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
}

.popup-btn {
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.popup-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dont-show-again {
    font-size: 0.85rem;
    text-decoration: none;
    color: #94a3b8 !important;
    transition: all 0.3s ease;
}

.dont-show-again:hover {
    color: var(--text-dark) !important;
}

@media (max-width: 767.98px) {
    .popup-content-wrapper {
        flex-direction: column;
    }
    
    .popup-image {
        flex: 0 0 200px;
    }
    
    .popup-close {
        background: rgba(0, 0, 0, 0.2);
        color: #fff;
    }
}
