/* ==========================================
   ÇARŞIBU - STANDART TAİLWİND MİNİ SİSTEMİ
   ========================================== */
:root {
    /* --- E-TİCARET & WHATSAPP DÖNÜŞÜM PALETİ --- */
    --color-primary: #00E676;         /* Canlı WhatsApp yeşili */
    --color-primary-light: #E8F8F0;   /* Hafif yeşil ton */

    --color-secondary: #0B141A;       /* Kurumsal koyu ton */
    --color-secondary-light: #111B21; /* Footer ve bölümler için koyu geçiş */

    --color-text-main: #E9EDEF;       /* Ana yazı rengi (Koyu temada okunur açık gri) */
    --color-white: #FFFFFF;           /* Kart ve kutu zeminleri için saf beyaz */
    --color-gray: #8696A0;            /* Net okunabilir gri */
    --color-gray-dark: #202C33;       /* WhatsApp uyumlu koyu gri / panel tonu */
}

/* ==========================================
   1. BACKGROUND (BG) SINIFLARI
   ========================================== */
.bg-primary         { background-color: var(--color-primary); }
.bg-primary-light   { background-color: var(--color-primary-light); }
.bg-secondary       { background-color: var(--color-secondary); }
.bg-secondary-light { background-color: var(--color-secondary-light); }
 
.bg-black           { background-color: #000000; }
.bg-white           { background-color: var(--color-white); }
.bg-gray            { background-color: var(--color-gray); }
.bg-gray-dark       { background-color: var(--color-gray-dark); }


/* ==========================================
   2. TEXT COLOR (YAZI RENGİ) SINIFLARI
   ========================================== */
.text-primary         { color: var(--color-primary); }
.text-primary-light   { color: var(--color-primary-light); }
.text-secondary       { color: var(--color-secondary); }
.text-secondary-light { color: var(--color-secondary-light); }
 
.text-black           { color: #000000; }
.text-white           { color: var(--color-white); }
.text-gray            { color: var(--color-gray); }
.text-gray-dark       { color: var(--color-gray-dark); }
.text-main            { color: var(--color-text-main); }


/* ==========================================
   3. PADDING & MARGIN
   ========================================== */
.p-sm { padding: 0.5rem; }   /* 8px */
.p-md { padding: 1rem; }    /* 16px */
.p-lg { padding: 2rem; }    /* 32px */

.py-sm { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-md { padding-top: 1rem; padding-bottom: 1rem; }
.py-lg { padding-top: 2rem; padding-bottom: 2rem; }

.px-sm { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-md { padding-left: 1rem; padding-right: 1rem; }
.px-lg { padding-left: 2rem; padding-right: 2rem; }

.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 2rem; }

.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 2rem; }


/* --- TEMEL SIFIRLAMA --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--color-secondary-light);
    color: var(--color-text-main);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}


/* ==========================================
   5. FONT & TİPOGRAFİ
   ========================================== */
/* Mobil Öncelikli Varsayılan Boyutlar (Küçük ve kompakt) */
.text-sm { font-size: 0.6875rem; } /* 11px */
.text-md { font-size: 0.8125rem; } /* 13px */
.text-lg { font-size: 1rem; }      /* 16px */

/* Tablet ve Masaüstü Ekranlar (768px ve üzeri) için Orijinal Boyutlar */
@media (min-width: 768px) {
    .text-sm { font-size: 0.875rem; }  /* 14px */
    .text-md { font-size: 1rem; }      /* 16px */
    .text-lg { font-size: 1.25rem; }   /* 20px */
}

.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }


/* ==========================================
   6. FLEXBOX & GRİD
   ========================================== */
.d-flex            { display: flex; }
.flex-col        { flex-direction: column; }
.flex-row        { flex-direction: row; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap       { flex-wrap: wrap; }

.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }

.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }


/* ==========================================
   ÖZEL LİSTE SINIFI (.list)
   ========================================== */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* ==========================================
   7. BİLEŞENLER: BUTTON SİSTEMİ (.btn)
   ========================================== */
.btn {
  display: inline-block;
  width: auto;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-secondary-outline {
    background: var(--color-secondary-light);
    border-color: var(--color-gray);
    color: var(--color-white);
}
.btn-secondary-outline:hover,
.btn-secondary-outline.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-secondary);
}

/* --- ORAN (ASPECT RATIO) SINIFLARI --- */
.aspect-ratio-16-9 { aspect-ratio: 16 / 9; }
.aspect-ratio-3-4  { aspect-ratio: 3 / 4; }
.aspect-ratio-2-3  { aspect-ratio: 2 / 3; }
.aspect-ratio-9-16 { aspect-ratio: 9 / 16; width: 100%; max-height: 500px; object-fit: cover; }
.aspect-ratio-1-1  { aspect-ratio: 1 / 1; }
.aspect-ratio-4-3  { aspect-ratio: 4 / 3; }


/* ==========================================
   8. KART YAPILARI & SEÇİLEBİLİR KARTLAR
   ========================================== */
.card {
  background: #FFFFFF;
  border: 1px solid var(--color-gray);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
}

.card-img-top,
.card-img-top-4-5 {
  width: 100%;
  object-fit: cover;
}
.card-img-top { aspect-ratio: 16 / 9; }
.card-img-top-4-5 { aspect-ratio: 4 / 5; }

.card-body {
  padding: 1rem;
  flex-grow: 1;
  color: #111B21;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111B21;
}

.card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-gray);
  margin-top: auto;
  color: #111B21;
}

.card.card-selectable {
  cursor: pointer;
  position: relative;
  border: 1px solid var(--color-gray) !important;
  border-radius: 0.75rem;
}

.card.card-selectable input[type="radio"] {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  z-index: 2;
  accent-color: var(--color-primary);
}

.card.card-selectable.card-selectable-primary:has(input[type="radio"]:checked) {
  border-color: var(--color-primary) !important;
}
.card.card-selectable.card-selectable-primary input[type="radio"]:checked ~ .card-body,
.card.card-selectable.card-selectable-primary input[type="radio"]:checked ~ .card-footer {
  background-color: var(--color-primary-light);
}


/* ==========================================
   9. BORDER & RADIUS
   ========================================== */
.border                 { border-width: 1px; border-style: solid; border-color: var(--color-gray); }
.border-0               { border-width: 0; }
.border-2               { border-width: 2px; border-style: solid; }
.border-4               { border-width: 4px; border-style: solid; }
.border-5               { border-width: 5px; border-style: solid; }

.border-primary         { border-color: var(--color-primary); }
.border-primary-light   { border-color: var(--color-primary-light); }
.border-secondary       { border-color: var(--color-secondary); }
.border-secondary-light { border-color: var(--color-secondary-light); }
.border-gray            { border-color: var(--color-gray); }
.border-gray-dark       { border-color: var(--color-gray-dark); }
.border-white           { border-color: var(--color-white); }
.border-black           { border-color: #000000; }

.rounded-none { border-radius: 0; }
.rounded-sm   { border-radius: 0.25rem; } 
.rounded      { border-radius: 0.5rem; }    
.rounded-md   { border-radius: 0.75rem; }   
.rounded-lg   { border-radius: 1rem; }      
.rounded-full { border-radius: 9999px; }   

/* Tek bir köşeyi veya kenarı yuvarlatmak için özel yardımcı sınıflar */
.rounded-top {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.rounded-end {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.rounded-bottom {
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.rounded-start {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}


/* ==========================================
   10. STICKY & LIGHTBOX
   ========================================== */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 20;
}

.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 20, 26, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    border-top: 1px solid var(--color-gray);
    display: flex;
    justify-content: center;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 0.75rem;
    object-fit: contain;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

.footer-spacing { margin-bottom: 80px; }
.footer-address { font-style: normal; }
.footer-phone-link { text-decoration: none; }
.footer-link { text-decoration: underline; }

.whatsapp-bar-btn {
    max-width: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-secondary, #000);
}

.lightbox-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

/* Varsayılan (Mobil Görünüm): Dikey çizgi gizlenir, elemanlar alt alta durur */
/* Mobil Görünüm: Alt alta ve ortada yatay çizgi */
.info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-divider {
    display: block;
    width: 60px;   /* Mobilde yatay çizginin uzunluğu */
    height: 1px;   /* Çizgi kalınlığı */
    background: rgba(255, 255, 255, 0.25);
    margin: 10px auto;
}

/* Büyük Ekranlar (768px ve üzeri): Yan yana ve arada dikey çizgi */
@media (min-width: 768px) {
    .info-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-divider {
        width: 1px;    /* Masaüstünde dikey çizginin kalınlığı olur */
        height: 20px;  /* Masaüstünde dikey çizginin boyu olur */
        margin: 0 15px; /* Yazılarla arasındaki mesafe */
    }
}

/* Video Kapsayıcısı: Mobilde tam genişlik, büyük ekranda maksimum sabit ölçü */
.video-responsive-container {
    width: 100%;
    max-width: 420px; /* Büyük ekranlarda videonun aşırı büyümesini ve kesilmesini engeller */
    margin: 0 auto;    /* Ortalar */
    aspect-ratio: 9 / 16; /* Dikey video oranı */
}

/* Video Oynatıcı Ayarı */
.responsive-video {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Dilerseniz köşeleri yumuşatabilirsiniz */
    display: block;
    object-fit: cover;
}

/* Gizli özellikler alanı başlangıçta tamamen kapalıdır */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}


/* "Tüm Özellikleri Gör" Buton Stili */
.read-more-btn {
    background: none;
    border: none;
    color: #4ade80; /* Sitenizin yeşil vurgu rengi */
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 6px;
    display: inline-block;
    text-decoration: underline;
}

.read-more-btn:hover {
    opacity: 0.8;
}

/* Büyük Ekranlar ve Masaüstü (768px ve üzeri): */
@media (min-width: 768px) {
    /* Tüm özellikler masaüstünde otomatik olarak açık kalır */
    .collapsible-content {
        max-height: none !important;
        overflow: visible !important;
    }

    /* "Tüm Özellikleri Gör" butonu masaüstünde gizlenir */
    .read-more-btn {
        display: none !important;
    }
}