/* =========================================
   1. GENEL AYARLAR VE FONTLAR
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Varsayılan Renkler (Veritabanı bağlantısı gecikirse bunlar görünür) */
    --primary: #ff6600;
    --primary-dark: #cc5200;
    --secondary: #111827;     /* Koyu Gri/Siyah */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    
    /* Mobil Menü Arkaplanı */
    --app-bar-bg: #ffffff;
    
    /* Dinamik Değişken Varsayılanları */
    --header-text: #111827;
    --header-bg: #ffffff;
    --footer-text: #ffffff;
    --footer-bg: #111827;
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--white); 
    color: var(--text-dark);
    padding-bottom: 90px; /* Mobil Alt Menü için boşluk */
    overflow-x: hidden;
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }

/* DİNAMİK RENK GEÇİŞLERİ */
div, header, nav, footer, button, i, a, span {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* =========================================
   2. DUYURU BANDI (KAYAN YAZI) - YENİ EKLENDİ
   ========================================= */
.announcement-bar {
    background: linear-gradient(90deg, #111 0%, #333 100%); /* Varsayılan Koyu Gradient */
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1030;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 25s linear infinite;
}

.scrolling-text span {
    display: inline-block;
    color: var(--primary); /* Vurgulu kelimeler ana renk olsun */
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   3. HEADER & TOP BAR (MASAÜSTÜ)
   ========================================= */
.top-bar {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    background-color: var(--header-bg); /* Admin Panelinden */
    color: var(--header-text); /* Admin Panelinden */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    opacity: 0.9;
    color: var(--header-text) !important; /* Admin Rengi */
    border-right: 1px solid rgba(0,0,0,0.1);
}
.top-link:last-child { border-right: none; }
.top-link:hover { opacity: 1; color: var(--primary) !important; }

/* Sosyal Medya İkonları */
.social-trigger { position: relative; cursor: pointer; color: var(--header-text); }
.social-dropdown {
    position: absolute; top: 100%; left: 0; background: white; padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 8px;
    display: flex; gap: 10px; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: 0.3s; z-index: 1050;
}
.social-trigger:hover .social-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.social-icon { 
    width: 30px; height: 30px; 
    display: flex; align-items: center; justify-content: center; 
    background: #f3f4f6; border-radius: 50%; 
    transition: 0.3s;
}
.social-icon i { color: var(--secondary); font-size: 14px; }
.social-icon:hover { background: var(--primary); }
.social-icon:hover i { color: white !important; }

/* Main Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    color: var(--header-text) !important;
}

/* Arama Çubuğu */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.search-input {
    width: 100%;
    border: 2px solid transparent;
    background-color: var(--bg-light);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    transition: 0.3s;
}
.search-input:focus {
    background-color: var(--white);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}
.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.search-btn:hover { background-color: var(--primary); color: var(--white); }

/* Header İkonları */
.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    margin-left: 20px;
    opacity: 0.9;
    color: var(--header-text) !important;
}
.header-icon i { font-size: 22px; margin-bottom: 2px; }
.header-icon:hover { color: var(--primary) !important; opacity: 1; transform: translateY(-2px); }

/* =========================================
   4. MENÜ BAR (NAVBAR)
   ========================================= */
.nav-link-custom {
    padding: 10px 0;
    position: relative;
    opacity: 0.9;
    font-size: 14px;
    color: var(--header-text) !important;
}
.nav-link-custom:hover { opacity: 1; color: var(--primary) !important; }
.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}
.nav-link-custom:hover::after { width: 100%; }

/* =========================================
   5. BANNER SLIDER (YENİ EKLENDİ)
   ========================================= */
.slider-image-wrapper {
    position: relative;
    height: 500px; /* Masaüstü Yüksekliği */
    overflow: hidden;
    background-color: #000;
}
.slider-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.85); /* Yazı okunsun diye hafif karartma */
}
.carousel-caption { bottom: 20%; }
.text-shadow { text-shadow: 0 2px 10px rgba(0,0,0,0.7); }

/* =========================================
   6. SIDEBAR (MOBİL YAN MENÜ)
   ========================================= */
.offcanvas-custom {
    width: 85% !important;
    max-width: 340px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
.menu-section-title {
    font-size: 11px;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    margin: 20px 0 10px 0;
    letter-spacing: 1px;
}
.mobile-link-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
}
.mobile-link-card i { font-size: 18px; margin-right: 12px; color: var(--primary); }
.mobile-link-card:hover {
    border-color: var(--primary);
    background-color: #fff8f5;
    color: var(--primary);
}
.btn-whatsapp-mobile {
    background: #25D366; color: white !important; border: none;
    padding: 12px; border-radius: 12px; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
}
.btn-call-mobile {
    background: var(--secondary); color: white !important; border: none;
    padding: 12px; border-radius: 12px; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
}

/* =========================================
   7. FOOTER (GÜNCELLENMİŞ VERSİYON)
   ========================================= */
footer {
    padding-top: 60px;
    padding-bottom: 30px;
    font-size: 14px;
    /* Admin Panelinden Gelen Renkler */
    background-color: var(--footer-bg) !important; 
    color: var(--footer-text) !important;
}

.footer-title {
    color: var(--footer-text) !important;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--footer-text) !important;
    opacity: 0.7;
    transition: 0.3s;
    text-decoration: none;
}

.footer-link i {
    font-size: 12px;
    opacity: 0;
    transform: translateX(-5px);
    transition: 0.3s;
    color: var(--primary);
}

.footer-link:hover {
    opacity: 1;
    color: var(--primary) !important;
    padding-left: 5px;
}
.footer-link:hover i { opacity: 1; transform: translateX(0); }

/* Bülten Kutusu */
.newsletter-box {
    background: rgba(255,255,255,0.05); /* %5 Beyaz Opaklık */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.newsletter-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--footer-text);
    padding: 12px;
}
.newsletter-input:focus {
    background: rgba(255,255,255,0.2);
    color: var(--footer-text);
    box-shadow: none;
    border-color: var(--primary);
}
.newsletter-btn {
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    border: none;
}
.newsletter-btn:hover { background: var(--primary-dark); color: #fff; }

/* Sosyal Medya Yuvarlakları */
.social-circle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--footer-text);
    transition: 0.3s;
    text-decoration: none;
}
.social-circle:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: #fff !important;
}

/* =========================================
   8. MOBILE APP BAR (ALT MENÜ)
   ========================================= */
.mobile-app-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--app-bar-bg);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.08);
    z-index: 9999;
    display: flex; justify-content: space-around; align-items: flex-end;
    padding: 10px 10px 15px 10px;
    border-top-left-radius: 20px; border-top-right-radius: 20px;
}
.app-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 10px; font-weight: 600; width: 60px;
    transition: 0.3s; position: relative;
}
.app-item i { font-size: 22px; margin-bottom: 4px; transition: 0.3s; }
.app-item.active { color: var(--primary); }
.app-item.active i { transform: translateY(-3px); filter: drop-shadow(0 4px 6px rgba(255, 102, 0, 0.2)); }

/* Floating Button (Sepet) */
.app-item-float {
    position: relative; top: -30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
    border: 4px solid var(--white);
    color: var(--white);
    transform: scale(1);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.app-item-float i { font-size: 26px; }
.app-item-float:hover { transform: scale(1.1) translateY(-5px); }

.pulse-effect { animation: pulse-primary 2s infinite; }
@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 102, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

/* =========================================
   9. RESPONSIVE AYARLAR
   ========================================= */
@media (min-width: 992px) {
    /* Masaüstünde Mobil Alt Menüyü Gizle */
    .mobile-app-bar { display: none; }
    
    /* Masaüstünde body padding'i kaldır */
    body { padding-bottom: 0; }
}

@media (max-width: 991px) {
    /* Mobilde Top Bar Gizle (İsteğe bağlı, kodda d-none d-lg-block var zaten) */
    .top-bar { display: none; }
    
    /* Mobilde Headerı Sıkılaştır */
    .main-header { padding: 10px 0; }
    
    /* Mobil Slider Yüksekliği */
    .slider-image-wrapper { height: 250px; }
    .carousel-caption h2 { font-size: 1.5rem; }
    .carousel-caption p { font-size: 0.9rem; margin-bottom: 5px; }
    .carousel-caption .btn { font-size: 0.8rem; padding: 5px 15px; }
}