﻿/* ----- TAB MENÜ ----- */
.custom-detail-tabs {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 45px;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    overflow: hidden;
}
.scroll-container {
    display: flex;
    gap: 8px;
    margin-left: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }
.scroll-container a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 2px 4px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.scroll-container a:hover { background-color: #f2f2f2; }
@media (min-width: 768px) {
    .custom-detail-tabs { display: flex; justify-content: center; }
    .scroll-container { justify-content: center; overflow-x: visible; }
}

/* ----- ARAÇ DETAYLARI ----- */
.arac_detaylari {
    background-color: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.fiyat-aralik-container { display: flex; align-items: center; }
.marka-logo { margin-right: 15px; }
h1.baslik {
    font-size: 28px;
    color: #000;
    font-weight: bold;
    margin: 0;
}
.fiyat-miktari {
    font-size: 18px;
    color: #000;
    display: block;
}
@media (max-width: 768px) {
    .arac_detaylari { flex-direction: column; align-items: flex-start; }
    .fiyat-aralik-container { flex-direction: row; }
    h1.baslik { font-size: 28px; }
    .fiyat-miktari { font-size: 16px; }
}

/* ----- FİYAT BLOKLARI VE GENEL LAYOUT ----- */
.detail-container .price-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 16px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    min-height: 120px;
}
.price-range-container {
    flex-direction: column;
    justify-content: center;
}
.price-range-title {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}
.text-lg {
    font-size: 18px;
    color: #000;
    font-weight: bold;
}
.vehicle-detail .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #ffffff;
}
.detail-content {
    display: flex;
    margin: 30px;
    flex-wrap: nowrap;
    width: 100%;
    gap: 20px;
}
.left-column, .right-column {
    flex: 1;
    display: block;
    min-width: 0;
}
.left-column { flex-direction: column; }
@media (max-width: 768px) {
    .detail-content { flex-direction: column; margin: 10px; }
    .left-column, .right-column { width: 100%; }
}

/* ----- TEKNİK TABLO ----- */
.teknik-ozellikler-kutu {
    margin: 0;
    max-width: 550px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
.teknik-ozellikler-tablo {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.teknik-ozellikler-tablo thead {
    background: #333;
    color: white;
}
.teknik-baslik {
    display: flex;
    align-items: center;
}
.teknik-baslik .ikon {
    color: #FFD700;
    font-size: 18px;
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
    opacity: 0.8;
}
.baslik-detay {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.baslik-detay .etiket {
    font-size: 13px;
    color: white;
    font-weight: bold;
    margin-bottom: -10px;
}
.baslik-detay .deger {
    font-size: 13px;
    font-weight: bold;
    color: white;
}
.teknik-ozellikler-tablo tbody td {
    font-size: 15px;
    border-top: 1px solid #eee;
}
.teknik-ozellikler-tablo tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
.teknik-ozellikler-tablo tbody tr td:last-child {
    text-align: right;
    font-weight: bold;
}

/* ----- VİDEO BÖLÜMÜ ----- */
.video-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.video-container h2 {
    margin-bottom: 16px;
    color: #222;
    font-weight: 700;
    border-left: 5px solid #007BFF;
    padding-left: 12px;
    font-size: 24px;
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: 12px;
}
.yellow-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.yellow-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background-color: #ffcc00;
    z-index: -1;
    border-radius: 2px;
}

/* ----- SLIDER ---- */
#slider-container {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-top: 10px;
    position: relative;
    background-color: #fff;
}
@media screen and (max-width: 768px) {
    #slider-container {
        height: 330px;
    }
}

/* ----- AÇIKLAMA KUTUSU ----- */
.araba-aciklama {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #fafafa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.araba-aciklama h2, .araba-aciklama h3 {
    margin-top: 20px;
    color: #111;
}
.araba-aciklama p {
    margin-bottom: 15px;
}

/* ----- TABLO VE BUTONLAR ----- */
@media (max-width: 767px) {
  .detay-btn-desktop {
    display: none !important;
  }
}

.detay-btn-mobile-icon {
    display: none;
}
@media (min-width: 768px) {
    .detay-btn-desktop { display: inline-block; float: right; }
}
@media (max-width: 767px) {
   
    .detay-btn-mobile-icon {
        display: inline-block;
        color: #333;
        padding: 8px;
        border-radius: 50%;
        font-size: 16px;
        text-align: center;
        width: 36px;
        height: 36px;
        line-height: 20px;
    }
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.custom-table th, .custom-table td {
    padding: 12px;
    text-align: left;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}
.custom-table th {
    background-color: #172b4d;
    color: white;
}
.custom-table tr:nth-child(even) { background-color: #f9f9f9; }
.custom-table tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}
@media (max-width: 768px) {
    .custom-table th, .custom-table td {
        padding: 2px 4px;
    }
}

/* ----- NCAP BOX ve SWIPER RENKLER ----- */
.ncap-box {
    display: flex;
	width: 100%;
    flex-wrap: wrap;
    gap: 30px;
	margin-bottom: 30px;
	align-content: center;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.ncap-left {
    flex: 1;
    min-width: 220px;
}

.ncap-logo {
    width: 120px;
    margin-bottom: 10px;
}

.ncap-stars {
    margin: 8px 0;
}

.ncap-stars i {
    color: #FFD700;
    font-size: 20px;
    margin-right: 3px;
}

.ncap-score {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.ncap-note {
    font-size: 14px;
    color: #777;
}

.ncap-right {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    flex: 2;
}

.ncap-progress {
    text-align: center;
    width: 90px;
}

.circular-chart {
    width: 90px;
    height: 90px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: #FFD700;
    stroke-width: 3.8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dasharray 0.6s ease;
}

.percentage {
    fill: #333;
    font-family: sans-serif;
    font-size: 12px;
    text-anchor: middle;
}

.ncap-label {
    font-size: 12px;
    margin-top: 5px;
    color: #444;
    font-weight: 600;
    line-height: 16px;
}

@media (max-width: 768px) {
    .ncap-box {
        flex-direction: column;
        gap: 20px;
	width: 100%;
		padding:2px;
    }

    .ncap-right {
        justify-content: space-around;
		gap:10px;
    }

    .ncap-progress {
        width: 75px;
    }

    .circular-chart {
        width: 75px;
        height: 75px;
    }

    .percentage {
        font-size: 11px;
    }

    .ncap-label {
        font-size: 11px;
    }

    .ncap-logo {
        width: 100px;
    }
}


.renk-swiper {
  width: 100%;
  margin: auto;
  padding: 20px 0;
}

.renk-swiper .swiper-slide {
  text-align: center;
  width: 100%;
  height: auto;
}

.renk-swiper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 270px;
  display: block;
  margin: 0 auto;
  transform: scaleX(-1);
}

.renk-isim {
  font-size: 14px;
  margin-top: 8px;
  color: #444;
}



.renk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.renk-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.renk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.renk-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.renk-card img {
    transform: scaleX(-1);
}

.renk-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.renk-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}

.renk-isim {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}



.renk-aciklama-alt {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 60px 20px;
    margin-top: 60px;
}

.renk-aciklama-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.renk-aciklama-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    text-align: center;
}

.renk-aciklama-wrapper p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}



.detay-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 15px;
    max-width: 1200px;
    margin: auto;
}

.detay-resim img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.detay-ozellikler {
    overflow-x: auto;
}

.detay-ozellikler h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    border-left: 5px solid #007bff;
    padding-left: 12px;
}

.detay-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.detay-tablo th,
.detay-tablo td {
    text-align: left;
    padding: 2px 8px;
    border-bottom: 1px solid #ddd;
    border-right: none;
}

.detay-tablo td:first-child {
    font-weight: 600;
    color: #444;
    max-width: 140px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.detay-tablo th {
    background-color: #f8f9fa;
    color: #444;
    font-weight: 600;
    width: 50%;
}

.detay-tablo tr:nth-child(even) td {
    background-color: #f5f5f5;
}

.detay-tablo tr:nth-child(odd) td {
    background-color: #ffffff;
}

@media screen and (max-width: 768px) {
    .detay-container {
        grid-template-columns: 1fr;
    }
}

