/* OTOPARÇA 2026 MODERN UI/UX STYLESHEET */

:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --header-bg: #0f172a;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-green: #10b981;
    --accent-orange: #f97316;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding-bottom: 70px; /* Space for mobile nav */
}

/* TOP BAR */
.top-bar {
    background: #020617;
    color: #94a3b8;
    font-size: 12px;
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar strong { color: #f8fafc; }
.top-links a { color: #94a3b8; text-decoration: none; margin-left: 15px; }
.top-links a:hover { color: white; }

/* HEADER */
.main-header {
    background-color: var(--header-bg);
    color: white;
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-accent { color: var(--primary); }
.badge-2026 {
    background: var(--primary);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: super;
}

/* SEARCH BAR */
.search-container { flex: 1; max-width: 550px; }
.search-wrapper {
    display: flex;
    align-items: center;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 4px 6px 4px 14px;
}
.search-wrapper input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 10px;
    font-size: 13px;
    outline: none;
}
.search-wrapper input::placeholder { color: #64748b; }
.cam-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
}
.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* HEADER ACTIONS & GARAGE */
.header-actions { display: flex; align-items: center; gap: 15px; }
.garage-selector {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.garage-info { display: flex; flex-direction: column; }
.garage-label { font-size: 10px; color: #94a3b8; text-transform: uppercase; }
.garage-car { font-size: 12px; font-weight: 600; color: #f8fafc; }

.action-btn {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}
.cart-btn {
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
    position: relative;
}
.cart-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-orange);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 40px;
    border-bottom: 4px solid var(--primary);
}
.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 50px;
    align-items: center;
}
.hero-tag {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.hero-content h1 {
    font-size: 36px;
    line-height: 1.2;
    margin: 20px 0 15px 0;
    font-weight: 800;
}
.highlight { color: #60a5fa; }
.hero-content p { color: #94a3b8; font-size: 15px; line-height: 1.6; }
.trust-pills { display: flex; gap: 15px; margin-top: 25px; }
.pill { background: rgba(255,255,255,0.05); padding: 6px 14px; border-radius: 20px; font-size: 12px; color: #cbd5e1; }

/* VEHICLE WIDGET */
.vehicle-widget {
    background: white;
    border-radius: 16px;
    padding: 24px;
    color: var(--text-main);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.widget-tabs { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 20px; }
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.select-group { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.select-group label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.select-group select, .vin-input-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.widget-cta {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.widget-cta:hover { background: var(--primary-hover); }

.vin-input-box { margin-bottom: 15px; }
.input-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; display: block; }
.upload-vin-area { background: #f1f5f9; padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 15px; }
.upload-btn { background: white; border: 1px dashed var(--primary); color: var(--primary); padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 12px; margin-top: 8px; cursor: pointer; }

/* TRUST STRIP */
.trust-strip { background: white; border-bottom: 1px solid var(--border-color); padding: 25px 40px; }
.container { max-width: 1280px; margin: 0 auto; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strip-item { display: flex; align-items: center; gap: 15px; }
.strip-icon { font-size: 28px; background: #eff6ff; width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.strip-item h4 { font-size: 13px; font-weight: 700; }
.strip-item p { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* CATEGORIES */
.categories-section { padding: 50px 40px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.section-header h2 { font-size: 20px; font-weight: 800; }
.view-all { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.category-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); border-color: var(--primary); }
.cat-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.category-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.category-card p { font-size: 10px; color: var(--text-muted); }

/* PRODUCTS SECTION */
.products-section { padding: 0 40px 60px 40px; }
.car-badge { background: #dbeafe; color: var(--primary); padding: 4px 10px; border-radius: 6px; font-size: 18px; }
.subtext { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.fit-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ecfdf5;
    color: var(--accent-green);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}
.product-img {
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin-bottom: 12px;
}
.brand-tag { font-size: 10px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.product-title { font-size: 13px; font-weight: 700; line-height: 1.4; margin: 4px 0 10px 0; height: 36px; overflow: hidden; }
.product-meta { font-size: 10px; display: flex; justify-content: space-between; margin-bottom: 15px; }
.in-stock { color: var(--accent-green); font-weight: 700; }
.oem-no { color: var(--text-muted); }
.product-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price-box { display: flex; flex-direction: column; }
.old-price { font-size: 11px; text-decoration: line-through; color: var(--text-muted); }
.price { font-size: 18px; font-weight: 800; color: var(--text-main); }
.add-cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

/* MOBILE STICKY NAV */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    justify-content: space-around;
    z-index: 1000;
}
.nav-item { text-decoration: none; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; font-size: 10px; font-weight: 600; }
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 18px; }

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; }
    .strip-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .main-header { padding: 12px 16px; }
    .search-container { display: none; }
    .categories-section, .products-section, .hero-section { padding: 20px 16px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .mobile-nav { display: flex; }
}

#activeCarName {
    cursor: pointer;
    transition: all 0.2s ease;
}

#activeCarName:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ==========================================
   BLOG SECTION & BENTO GRID STYLES
   ========================================== */
.blog-section {
    padding: 60px 0;
    background-color: transparent;
}

/* Farklı Boyutlarda Dinamik Bento Layout */
.blog-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 25px;
}

/* Background Image Kart Yapısı */
.blog-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
}

/* Öne Çıkan İlk Kart (Sol Tarafı Kaplayan Büyük Kart Layout) */
.blog-card.featured-card {
    grid-column: span 2;
    min-height: 380px;
}

.blog-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.35);
}

/* Arka Plan Görseli Üzerine Okunabilirlik İçin Gradient Overlay */
.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.95) 100%);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.blog-card:hover .blog-card-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.98) 100%);
}

/* Kart İçeriği */
.blog-card-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
}

.blog-category {
    background-color: #2663eb;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.blog-date {
    color: #cbd5e1;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #ffffff;
    transition: color 0.2s ease;
}

.blog-card.featured-card .blog-title {
    font-size: 24px;
}

.blog-excerpt {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #60a5fa;
    margin-top: 6px;
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-read-more {
    gap: 10px;
    color: #93c5fd;
}

/* Responsive (Mobil / Tablet Uyumlu Yapı) */
@media (max-width: 992px) {
    .blog-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card.featured-card {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .blog-bento-grid {
        grid-template-columns: 1fr;
    }

    .blog-card.featured-card {
        grid-column: span 1;
        min-height: 320px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-title, .blog-card.featured-card .blog-title {
        font-size: 18px;
    }
}

/* ================================================================
   SELECTABLE SITE THEMES — layout is shared, visual systems differ
   ================================================================ */
body[class*="theme-"] {
    --theme-radius: 12px;
    --theme-hero: linear-gradient(135deg, var(--header-bg), #1e293b);
    --theme-topbar: #020617;
    --theme-search: #1e293b;
    --theme-search-border: #334155;
}

body.theme-midnight {
    --bg-main:#050816; --bg-surface:#0d1324; --header-bg:#080c18;
    --primary:#22d3ee; --primary-hover:#06b6d4; --accent-green:#34d399;
    --accent-orange:#fbbf24; --text-main:#e6f7ff; --text-muted:#8294ad;
    --border-color:#22304a; --card-shadow:0 16px 45px rgba(0,0,0,.45);
    --theme-radius:18px; --theme-topbar:#02040b; --theme-search:#10192d;
    --theme-search-border:#24405a; --theme-hero:radial-gradient(circle at 80% 15%,#164e63 0,transparent 35%),linear-gradient(135deg,#050816,#111b34);
}

body.theme-crimson {
    --bg-main:#f4f4f5; --bg-surface:#fff; --header-bg:#18181b;
    --primary:#dc2626; --primary-hover:#991b1b; --accent-green:#16a34a;
    --accent-orange:#f97316; --text-main:#18181b; --text-muted:#71717a;
    --border-color:#d4d4d8; --card-shadow:7px 7px 0 rgba(24,24,27,.12);
    --theme-radius:2px; --theme-topbar:#7f1d1d; --theme-search:#27272a;
    --theme-search-border:#52525b; --theme-hero:linear-gradient(115deg,#18181b 0 68%,#7f1d1d 68%);
}

body.theme-forest {
    --bg-main:#f2f7f4; --bg-surface:#fff; --header-bg:#12372a;
    --primary:#2f855a; --primary-hover:#276749; --accent-green:#68d391;
    --accent-orange:#d69e2e; --text-main:#18352a; --text-muted:#667c71;
    --border-color:#d6e5dc; --card-shadow:0 14px 35px rgba(18,55,42,.10);
    --theme-radius:22px; --theme-topbar:#0b281e; --theme-search:#1e4a39;
    --theme-search-border:#3e6b58; --theme-hero:linear-gradient(140deg,#12372a,#2f6b50 60%,#8baa83);
}

body.theme-sunset {
    --bg-main:#fff7ed; --bg-surface:#fffbf5; --header-bg:#451a03;
    --primary:#ea580c; --primary-hover:#c2410c; --accent-green:#65a30d;
    --accent-orange:#f59e0b; --text-main:#431407; --text-muted:#9a6655;
    --border-color:#fed7aa; --card-shadow:0 12px 30px rgba(154,52,18,.12);
    --theme-radius:14px; --theme-topbar:#7c2d12; --theme-search:#63270d;
    --theme-search-border:#9a4b20; --theme-hero:linear-gradient(120deg,#431407,#9a3412 55%,#f97316);
}

body.theme-violet {
    --bg-main:#f5f3ff; --bg-surface:rgba(255,255,255,.72); --header-bg:#1e103b;
    --primary:#8b5cf6; --primary-hover:#7c3aed; --accent-green:#2dd4bf;
    --accent-orange:#fb7185; --text-main:#24123f; --text-muted:#77668d;
    --border-color:#ddd6fe; --card-shadow:0 18px 45px rgba(91,33,182,.14);
    --theme-radius:24px; --theme-topbar:#14082d; --theme-search:rgba(255,255,255,.09);
    --theme-search-border:rgba(196,181,253,.28); --theme-hero:radial-gradient(circle at 75% 20%,#7c3aed 0,transparent 38%),linear-gradient(135deg,#1e103b,#312e81);
}

body.theme-mono {
    --bg-main:#eeeeee; --bg-surface:#fff; --header-bg:#000;
    --primary:#000; --primary-hover:#333; --accent-green:#000;
    --accent-orange:#000; --text-main:#000; --text-muted:#4b4b4b;
    --border-color:#000; --card-shadow:6px 6px 0 #000;
    --theme-radius:0; --theme-topbar:#fff; --theme-search:#fff;
    --theme-search-border:#fff; --theme-hero:linear-gradient(90deg,#000 0 62%,#242424 62%);
}

body[class*="theme-"] .top-bar { background:var(--theme-topbar); }
body[class*="theme-"] .main-header { background:var(--header-bg); }
body[class*="theme-"] .hero-section { background:var(--theme-hero); border-color:var(--primary); }
body[class*="theme-"] .search-wrapper,
body[class*="theme-"] .garage-selector { background:var(--theme-search); border-color:var(--theme-search-border); border-radius:var(--theme-radius); }
body[class*="theme-"] .vehicle-widget,
body[class*="theme-"] .category-card,
body[class*="theme-"] .product-card { background:var(--bg-surface); border-radius:var(--theme-radius); border-color:var(--border-color); box-shadow:var(--card-shadow); }
body[class*="theme-"] .widget-cta,
body[class*="theme-"] .search-btn,
body[class*="theme-"] .btn-action { border-radius:calc(var(--theme-radius) * .55); }
body[class*="theme-"] .categories-section,
body[class*="theme-"] .products-section { background:var(--bg-main); }
body[class*="theme-"] input,
body[class*="theme-"] select { border-radius:calc(var(--theme-radius) * .55); }

body.theme-midnight .category-card,
body.theme-midnight .product-card { background:linear-gradient(145deg,#0d1324,#101a30); }
body.theme-midnight .product-title,
body.theme-midnight .category-card h3,
body.theme-midnight .section-header h2 { color:#e6f7ff; }
body.theme-midnight .product-img { background:#080d1b; }

body.theme-crimson .category-card,
body.theme-crimson .product-card { border:2px solid #18181b; }
body.theme-crimson .hero-tag { border-radius:0; background:#dc2626; color:#fff; }
body.theme-crimson .highlight { color:#ef4444; text-transform:uppercase; }

body.theme-forest .category-card { border:1px solid #c7ddd0; }
body.theme-forest .cat-icon { background:#dff0e5; border-radius:50%; }
body.theme-forest .hero-tag { background:rgba(255,255,255,.14); color:#dcfce7; }

body.theme-sunset .category-card,
body.theme-sunset .product-card { border:1px solid #fed7aa; }
body.theme-sunset .hero-tag { background:#ffedd5; color:#9a3412; }
body.theme-sunset .highlight { color:#fdba74; }

body.theme-violet { background-image:radial-gradient(circle at 10% 20%,#ede9fe 0,transparent 28%),radial-gradient(circle at 90% 70%,#fae8ff 0,transparent 30%); }
body.theme-violet .category-card,
body.theme-violet .product-card,
body.theme-violet .vehicle-widget { backdrop-filter:blur(16px); border:1px solid rgba(139,92,246,.18); }
body.theme-violet .highlight { color:#c4b5fd; }

body.theme-mono .top-bar { color:#000; border-bottom:2px solid #000; }
body.theme-mono .top-bar strong { color:#000; }
body.theme-mono .category-card,
body.theme-mono .product-card,
body.theme-mono .vehicle-widget { border:3px solid #000; }
body.theme-mono .hero-tag,
body.theme-mono .pill { border:2px solid #fff; border-radius:0; background:transparent; color:#fff; }
body.theme-mono .highlight { color:#fff; text-decoration:underline; }
