/* ================================================
   OPIA TEDARİK - B2B KURUMSAL TASARIM SİSTEMİ
   ================================================ */

/* Renk Paleti */
:root {
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    --accent-orange: #f97316;
    --success-green: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

/* Genel Tipografi */
body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Header Stilleri */
header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

.opia-logo {
    transition: transform 0.3s ease;
}

.opia-logo:hover {
    transform: translateY(-2px);
}

/* Navbar Stilleri */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    padding: 0;
}

.navbar .nav-link {
    color: var(--white) !important;
    padding: 15px 20px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid var(--accent-orange);
}

.navbar .nav-link i {
    margin-right: 8px;
}

/* Hero Banner */
.opia-hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2563eb 50%, var(--primary-blue-light) 100%);
}

.opia-hero-banner a {
    transition: all 0.3s ease;
}

.opia-hero-banner a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Ürün Kartları */
.products .thumbnail {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
    display: block;
    text-decoration: none;
    margin-bottom: 20px;
}

.products .thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
    border-color: var(--primary-blue-light);
}

.products .thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.products .caption {
    padding: 15px;
}

.products .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    min-height: 40px;
}

/* B2B Info Box */
.b2b-info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.b2b-info-box h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.b2b-info-box ul {
    list-style: none;
    padding-left: 0;
}

.b2b-info-box ul li {
    padding: 8px 0;
    color: var(--text-dark);
}

.b2b-info-box ul li i {
    margin-right: 10px;
}

/* Butonlar */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* Modal Stilleri */
.modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--white);
    border-radius: 8px 8px 0 0;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 20px 30px;
}

/* Form Stilleri */
.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Alert Stilleri */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-blue);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

footer .title-one {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 18px;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

/* İstatistik Kartları */
.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 10px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .opia-hero-banner {
        padding: 40px 15px !important;
    }

    .opia-hero-banner h1 {
        font-size: 32px !important;
    }

    .opia-hero-banner p {
        font-size: 18px !important;
    }

    .stat-card {
        margin-bottom: 15px;
    }

    .opia-logo {
        padding: 8px 10px !important;
    }

    .opia-logo div:first-child {
        font-size: 16px !important;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Animasyonu */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Gölge Efektleri */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-md {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Hover Efektleri */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
}

/* Slider Banner Stilleri */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.stat-box {
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 500px !important;
    }

    .carousel-item h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .carousel-item p {
        font-size: 1.2rem !important;
        margin-bottom: 2rem !important;
    }

    /* Mobilde istatistikleri göster ama daha kompakt */
    .d-none.d-md-flex {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px !important;
        margin-bottom: 2rem !important;
    }

    .stat-box {
        padding: 10px !important;
        min-width: 140px;
    }

    .stat-box div:first-child {
        font-size: 1.5rem !important;
    }

    .stat-box div:last-child {
        font-size: 0.8rem !important;
    }

    .carousel-item .btn-lg {
        padding: 10px 30px !important;
        font-size: 1rem !important;
    }
}

/* Arama Formu Stilleri */
.navbar-form .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.navbar-form .input-group:focus-within {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-blue-light);
}

.navbar-form .form-control {
    border: none;
    padding-left: 20px;
    height: 45px;
    font-size: 14px;
}

.navbar-form .form-control:focus {
    box-shadow: none;
}

.navbar-form .btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0 25px;
    transition: all 0.3s ease;
}

.navbar-form .btn:hover {
    background: var(--primary-blue-light);
}

/* Mobil WhatsApp Butonu (Header için) */
.whatsapp-mobile-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-mobile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    color: white !important;
}

/* Mobil Alt Bar (Sticky Footer) */
#mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #f1f5f9;
}

.btn-mobile-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    color: white !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    gap: 8px;
    transition: transform 0.2s active;
}

.btn-mobile-contact:active {
    transform: scale(0.98);
}

.btn-phone {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* Eski mobile bar'ı gizle */
#mobile-contact-bar {
    display: none !important;
}

/* Footer padding ayarı (barın altında kalmasın diye) */
body {
    padding-bottom: 70px;
}

@media (min-width: 768px) {
    #mobile-bottom-bar {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* ==========================================================================
   B2B KURUMSAL TEMA RENK DÜZELTMELERİ (Turuncu -> Mavi)
   ========================================================================== */

/* 1. Navbar & Header */
#topmenu a {
    color: #1e3a8a !important;
}

#topmenu a:hover {
    color: #3b82f6 !important;
}

.navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    background-color: #1e3a8a !important;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
}

.navbar-toggler i {
    color: white !important;
}

/* Aktif link rengi */
.navbar .nav-item.active .nav-link {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* 2. Hızlı Tanıtım İkonları (Kamyon, Kilit, Paket vb.) */
/* Daha spesifik seçici ve important kullanımı */
.product-description .widget li::before,
.product-description .widget li:before {
    color: #3b82f6 !important;
    /* Mavi */
}

.product-description .widget li strong {
    color: #1e3a8a !important;
    /* Koyu Mavi */
}

/* 4. İkonun Değişimi (Sevdikleriniz İçin -> Firmanız İçin) */
.product-description .widget li:nth-child(4)::before {
    content: "\f1ad" !important;
    /* fa-building icon */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* 3. Footer Başlıkları */
footer .title-one,
footer .title-two {
    color: #1e3a8a !important;
}

/* 4. Linkler ve Genel Renkler */
a {
    color: #3b82f6;
}

a:hover {
    color: #1e3a8a;
    text-decoration: none;
}

/* Pagination */
.product-list .pagination li.active a {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

/* Product Detail */
.product-detail label {
    color: #1e3a8a !important;
}

.product-detail .help-block {
    color: #3b82f6 !important;
}

.product-detail .price-list li .price {
    color: #1e3a8a !important;
}

/* Search Button Background (Tekrar Garanti) */
.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    border-color: #1e3a8a !important;
}

/* 5. Footer Metinleri TAM BEYAZ DÜZELTME */
footer .title-one,
footer .title-two,
footer strong,
footer p,
footer a,
footer li,
footer span,
footer i {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

footer a:hover {
    color: #ffd700 !important;
    /* Altın sarısı hover fark edilsin */
    text-decoration: none;
}

/* Breadcrumb Turuncu -> Mavi Düzenlemesi */
.breadcrumb {
    background-color: transparent !important;
}

.breadcrumb-item a {
    color: #3b82f6 !important;
}

.breadcrumb-item.active {
    color: #1e3a8a !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #64748b !important;
}

/* Sidebar ve List Group Aktif Durum (Turuncudan Maviye) */
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    z-index: 2;
    color: #fff;
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
}