/* style.css - Bingo Turkey Global Stil Dosyası (Final - Temizlenmiş) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #0D7041; /* Bingo Yeşili */
    --secondary-color: #f8f9fa; /* Açık Gri */
    --dark-color: #333;
    --whatsapp-color: #25d366;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* --- 1. PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* --- 2. ÖZEL SCROLLBAR --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #0a5c35; }

/* --- 3. PROFESYONEL TOP BAR --- */
.top-bar {
    background-color: #084a2b; /* Koyu Yeşil */
    color: #e0e0e0;
    font-size: 13px;
    padding: 8px 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.top-bar .top-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.top-bar .top-link:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}
.top-bar .separator { color: rgba(255,255,255,0.2); }

/* Sosyal Medya İkonları */
.top-bar .social-icons a {
    color: #e0e0e0;
    transition: all 0.3s;
    font-size: 14px;
}
.top-bar .social-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Dil Seçici */
.language-selector { display: flex; gap: 8px; }
.lang-flag img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.7;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.lang-flag:hover img {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- 4. PROFESYONEL NAVBAR --- */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.firmalogo { max-height: 70px; width: auto; }

/* Link Animasyonları */
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px !important;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}
.navbar-nav .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Dropdown Menü & Fix */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px 0;
    margin-top: 15px !important; 
    z-index: 9999; 
}
.dropdown-menu::before { /* Görünmez Köprü Fix */
    content: "";
    display: block;
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}
.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}
.dropdown-item:hover, .dropdown-item.active {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: slideUp 0.3s ease-in-out;
    }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. ANA SLIDER (CAROUSEL) --- */
#mainCarousel .carousel-item {
    height: 60vh;
    min-height: 400px;
    background-color: #000;
}
@media (min-width: 768px) {
    #mainCarousel .carousel-item { height: 80vh; }
}
#mainCarousel .carousel-item img, 
#mainCarousel .carousel-item video {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.9;
}

/* --- 6. ORTAK BÖLÜMLER & MARKA SLIDER --- */
.section-title-box {
    text-align: center;
    margin: 3rem 0 2rem;
}
.section-title-box h3 { font-weight: 700; text-transform: uppercase; }
.double-line {
    width: 100px; height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto;
}
.logo-slider-container {
    overflow: hidden; padding: 20px 0;
    background: white; white-space: nowrap;
    position: relative;
}
.logo-slide { display: inline-block; animation: slideLeft 40s linear infinite; }
.logo-slide img {
    height: 60px; margin: 0 30px;
    filter: grayscale(100%); opacity: 0.7;
    transition: 0.3s;
}
.logo-slide img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes slideLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- 7. ÜRÜN KARTLARI & HİZALAMA --- */
.product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    height: 100%;
    background: white;
    text-align: center;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column; /* Dikey Hizalama Fix */
}
.product-card:hover {
    box-shadow: 0 15px 30px rgba(13, 112, 65, 0.2) !important;
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

/* Kart Slider Alanı (Resim) */
.product-card .carousel-item {
    height: 250px !important; /* Sabit Yükseklik Fix */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card img {
    height: 250px !important;
    width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}
.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 30px; height: 30px; background-size: 60%;
}

/* Kart İçerik Hizalama */
.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Yazıyı alta it */
}
.product-card .card-title {
    margin-bottom: 15px;
    margin-top: auto;
    min-height: 3rem; /* 2 Satır garanti */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .btn, .product-card a.btn { margin-top: auto; }

/* Katalog İndirme Kutusu Fix */
.catalog-download-box {
    background-color: #f8f9fa;
    border: 2px dashed var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.catalog-download-box img {
    max-height: 300px;
    width: 100%; object-fit: contain;
    margin-bottom: 15px;
}
.catalog-download-box h4, .catalog-download-box h5 {
    margin-top: auto; margin-bottom: 15px;
    min-height: 30px;
}
.catalog-download-box .btn { margin-top: auto; width: 80%; }

/* --- 8. ARAMA ÇUBUĞU STİLİ --- */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px auto;
    position: relative;
}
.search-container input {
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.search-container input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 5px 20px rgba(13, 112, 65, 0.2);
}
.search-icon {
    position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); color: #aaa;
}

/* --- 9. PROFESYONEL FOOTER --- */
.footer-section {
    background-color: #111111; /* Koyu Gri */
    color: #dcdcdc;
    padding: 80px 0 30px 0;
    font-size: 14px;
    margin-top: 50px;
}
.footer-logo {
    max-height: 60px;
    background: white;
    padding: 5px; border-radius: 4px; margin-bottom: 20px;
}
.footer-desc { color: #a0a0a0; line-height: 1.6; }
.footer-title {
    font-weight: 700; font-size: 18px;
    position: relative; padding-bottom: 15px;
    color: #ffffff !important;
}
.footer-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; background-color: var(--primary-color);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #bbbbbb; text-decoration: none;
    transition: 0.3s; display: block;
}
.footer-links a:hover {
    color: var(--primary-color); transform: translateX(5px);
}
.footer-contact span, .footer-contact a { color: #bbbbbb; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff; border-radius: 50%;
    margin-right: 10px; text-decoration: none; transition: 0.3s;
}
.footer-social a:hover {
    background: var(--primary-color); transform: translateY(-3px);
}
.footer-bottom {
    border-color: rgba(255,255,255,0.1) !important;
    color: #888;
}

/* --- 10. DİĞER BUTONLAR --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px;
    bottom: 40px; right: 40px;
    background-color: var(--whatsapp-color); color: #FFF;
    border-radius: 50px; text-align: center; font-size: 30px;
    box-shadow: 2px 2px 3px #999; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; text-decoration: none;
}
.whatsapp-float:hover {
    background-color: #128C7E; color: white; transform: scale(1.1);
}
#scrollTopBtn {
    display: none;
    position: fixed; bottom: 40px; right: 110px;
    z-index: 99; border: none;
    background-color: #333; color: white;
    cursor: pointer; padding: 10px;
    border-radius: 50%; width: 50px; height: 50px;
    transition: 0.3s; font-size: 1.2rem;
}
#scrollTopBtn:hover { background-color: var(--primary-color); }

/* --- 11. MOBİL UYUMLULUK (RESPONSIVE) --- */
@media only screen and (max-width: 768px) {
    .top-bar { text-align: center; padding: 5px 0; }
    .top-bar a[href^="mailto:"] { display: none; }
    .top-bar .separator { display: none; }
    .top-bar .social-icons, .top-bar .language-selector {
        justify-content: center !important; margin-top: 5px;
    }
    #mainCarousel .carousel-item { height: 50vh; min-height: 250px; }
    .carousel-caption h2 { font-size: 1.5rem; }
    .carousel-caption p { font-size: 0.9rem; }
    .product-card img { height: 180px !important; }
    .product-card h5.card-title { font-size: 1rem; }
    .footer-section { text-align: center; }
    .footer-social, .footer-contact li { justify-content: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-section .col-lg-4, .footer-section .col-lg-2, .footer-section .col-lg-3 {
        margin-bottom: 30px;
    }
    .whatsapp-float {
        width: 50px; height: 50px; font-size: 24px;
        bottom: 20px; right: 20px;
    }
    #scrollTopBtn {
        bottom: 80px; right: 20px; width: 40px; height: 40px;
    }
}