/*
Theme Name: Mobil Diag
Theme URI: https://mobildiag.com
Author: Teknomobil
Description: Mobil Diag profesyonel araç diagnostik sistemleri WordPress tema altyapısı.
Version: 3.7.0
Text Domain: mobildiag
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

/* Erişilebilirlik */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 1000;
    background: #1e3a8a;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}
.skip-link:focus {
    left: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: var(--logo-h, 36px);
    max-height: var(--logo-h, 36px);
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #2563eb;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #4b5563;
}

.lang-switcher a {
    text-decoration: none;
    color: #4b5563;
    padding: 4px;
}

.lang-switcher a.active-lang {
    color: #1d4ed8;
    border-bottom: 2px solid #1d4ed8;
}

/* Mobil menü düğmesi */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #374151;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 12px;
        height: 64px;
    }
    .site-logo {
        height: calc(var(--logo-h, 36px) * 0.85);
        max-height: calc(var(--logo-h, 36px) * 0.85);
        max-width: 180px;
    }
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }
    .site-nav.is-open {
        display: flex;
    }
    .site-nav a {
        padding: 14px 20px;
        border-top: 1px solid #f3f4f6;
        font-size: 15px;
    }
}

/* Ana sayfa kapak alanı */
.hero {
    position: relative;
    color: #ffffff;
    padding: 8rem 0;
    background-color: #111827;
    background-image: linear-gradient(135deg, #111827 0%, #1e3a8a 100%);
    background-size: cover;
    background-position: center;
    width: 100%;
}

@media (max-width: 640px) {
    .hero {
        padding: 5rem 0;
    }
}

/* Ürün kaydırma çubuğu */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ürün galerisi */
.gallery-thumb {
    cursor: pointer;
    font: inherit;
}
.gallery-thumb:hover {
    border-color: #60a5fa;
}
.gallery-thumb.is-active {
    border-color: #2563eb;
}

/* Sayfa / ürün içerik metni */
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table {
    margin: 0 0 1.1em;
}
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.6em 0 0.6em;
    color: #111827;
}
.prose h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.4em 0 0.5em;
    color: #111827;
}
.prose ul {
    list-style: disc;
    padding-left: 1.4em;
}
.prose ol {
    list-style: decimal;
    padding-left: 1.4em;
}
.prose a {
    color: #2563eb;
    text-decoration: underline;
}
.prose img {
    border-radius: 8px;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
}
.prose th,
.prose td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
}

/* Sayfalama */
.navigation.pagination .nav-links {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.navigation.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
}
.navigation.pagination .page-numbers.current {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
}
.navigation.pagination .screen-reader-text {
    display: none;
}

/* İletişim formu */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-notice {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
}
.form-notice-ok {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.6);
    color: #d1fae5;
}
.form-notice-err {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(252, 165, 165, 0.6);
    color: #fee2e2;
}

form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Çerez bandı */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: rgba(17, 24, 39, 0.97);
    color: #ffffff;
    padding: 16px;
    border-top: 1px solid #1f2937;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}
.cookie-banner[hidden] {
    display: none;
}
.cookie-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.cookie-banner-text {
    margin: 0;
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.6;
    text-align: center;
}
.cookie-banner-text a {
    color: #93c5fd;
    text-decoration: underline;
    margin-left: 4px;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    width: 100%;
    justify-content: center;
}
.cookie-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}
.cookie-btn-primary {
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
}
.cookie-btn-primary:hover {
    background: #3b82f6;
}
.cookie-btn-secondary {
    background: #374151;
    color: #f3f4f6;
    border: 1px solid #4b5563;
}
.cookie-btn-secondary:hover {
    background: #4b5563;
}

@media (min-width: 768px) {
    .cookie-banner {
        padding: 20px 24px;
    }
    .cookie-banner-inner {
        flex-direction: row;
    }
    .cookie-banner-text {
        text-align: left;
    }
    .cookie-banner-actions {
        width: auto;
    }
}

.cookie-reopen {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.cookie-reopen:hover {
    color: #ffffff;
}

/* Hareketi azalt */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Marka filtresi (ürün listesi) */
.brand-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 2rem;
}
.brand-chip {
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.brand-chip:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.brand-chip.is-active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
}

/* Logo yönetimi */
.footer-logo {
    height: var(--logo-h, 40px);
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}
.footer-logo-invert {
    filter: brightness(0) invert(1);
}
.logo-text {
    font-weight: 800;
    font-size: calc(var(--logo-h, 36px) * 0.6);
    letter-spacing: 1px;
    line-height: 1;
    color: #0f2a5e;
}
.logo-text span {
    color: #2563eb;
}
.logo-text-light {
    color: #ffffff;
}
.logo-text-light span {
    color: #60a5fa;
}

/* Marka vitrini (ana sayfa) */
.brand-section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.brand-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #2563eb; background: #eff6ff; border: 1px solid #dbeafe; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.brand-section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.brand-section-head p { color: #64748b; font-size: 15px; margin: 0; }

.brand-showcase { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .brand-showcase { grid-template-columns: 1fr 1fr; } }

.brand-card { position: relative; overflow: hidden; border-radius: 24px; color: #fff; display: flex; align-items: center; gap: 12px; padding: 36px 32px; min-height: 280px; isolation: isolate; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .55); transition: transform .35s ease, box-shadow .35s ease; }
.brand-card--t-blue { background: linear-gradient(135deg, #061a3d 0%, #0b3a8c 55%, #0e6fb8 100%); --glow: 34, 211, 238; }
.brand-card--t-purple { background: linear-gradient(135deg, #0c0a24 0%, #2e1065 55%, #5b21b6 100%); --glow: 192, 132, 252; }
.brand-card--t-emerald { background: linear-gradient(135deg, #03221a 0%, #065f46 55%, #059669 100%); --glow: 52, 211, 153; }
.brand-card--t-crimson { background: linear-gradient(135deg, #2a0710 0%, #8f1230 55%, #dc2650 100%); --glow: 251, 113, 133; }
.brand-card--t-amber { background: linear-gradient(135deg, #2a1604 0%, #9a4a07 55%, #e08a0c 100%); --glow: 251, 191, 36; }
.brand-card--t-slate { background: linear-gradient(135deg, #0b1020 0%, #1e293b 55%, #475569 100%); --glow: 148, 163, 184; }
.brand-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 90%); mask-image: linear-gradient(90deg, transparent 10%, #000 90%); }
.brand-card-glow { position: absolute; width: 360px; height: 360px; right: -90px; top: -120px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(var(--glow, 34, 211, 238), .5), rgba(var(--glow, 34, 211, 238), 0) 70%); transition: transform .5s ease; }
.brand-card:hover, .brand-card:focus-within { transform: translateY(-6px); box-shadow: 0 26px 50px -18px rgba(15, 23, 42, .7); }
.brand-card:hover .brand-card-glow { transform: scale(1.15); }
.brand-card-link { position: absolute; inset: 0; z-index: 3; border-radius: 24px; }
.brand-card-link:focus-visible { outline: 3px solid #93c5fd; outline-offset: -3px; }

.brand-card-body { position: relative; z-index: 2; flex: 1 1 56%; min-width: 0; }
.brand-card-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #a5f3fc; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.brand-card h3 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: 1px; line-height: 1.05; margin: 0 0 10px; }
.brand-card p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.6; margin: 0 0 16px; max-width: 360px; }
.brand-chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chips li { font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.brand-card-cta { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #0f172a; font-weight: 700; font-size: 13px; padding: 11px 18px; border-radius: 999px; transition: gap .25s ease, background .25s ease; }
.brand-card-cta em { font-style: normal; font-weight: 600; font-size: 11px; color: #64748b; border-left: 1px solid #e2e8f0; padding-left: 10px; }
.brand-card-cta i { font-style: normal; transition: transform .25s ease; }
.brand-card:hover .brand-card-cta i { transform: translateX(5px); }

.brand-card-art { position: relative; z-index: 1; flex: 1 1 44%; max-width: 260px; }
.brand-card-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); animation: brandFloat 5s ease-in-out infinite; }
.brand-wave { stroke-dasharray: 400; stroke-dashoffset: 400; animation: brandDraw 3.2s ease-in-out infinite; }
.brand-spin { transform-origin: 142px 78px; animation: brandRotate 6s linear infinite; }
@keyframes brandFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes brandDraw { 0% { stroke-dashoffset: 400; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes brandRotate { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
    .brand-card { flex-direction: column-reverse; align-items: flex-start; padding: 28px 22px; }
    .brand-card-art { max-width: 200px; align-self: flex-end; margin-bottom: -6px; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-card, .brand-card-glow, .brand-card-cta i { transition: none; }
    .brand-card-art svg, .brand-wave, .brand-spin { animation: none; }
    .brand-wave { stroke-dashoffset: 0; }
}

.brand-card-photo { width: 100%; max-height: 230px; object-fit: contain; display: block; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .4)); animation: brandFloat 5s ease-in-out infinite; }
.brand-showcase > .brand-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 767px) { .brand-showcase > .brand-card:last-child:nth-child(odd) { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .brand-card-photo { animation: none; } }
