:root {
    --bg-color: #0a0a0a; --surface-color: #1a1a1a; --nav-bg: #000000;
    --text-main: #ffffff; --text-muted: #a1a1aa; --border-color: #27272a; --brand-red: #e11d48;
}

[data-theme="light"] {
    --bg-color: #f4f4f5; --surface-color: #ffffff; --nav-bg: #ffffff;
    --text-main: #18181b; --text-muted: #71717a; --border-color: #e4e4e7; --brand-red: #e11d48;
}

* { box-sizing: border-box; font-family: 'Inter', sans-serif; transition: background 0.3s, color 0.3s; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg-color); margin: 0; color: var(--text-main); overflow-x: hidden; width: 100%; }

/* NAVBAR & SIDEBAR */
.navbar { background: var(--nav-bg); padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2000; border-bottom: 2px solid var(--brand-red); }
.logo { font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.logo span { color: var(--brand-red); }
.menu-trigger { color: var(--brand-red); font-size: 24px; cursor: pointer; padding: 5px; }

.sidebar { position: fixed; top: 0; right: -300px; width: 300px; height: 100%; background: var(--surface-color); z-index: 6000; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 25px 15px; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
.sidebar.active { right: 0; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 5900; display: none; backdrop-filter: blur(3px); }
.sidebar-overlay.active { display: block; }
.sidebar-menu { list-style: none; padding: 0; margin: 20px 0; }
.sidebar-menu li { margin-bottom: 12px; }
.sidebar-menu a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.05); }
.sidebar-menu a i { color: var(--brand-red); width: 20px; text-align: center; }
.info-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 15px; padding: 15px; margin-top: auto; }
.info-card-title { font-size: 10px; font-weight: 800; color: var(--brand-red); text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }

/* HEADER */
header { padding: 60px 15px 50px; text-align: center; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1500'); background-size: cover; background-position: center; }
header h1 { font-size: 24px; font-weight: 800; margin: 0; text-transform: uppercase; color: white; line-height: 1.3; }
header h1 span { color: var(--brand-red); display: block; margin-top: 5px; }
.search-area { max-width: 500px; margin: 25px auto 0; padding: 0 10px; }
.search-box { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; padding: 4px 12px; }
.search-box input { background: transparent; border: none; outline: none; color: white; padding: 10px; width: 100%; font-size: 14px; }
.search-box i { color: var(--brand-red); }

/* GRID & CARDS */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 10px 10px 40px; }
.section-header { margin: 25px 0 12px; border-left: 3px solid var(--brand-red); padding-left: 10px; font-weight: 800; font-size: 13px; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.car-card { background: var(--surface-color); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); cursor: pointer; animation: fadeIn 0.4s ease forwards; position: relative; }
.car-card.sold { filter: grayscale(0.6); opacity: 0.8; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.car-img { width: 100%; height: 140px; position: relative; overflow: hidden; }
.car-img img { width: 100%; height: 100%; object-fit: cover; }

/* YENİ PREMIUM ÇAPRAZ SATILDI ŞERİTİ */
.sold-badge { 
    position: absolute; 
    top: 15px; 
    left: -30px; 
    background: rgba(225, 29, 72, 0.95); 
    color: #fff; 
    font-size: 10px; 
    font-weight: 900; 
    padding: 6px 40px; 
    z-index: 10; 
    transform: rotate(-35deg); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.2);
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.img-hint { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); color: white; font-size: 9px; padding: 4px 8px; border-radius: 20px; backdrop-filter: blur(4px); pointer-events: none; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 4px; }
.car-info { padding: 10px; }
.car-name { font-size: 12px; font-weight: 700; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-price { font-size: 14px; font-weight: 800; color: var(--brand-red); }
.taksit-badge { font-size: 10px; color: var(--text-muted); margin-top: 5px; display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--border-color); padding-top: 5px; }
.taksit-badge i { color: #25d366; font-size: 11px; }
.show-more-btn { width: 100%; margin: 20px 0; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--text-main); border-radius: 12px; font-weight: 700; font-size: 12px; cursor: pointer; }

/* FOOTER */
footer { background: var(--nav-bg); padding: 40px 20px 20px; border-top: 2px solid var(--brand-red); margin-top: 50px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; } }
.footer-col h4 { color: var(--brand-red); text-transform: uppercase; font-size: 12px; font-weight: 800; margin-bottom: 20px; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
@media (max-width: 768px) { .footer-links a { justify-content: center; } }
.footer-links a i { color: var(--brand-red); font-size: 16px; width: 20px; }
.footer-info-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 15px; padding: 20px; }
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
@media (max-width: 768px) { .footer-social { justify-content: center; } }
.footer-social a { color: var(--text-main); font-size: 24px; }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* MODAL & GALLERY */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 7000; display: none; align-items: center; justify-content: center; padding: 10px; }
.modal-content { background: var(--surface-color); width: 95%; max-width: 450px; max-height: 92vh; border-radius: 20px; overflow-y: auto; position: relative; scrollbar-width: none; }
.modal-slider { width: 100%; height: 35vh; background: #000; position: relative; }
.modal-slider-wrapper { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.modal-slide { flex: 0 0 100%; scroll-snap-align: start; }
.modal-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.zoom-hint { text-align: center; color: var(--text-muted); font-size: 10px; margin-top: 8px; font-weight: 500; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0; }
.spec-item { background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); padding: 10px; border-radius: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.modal-taksit-info { background: rgba(225, 29, 72, 0.1); border: 1px dashed var(--brand-red); padding: 12px; border-radius: 12px; text-align: center; margin-top: 15px; font-size: 12px; font-weight: 600; color: var(--text-main); }
.modal-actions { display: flex; gap: 10px; margin-top: 15px; }
.btn-wa { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; background: #25d366; color: white; padding: 14px 5px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: 13px; }
.btn-call { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand-red); color: white; padding: 14px 5px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: 13px; }

.fullscreen-gallery { position: fixed; inset: 0; background: #000; z-index: 8000; display: none; }
.fullscreen-wrapper { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fullscreen-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.fullscreen-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
