/* 
 * Malkaçoğlu Oto Aksesuar - SEO Optimizasyon Stilleri
 * Tüm sayfalarda kullanılacak temel stiller
 * Güncelleme: 17.08.2024 - Tasarım uyumluluğu iyileştirmeleri
 */

/* Performans ve Tasarım İyileştirmeleri */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Görsel Optimizasyonları */
img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

/* Lazy loading için görünmeyen resimler */
img.lazy {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
}

img.lazy.loaded {
    opacity: 1;
}

/* Responsive resimler için konteyner */
.img-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Yazı Tipi ve Tipografi Optimizasyonu */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Bağlantı ve Etkileşim Stilleri */
a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

a:hover, 
a:focus {
    color: #0d6efd;
    text-decoration: none;
}

/* Buton stilleri */
.btn {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1a252f;
    border-color: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navbar Stilleri */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background-color: rgba(13, 41, 102, 0.95) !important;
}

.navbar-shrink {
    padding: 5px 0;
    background-color: rgba(13, 41, 102, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
    transition: all 0.3s ease;
}

.navbar-shrink .navbar-brand {
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: white !important;
    transform: translateY(-2px);
}

/* Kart ve Kutu Stilleri */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Bölüm Başlıkları */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0d6efd;
}

/* Form Elemanları */
.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background-color: #fff;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Görünürlük Yardımcıları */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Yükleme Animasyonları */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Hero Bölümü */
.slider {
    position: relative;
    color: #ffffff !important; /* Tüm yazılar için beyaz renk */
}

.slider h1,
.slider .lead,
.slider .btn,
.slider a:not(.btn) {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important; /* Daha koyu gölge */
}

.slider .btn-outline-light {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.slider .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.slider-content {
    color: #ffffff !important;
}

/* Breadcrumb Navigasyon */
.breadcrumb {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #6c757d;
}

/* Schema.org İçin Görünmez İçerik */
.hidden {
    display: none;
}

/* Print Stilleri */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.3;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}

/* Yavaş Bağlantılar İçin Optimizasyon */
@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;
    }
}

/* İçerik Görünürlüğü */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Koyu Tema Desteği - Devre Dışı Bırakıldı */
/* Tüm arka planlar beyaz yapıldı */
:root {
    --light: #ffffff;
    --dark: #212529;
    --primary: #0d6efd;
    --secondary: #6c757d;
}

body {
    background-color: #ffffff;
    color: #212529;
}

.card, 
.bg-light, 
.bg-dark, 
.bg-primary,
.bg-secondary,
.navbar,

section,
.breadcrumb {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Başlık Stilleri */
h1, h2, h3, h4, h5, h6 {
    color: #212529 !important;
    padding: 0;
    display: block;
}

/* Diğer metin stilleri */
.navbar-brand,
.nav-link,
.text-white,
.text-light {
    color: #212529 !important;
}

/* Buton stilleri */
.btn {
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1a252f;
    border-color: #1a252f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-light {
    color: #2c3e50;
    border-color: #2c3e50;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: #2c3e50;
    color: #ffffff;
    border-color: #2c3e50;
}

/* Navbar stilleri */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer Stilleri */
footer.footer {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    padding: 3rem 0 !important;
    margin-top: 4rem !important;
}

.footer {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #0d6efd;
}

.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fff;
    padding-left: 5px;
    text-decoration: none;
}

.footer-bottom {
    background-color: #1a252f;
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Sosyal Medya İkonları */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0d6efd;
    transform: translateY(-3px);
    padding-left: 0;
}

/* Kart gölgeleri */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0,0,0,.125);
}

/* Form elemanları */
.form-control,
.form-select {
    background-color: #fff;
    border: 1px solid #ced4da;
}

/* Tablo stilleri */
table {
    background-color: #fff;
}

th, td {
    border-color: #dee2e6;
}

/* Dropdown menüler */
.dropdown-menu {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
}

.dropdown-item {
    color: #212529;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #16181b;
}

/* Erişilebilirlik İyileştirmeleri */
:focus {
    outline: 3px solid #4d90fe;
    outline-offset: 2px;
}

/* Yüksek Karşıtlık Modu */
@media (forced-colors: active) {
    button, 
    input, 
    select, 
    textarea, 
    a {
        forced-color-adjust: none;
    }
}

/* Performans İçin Önemli İçerik Önceliklendirme */
#main-content {
    content-visibility: auto;
}

/* Görseller İçin Yer Tutucu */
.img-placeholder {
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
}

.img-placeholder::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Counter number styles */
.counter {
    color: #000000 !important;
}
