/* =========================================
   1. GENEL AYARLAR & DEĞİŞKENLER
   ========================================= */
:root {
    --primary-color: #003399;   
    --secondary-color: #f8f9fa; 
    --accent-color: #dc3545;    
    --text-dark: #333333;
    --text-light: #6c757d;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    overflow-x: hidden;
}

a { text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-color); }

.bg-primary-custom { background-color: var(--primary-color) !important; }
.text-primary-custom { color: var(--primary-color) !important; }

/* =========================================
   2. DUYURU BANDI & TOP BAR
   ========================================= */
.notification-bar { font-size: 1.2rem; z-index: 1030; }
.notify-content p { margin: 0 !important; display: inline; }

.marquee-wrapper { overflow: hidden; white-space: nowrap; position: relative; }
.marquee-content { display: inline-block; padding-left: 100%; animation: marquee 20s linear infinite; }
.marquee-wrapper:hover .marquee-content { animation-play-state: paused; }

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.top-bar { font-size: 0.85rem; position: relative; z-index: 1040; }
.top-bar .container { padding-top: 10px; padding-bottom: 10px; }

.social-link, .phone-link { 
    opacity: 0.85; 
    transition: all 0.3s ease; 
    display: inline-flex;
    align-items: center;
}
.social-link:hover, .phone-link:hover { opacity: 1; transform: translateY(-1px); }

/* =========================================
   3. MODERN HEADER (DİNAMİK YAPI)
   ========================================= */

/* Genel Menü Link Ayarları */
.modern-nav-link {
    text-transform: uppercase;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

/* 1. ANASAYFA ŞEFFAF HEADER (.transparent-header) */
.main-header.transparent-header {
    position: absolute !important;
    top: auto !important; /* BÜYÜLÜ DOKUNUŞ: Üst barları ezmez, bittikleri yerden başlar! */
    left: 0;
    width: 100%;
    z-index: 1040;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.transparent-header .modern-nav-link { color: rgba(255, 255, 255, 0.85) !important; }
.transparent-header .modern-nav-link:hover, 
.transparent-header .modern-nav-link.active-link { color: #ffffff !important; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.transparent-header .site-title-text { color: #ffffff !important; }

/* 3.2 İÇ SAYFALAR İÇİN BEYAZ HEADER */
.main-header.solid-header {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.4s ease;
}
.solid-header .modern-nav-link { color: #333333 !important; }
.solid-header .modern-nav-link:hover, 
.solid-header .modern-nav-link.active-link { color: var(--primary-color) !important; }
.solid-header .site-title-text { color: #333333 !important; }

/* 3.3 SCROLL (KAYDIRMA) DURUMU */
.main-header.sticky-top.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 15px 0 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    backdrop-filter: blur(10px);
    z-index: 1050;
}
.main-header.sticky-top.scrolled .modern-nav-link { color: #333333 !important; text-shadow: none !important; }
.main-header.sticky-top.scrolled .modern-nav-link:hover,
.main-header.sticky-top.scrolled .modern-nav-link.active-link { color: var(--primary-color) !important; }
.main-header.sticky-top.scrolled .site-title-text { color: #333333 !important; }

.main-logo-img { 
    max-height: 65px; 
    width: auto; 
    transition: all 0.4s ease-in-out; 
}
.main-header.sticky-top.scrolled .main-logo-img {
    max-height: 45px !important;
}

/* =========================================
   4. ARAMA KUTUSU & DROPDOWN
   ========================================= */
.modern-search-box {
    background-color: rgba(255,255,255,0.9);
    border-radius: 50px;
    border: 1.5px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden; 
}
.modern-search-box:focus-within {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.1);
}
.modern-search-box input { height: 42px; font-size: 0.9rem; color: #333; }
.modern-search-box input::placeholder { color: #888; }

.search-results-dropdown {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    z-index: 1050;
    display: none;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   5. SLIDER & HERO
   ========================================= */
#mainCarousel .carousel-item {
    height: 80vh; 
    min-height: 600px;
    position: relative;
    background-color: #000;
}
.hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 12px; 
    transform: translateY(-50%);
    z-index: 2;
    color: #ffffff;
    max-width: 650px; 
    text-align: left;
}
.hero-subtitle { font-size: 1.3rem; font-style: italic; font-weight: 300; margin-bottom: 15px; color: rgba(255,255,255,0.9); }
.hero-title { font-size: 5rem; font-weight: 800; margin-bottom: 30px; line-height: 1.1; letter-spacing: -1.5px; text-shadow: 2px 2px 15px rgba(0,0,0,0.5); }
.hero-btn { background-color: rgba(30, 35, 45, 0.8); color: #ffffff !important; border: 1px solid rgba(255,255,255,0.2); padding: 15px 35px; border-radius: 50px; font-size: 1.1rem; text-decoration: none; transition: all 0.3s ease; display: inline-flex; align-items: center; backdrop-filter: blur(5px); }
.hero-btn:hover { background-color: #ffffff; color: #1e232d !important; transform: translateY(-2px); }

.carousel-indicators { margin-bottom: 30px; z-index: 3; }
.carousel-indicators [data-bs-target] { width: 10px !important; height: 10px !important; border-radius: 50%; background-color: rgba(255,255,255,0.5) !important; margin: 0 6px !important; border: none !important; }
.carousel-indicators .active { background-color: #00d2ff !important; transform: scale(1.2); }

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-content-wrapper { left: 15px; right: 15px; }
}

/* =========================================
   6. KİTAP KATALOĞU (MODERN KARTLAR)
   ========================================= */
.modern-book-card {
    background-color: #ffffff;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    transition: all 0.3s ease;
    overflow: hidden;
}
.modern-book-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important; }
.modern-book-card .card-img-wrapper { background-color: #ffffff; height: 240px; display: flex; align-items: center; justify-content: center; }
.modern-book-card .card-img-wrapper img { max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 3px 5px 12px rgba(0,0,0,0.15); transition: transform 0.3s ease; }
.modern-book-card .book-title { font-size: 0.95rem; color: #333333; font-weight: 600; line-height: 1.3; }
.modern-book-card .book-author { font-size: 0.8rem; color: #888888; font-style: italic; margin-top: 4px; }
.book-overlay { display: none !important; }

/* =========================================
   7. MOBİL ALT MENÜ & ÇEREZ
   ========================================= */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px); 
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05) !important;
    z-index: 9999; display: flex; justify-content: space-between; align-items: center;
    height: 70px; padding: 0 10px; border-radius: 20px 20px 0 0;
}
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #888; font-size: 10px; font-weight: 600; flex: 1; transition: all 0.3s ease; padding-top: 5px; }
.nav-icon-wrapper { position: relative; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 2px; }
.mobile-nav-item i { font-size: 1.25rem; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary-color); }

@media (max-width: 991px) {
    body { padding-bottom: 80px !important; }
}

.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background-color: #212529; color: #fff; z-index: 1060; transition: bottom 0.5s ease-in-out; padding: 15px 0; }
.cookie-banner.show { bottom: 0; }
@media (max-width: 991px) { .cookie-banner.show { bottom: 65px; } }

/* Back To Top */
#backToTop { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.4s ease; transform: translateY(20px); background-color: var(--primary-color) !important; color: #fff; border-radius: 50%; }
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 991px) { #backToTop { bottom: 80px; right: 20px; width: 45px; height: 45px; } }

/* =========================================
   8. DİĞER İNCE AYARLAR
   ========================================= */
.tech-spec-card { transition: all 0.3s ease; border-color: rgba(0,0,0,0.05) !important; }
.tech-spec-card:hover { background-color: #fff !important; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateY(-2px); }

.brand-item-card { height: 120px; display: flex; align-items: center; justify-content: center; padding: 20px; background-color: #fff; border-radius: 12px; border: 1px solid rgba(0,0,0,0.04); transition: all 0.4s ease; }
.brand-logo-img { max-height: 90px; max-width: 100%; object-fit: contain; opacity: 0.5; filter: grayscale(100%); transition: all 0.4s ease; }
.brand-item-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.brand-item-card:hover .brand-logo-img { opacity: 1; filter: grayscale(0%); transform: scale(1.05); }

/* iPad gibi ara ekranlar için menü daraltması */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .modern-nav-link { padding: 6px 8px !important; font-size: 0.8rem !important; }
    .search-box-header input { padding-left: 15px !important; }
}