/*
   =============================================
   İÇİNDEKİLER TABLOSU
   =============================================
   1.  DEĞİŞKENLER (ROOT) ................... Satır 24
   2.  TEMEL AYARLAR (RESET & BASE) ......... Satır 56
   3.  YARDIMCI SINIFLAR (UTILITIES) ........ Satır 113
   4.  PRELOADER (YÜKLEME EKRANI) ........... Satır 173
   5.  HEADER & NAVİGASYON .................. Satır 219
   6.  HERO BÖLÜMÜ .......................... Satır 291
   7.  ÖZELLİKLER (FEATURES) ................ Satır 348
   8.  ÜRÜN KARTLARI (PRODUCT CARD) ......... Satır 371
   9.  SAYFA BAŞLIĞI & BREADCRUMB ........... Satır 426
   10. ÜRÜN DETAY SAYFASI ................... Satır 464
   11. İÇERİK GÖRSELİ & TABLOLAR ............ Satır 517
   12. İLETİŞİM FORMU ....................... Satır 546
   13. FOOTER ............................... Satır 589
   14. RESPONSIVE (MEDYA SORGULARI) ......... Satır 649
   =============================================
*/

/* =============================================
   1. DEĞİŞKENLER (ROOT)
   ============================================= */
:root {
    --about-text-muted: #5a6268;
    --black-color: #000000;
    --clr-neutral-100: hsl(0, 0%, 100%);
    --clr-primary-100: hsl(205, 15%, 58%);
    --clr-primary-400: hsl(215, 25%, 27%);
    --clr-primary-800: hsl(217, 33%, 17%);
    --clr-primary-900: hsl(218, 33%, 9%);
    --dark-color: #1D1D1D;
    --darker-color: #0d0d0d;
    --font3: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --gray-color: #6c757d;
    
    --light-color: #F8F9FA;
    --light-color-rgb: 248, 249, 250;
    
    --main-font: 'Inter', sans-serif;
    --primary-color: #0071a4; 
    --primary-color-rgb: 0, 113, 164;
    
    --secondary-color: #0046AD;
    --base-font-size: 16px;
    
    --theme-bg: #ffffff;
    --theme-bg-soft: var(--light-color);
    --theme-text: #212529; 
    
    --theme-text-muted: var(--about-text-muted);
    --theme-heading: var(--dark-color);
    --theme-border: #dee2e6;
    --theme-radius: 8px;
    --theme-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --theme-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* =============================================
   2. TEMEL AYARLAR (RESET & BASE)
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background-color: var(--theme-bg);
    color: var(--theme-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;     
    display: flex;         
    flex-direction: column;
    min-height: 100vh;
}

section.section {
    flex: 1;
}

main {
    flex: 1;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--theme-heading);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--theme-text-muted);
}

/* SEO DÜZELTMESİ: Link Temel Ayarları */
a {
    color: var(--primary-color);
    text-decoration: none; /* Varsayılan kapalı */
    transition: color 0.3s ease;
}

/* SEO DÜZELTMESİ: Paragraf içi linkler belli olsun */
p a {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =============================================
   3. YARDIMCI SINIFLAR (UTILITIES)
   ============================================= */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--theme-radius);
    font-weight: 600; /* Biraz daha kalın */
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none !important; /* Butonlarda alt çizgi olmasın */
}

/* SEO DÜZELTMESİ: btn-secondary Kontrast Ayarı */
.btn-secondary {
    background-color: #343a40; /* Koyu Gri - Beyaz yazı ile yüksek kontrast */
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #23272b; /* Hoverda daha koyu */
    color: #ffffff;
    box-shadow: var(--theme-shadow-hover);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--clr-neutral-100);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--clr-neutral-100);
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-hover);
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* =============================================
   4. PRELOADER (YÜKLEME EKRANI)
   ============================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color, #3498db);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-family: 'Inter', sans-serif;
    color: var(--light-color);
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-hidden {
    opacity: 0;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
}

/* =============================================
   5. HEADER & NAVİGASYON
   ============================================= */
.header {
    background-color: var(--theme-bg);
    border-bottom: 1px solid var(--theme-border);
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--theme-shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    line-height: 1;
    z-index: 1001;
}

.logo img {
    height: 3rem;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--theme-heading);
    padding: 0.5rem 0;
    position: relative;
    margin-top: 10px;
    text-decoration: none !important; /* Menüde alt çizgi olmasın */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

#mobile-nav-toggle {
    display: none; 
    font-size: 1.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--theme-heading);
    padding: 0.5rem;
}

/* =============================================
   6. HERO BÖLÜMÜ
   ============================================= */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/hero/fallback.webp') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    min-height: 700px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    padding-top: 50px;
}

.hero-title {
    font-family: '-apple-system', var(--font3);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-color);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.95; /* Kontrast için opacity artırıldı */
    color: #f8f9fa; /* Daha net beyaz */
}

.hero-actions .btn {
    margin: 0 10px;
    min-width: 180px;
    font-size: 1rem;
    padding: 12px 25px;
    text-transform: uppercase;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* =============================================
   7. ÖZELLİKLER (FEATURES)
   ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--theme-shadow);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* =============================================
   8. ÜRÜN KARTLARI (PRODUCT CARD)
   ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    overflow: hidden;
    box-shadow: var(--theme-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--theme-shadow-hover);
}

.product-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #eee;
}

.product-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-content a.btn {
    margin-top: auto;
}

.product-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 50px;
}

/* =============================================
   9. SAYFA BAŞLIĞI & BREADCRUMB
   ============================================= */
.page-header {
    background-color: var(--theme-bg-soft);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--theme-border);
}

.page-title {
    font-size: 2.5rem;
    margin: 0;
}

.breadcrumb {
    padding: 1rem 0;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--theme-border);
    border-radius: 25px;
    font-size: 0.9rem;
    justify-content: center;
}

.breadcrumb-list {
    display: flex;
    gap: 0.5rem;
    color: var(--theme-text-muted);
    flex-wrap: wrap;
}

.breadcrumb-list a {
    color: var(--primary-color);
    text-decoration: underline; /* SEO: Navigasyon linki olduğu belli olsun */
}

.breadcrumb-list span {
    color: var(--theme-text-muted);
}

/* =============================================
   10. ÜRÜN DETAY SAYFASI
   ============================================= */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-image-gallery {
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.product-image-gallery img {
    width: 100%;
    display: block;
}

.product-info h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-info .description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-specs {
    margin-top: 3rem;
}

.product-specs h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--theme-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* =============================================
   11. İÇERİK GÖRSELİ & TABLOLAR
   ============================================= */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--theme-border);
}

.specs-table th {
    background-color: var(--theme-bg-soft);
    width: 30%;
    font-weight: 600;
}

.img-full-width {
    width: 100%;
    display: block;
    border-radius: var(--theme-radius);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* =============================================
   12. İLETİŞİM FORMU
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--theme-bg-soft);
    padding: 3rem;
    border-radius: var(--theme-radius);
    border: 1px solid var(--theme-border);
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--theme-heading);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-bg);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* =============================================
   13. FOOTER
   ============================================= */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-about p {
    color: #ced4da; /* SEO: Footer metin kontrastı iyileştirildi */
    margin-bottom: 1rem;
    max-width: 400px;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--clr-neutral-100);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h4 {
    font-size: 1.1rem;
    color: var(--clr-neutral-100);
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

/* SEO DÜZELTMESİ: Footer link kontrastı ve alt çizgi */
.footer-links ul a {
    color: #e9ecef; /* Çok açık gri, neredeyse beyaz */
    text-decoration: underline; /* Link olduğu belli olsun */
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.footer-links ul a:hover {
    color: #ffffff;
    text-decoration-thickness: 2px;
}

.footer-bottom {
    border-top: 1px solid #343a40;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: #adb5bd;
}

/* =============================================
   14. RESPONSIVE (MEDYA SORGULARI)
   ============================================= */

/* --- TABLET VE KÜÇÜK LAPTOPLAR (max 992px) --- */
@media (max-width: 992px) {
    .features-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image-gallery {
        position: static;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

/* --- TABLET VE BÜYÜK TELEFONLAR (max 768px) --- */
@media (max-width: 768px) {
    
    .nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--theme-bg);
        border-bottom: 1px solid var(--theme-border);
        box-shadow: var(--theme-shadow);
        padding-bottom: 1rem;
    }

    .nav.is-active {
        display: block; 
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 1.5rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link::after {
        display: none; 
    }
    
    .nav-link.active,
    .nav-link:hover {
        background-color: var(--theme-bg-soft);
    }
    
    #mobile-nav-toggle {
        display: block; 
    }

    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .features-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }

    .specs-table th, 
    .specs-table td {
        display: block;
        width: 100%;
    }
    
    .specs-table th {
        background-color: transparent;
        color: var(--primary-color);
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .specs-table td {
        padding-top: 0.25rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .product-info h1 {
        font-size: 1.75rem;
    }
}

/* --- KÜÇÜK TELEFONLAR (max 480px) --- */
@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* =============================================
   15. ÖZEL HATA MESAJI TASARIMI (CUSTOM VALIDATION)
   ============================================= */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #dc3545 !important;
    background-color: #fff8f8; 
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1); 
    transition: all 0.3s ease;
}

.custom-error-msg {
    display: none;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
    padding-left: 5px;
    animation: slideDown 0.3s ease forwards;
}

.custom-error-msg.show {
    display: flex;
}

.custom-error-msg i {
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}