/* ==========================================
   1. GENEL SAYFA VE PANEL AYARLARI
   ========================================== */
body {
    background: linear-gradient(135deg, rgb(3, 3, 60), rgb(76, 76, 200));
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label.form-baslik {
    color: white;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: block;
}

.main {
    margin-top: 3px;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.main.genis-panel {
    max-width: 1140px;
}

/* ==========================================
   2. FORMLAR, GİRDİLER VE BUTONLAR
   ========================================== */
input, select {
    width: 100%;
    height: 46px;
    padding: 10px 16px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-size: 15px;
    box-sizing: border-box;
}

button {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, rgb(15, 15, 120), rgb(35, 35, 180));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:hover { transform: translateY(-2px); }
p { color: rgba(255, 255, 255, 0.8); font-size: 14px; }

.hata {
    color: #ff6b6b;
    font-weight: bold;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 6px;
    display: block;
    text-align: center;
}

a {
  
    border-radius: 8px;
    text-decoration: none;
    padding: 3px 6px;
    color: white;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================
   3. HAFTANIN FIRSATLARI - VİTRİN VE SLIDER ALANI
   ========================================== */
.firsat-slider-cerceve .vitrin-kutusu.arac-kart {
    margin: 0;
    flex: 1;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* VİTRİN RESİMLERİNİ KESİN BOYUTLANDIRMA VE SABİTLEME */
.vitrin-resim-hazne {
    width: 100% !important;
    height: 190px !important;
    max-height: 190px !important;
    overflow: hidden !important;
    background-color: #02021e;
    position: relative;
    border-radius: 10px 10px 0 0;
}

.vitrin-resim-hazne img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* YAZILARI RESME DOĞRU YUKARI ÇEKME */
.kart-icerik {
    padding: 3px 6px 4px 6px !important;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}

.vitrin-etiket-satir {
    margin: 0 0 6px 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vitrin-etiket-satir h4 { margin: 0; font-size: 16px; color: white; }
.v-kod { font-size: 12px; background: rgba(255, 255, 255, 0.15); padding: 3px 6px; border-radius: 4px; }
.v-fiyat { font-size: 20px; font-weight: 800; color: #ff9f43; margin: 10px 0; }

/* NAVİGASYON BUTONLARI */
.vitrin-butonlar { display: flex; justify-content: center; gap: 12px; margin-top: 15px; }
.gez {
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    line-height: 44px;
}

/* ==========================================
   4. CANLI FİLTRELEME VE ARAMA BARI
   ========================================== */
.canli-filtre-bar { display: flex; gap: 15px; width: 100%; margin-bottom: 30px; flex-wrap: wrap; }
.canli-filtre-bar input, .canli-filtre-bar select { flex: 1; min-width: 220px; margin: 0; }

/* ==========================================
   5. PAZAR İLAN LİSTESİ VE ARAÇ KARTLARI
   ========================================== */
.pazar-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; width: 100%; }
.arac-kart { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.kart-ana-resim { width: 100%; height: 180px; object-fit: cover; cursor: pointer; }
.kart-galeri-serit { display: flex; gap: 5px; padding: 6px; background: rgba(0, 0, 0, 0.2); overflow-x: auto; }
.galeri-serit-piksel { width: 52px; height: 38px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.1); }
.kart-icerik h4 { margin: 0 0 4px 0; font-size: 14px; color: white; }
.kart-rozet { font-size: 11px; font-weight: bold; padding: 3px 8px; border-radius: 4px; display: inline-block; }
.kart-rozet.hatasiz { background: #2ecc71; color: #fff; }
.kart-rozet.kazali { background: #e74c3c; color: #fff; }
.kart-alt-fiyat-grup { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; margin-top: 12px; }
.k-fiyat { font-size: 18px; font-weight: bold; color: #ff9f43; }

.btn-wp-aracilik {
    background: #25d366; padding: 8px 14px; border-radius: 6px; font-size: 13px; text-decoration: none; color: white; font-weight: bold;
    display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.btn-wp-aracilik:hover { background: #20ba5a; }

/* ==========================================
   6. ADMİN PANELİ ÜRÜN YÖNETİM TABLOSU
   ========================================== */
.urunler { background: rgba(255, 255, 255, 0.95); width: 100%; border-collapse: collapse; color: #111; border-radius: 10px; overflow: hidden; margin-top: 20px; }
.urunler th { background-color: rgb(15, 15, 109); color: white; padding: 14px; text-align: left; }
.urunler td { padding: 14px; border-bottom: 1px solid #eef2f5; }
.guncelle { background: #ff9f43; padding: 6px 12px; border-radius: 4px; color: white; }
.sil { background: #ee5253; padding: 6px 12px; border-radius: 4px; color: white; }
.ekle { background: #10ac84; padding: 10px 20px; border-radius: 6px; color: white; }
.ekle-satiri { background-color: rgba(0, 0, 0, 0.05); text-align: center; }
.tablo-resim-onizleme { width: 65px; height: 48px; object-fit: cover; border-radius: 4px; }

/* ==========================================
   7. GÖRSEL YÜKLEME ALANLARI
   ========================================== */
.resim-yukleme-izgarasi { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; background: rgba(0, 0, 0, 0.15); padding: 15px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.2); margin: 15px 0; }
.resim-girdi-kutu { display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.05); padding: 8px; border-radius: 6px; }
.resim-girdi-kutu span { font-size: 11px; margin-bottom: 4px; color: #ccc; font-weight: bold; }
.resim-girdi-kutu input { width: 100%; height: auto; padding: 0; background: transparent; color: white; margin: 0; }

/* ==================================================================
   8. %100 SABİT VE EŞİT BOYUTLU BÜYÜK GÖRSEL GALERİSİ (LIGHTBOX)
   ================================================================== */
.pazar-lightbox {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.95); 
    align-items: center; 
    justify-content: center;
}

.lightbox-cerceve {
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    width: 800px !important;    
    height: 600px !important;   
    max-width: 80%; 
    max-height: 70vh; 
    background: #02021e; 
    padding: 0; 
    margin: 0;
    border-radius: 12px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

#lightboxGorsel {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: contain; 
    border-radius: 12px 12px 0 0; 
    display: block;
}

.lightbox-alt-kapat-btn {
    position: absolute !important; 
    bottom: 15px !important; 
    left: 50% !important;
    transform: translateX(-50%) !important; 
    width: 90% !important; 
    height: 40px !important;
    background: #ee5253 !important; 
    font-size: 14px !important; 
    font-weight: bold !important;
    color: white !important; 
    border: none !important; 
    border-radius: 6px !important;
    cursor: pointer !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important; 
    z-index: 15;
}

.lightbox-ok {
    cursor: pointer; 
    position: absolute; 
    top: 50%; 
    color: white; 
    font-size: 35px; 
    font-weight: bold;
    padding: 15px 12px; 
    background: rgba(0, 0, 0, 0.6); 
    border-radius: 6px; 
    transform: translateY(-50%);
    text-decoration: none; 
    user-select: none; 
    z-index: 20;
}
.lb-sol { left: 15px; }
.lb-sag { right: 15px; }

.lightbox-kapat {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    color: rgba(255, 255, 255, 0.7);
    font-size: 35px; 
    font-weight: bold; 
    cursor: pointer; 
    z-index: 25;
}
.lightbox-kapat:hover { color: white; }

/* Checkbox boyutu */
input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    margin: 0 5px 0 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    cursor: pointer;
}

/* =========================================================
   KOZAN İLANLARI - MODERN İLAN FORMU
   ========================================================= */

.ilan-form-panel {
    max-width: 760px !important;
    width: 100%;
    padding: 24px !important;
}

/* ---------------------------------------------------------
   FORM BAŞLIĞI
   --------------------------------------------------------- */

.ilan-form-panel .form-baslik {
    margin-bottom: 16px !important;
    font-size: 23px !important;
    color: #ff9f43 !important;
    letter-spacing: .2px;
}

/* ---------------------------------------------------------
   KATEGORİ / TEMEL ALANLAR
   --------------------------------------------------------- */

.ilan-form-panel .form-satir {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
    margin: 0 !important;
}

.ilan-form-panel .form-satir-uc {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
    margin: 0 !important;
}

.ilan-form-panel .form-sutun {
    min-width: 0;
}

/* ---------------------------------------------------------
   INPUT / SELECT
   --------------------------------------------------------- */

.ilan-form-panel input,
.ilan-form-panel select {
    width: 100% !important;
    height: 42px !important;
    margin: 5px 0 !important;
    padding: 8px 11px !important;

    border-radius: 8px !important;

    font-size: 13px !important;

    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(255,255,255,.15) !important;

    box-shadow:
        0 2px 8px rgba(0,0,0,.08);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.ilan-form-panel input:focus,
.ilan-form-panel select:focus,
.ilan-form-panel textarea:focus {

    outline: none;

    border-color: #ff9f43 !important;

    box-shadow:
        0 0 0 3px rgba(255,159,67,.15),
        0 4px 12px rgba(0,0,0,.12);
}

/* ---------------------------------------------------------
   TEXTAREA
   --------------------------------------------------------- */

.ilan-form-panel textarea {

    width: 100% !important;

    min-height: 125px;

    margin-top: 5px;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.5;

    box-shadow:
        0 2px 8px rgba(0,0,0,.08);
}

/* ---------------------------------------------------------
   KATEGORİ ALANLARI
   --------------------------------------------------------- */

.ilan-form-panel .dinamik-alan {

    margin-top: 8px;
}

/* ---------------------------------------------------------
   BÖLÜM BAŞLIĞI
   --------------------------------------------------------- */

.ilan-bolum-basligi {

    display: flex;

    align-items: center;

    gap: 7px;

    margin: 12px 0 7px;

    padding: 9px 12px;

    border-radius: 8px;

    border-left: 3px solid #ff9f43;

    background:
        linear-gradient(
            90deg,
            rgba(255,159,67,.12),
            rgba(255,159,67,.035)
        );

    color: #ffb36c;

    font-size: 13px;

    font-weight: 800;
}

/* =========================================================
   OTOMOBİL BÖLÜMÜ
   ========================================================= */

#alan-otomobil-ozel {

    padding-bottom: 2px;
}

/* =========================================================
   CHECKBOX TASARIMI
   ========================================================= */

.ilan-checkbox-grubu {

    display: flex !important;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 6px !important;

    margin: 7px 0 8px !important;

    padding: 7px !important;

    background:
        rgba(0,0,0,.12) !important;

    border:
        1px solid rgba(255,255,255,.06);

    border-radius: 8px;
}

.ilan-checkbox-grubu label {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 5px 8px;

    border-radius: 6px;

    background:
        rgba(255,255,255,.055);

    color: #ddd;

    font-size: 10px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.ilan-checkbox-grubu label:hover {

    background:
        rgba(255,159,67,.12);

    transform:
        translateY(-1px);
}

.ilan-checkbox-grubu input[type="checkbox"] {

    width: 14px !important;

    height: 14px !important;

    min-width: 14px !important;

    margin: 0 !important;

    padding: 0 !important;

    appearance: auto;

    accent-color: #ff9f43;

    box-shadow: none !important;
}

/* ---------------------------------------------------------
   FOTOĞRAF ALANI
   --------------------------------------------------------- */

.ilan-form-panel .form-grup-resimler {

    margin-top: 12px !important;

    padding: 12px !important;

    border-radius: 10px !important;

    background:
        rgba(0,0,0,.12) !important;
}

.ilan-form-panel .form-grup-resimler label[for="resimler"] {

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.ilan-form-panel .form-grup-resimler label[for="resimler"]:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 15px rgba(255,159,67,.22);
}

/* ---------------------------------------------------------
   FORM LABEL
   --------------------------------------------------------- */

.ilan-form-panel > form > .form-satir
label {

    font-size: 11px !important;
}

/* ---------------------------------------------------------
   GÖNDER BUTONU
   --------------------------------------------------------- */

.ilan-form-panel > form > button[type="submit"] {

    margin-top: 13px !important;

    height: 46px;

    border-radius: 8px;

    font-size: 14px;



    box-shadow:
        0 7px 18px rgba(255,159,67,.22);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.ilan-form-panel > form > button[type="submit"]:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 22px rgba(255,159,67,.30);
}

/* ---------------------------------------------------------
   MOBİL
   --------------------------------------------------------- */

@media (max-width: 680px) {

    .ilan-form-panel {

        padding: 15px !important;
    }

    .ilan-form-panel .form-satir {

        grid-template-columns: 1fr !important;
    }

    .ilan-form-panel .form-satir-uc {

        grid-template-columns: 1fr !important;
    }

    .ilan-form-panel input,
    .ilan-form-panel select {

        height: 42px !important;
    }

    .ilan-checkbox-grubu {

        justify-content: flex-start !important;
    }

}

/* ---------------------------------------------------------
   ÇOK KÜÇÜK TELEFON
   --------------------------------------------------------- */

@media (max-width: 400px) {

    .ilan-form-panel {

        padding: 10px !important;
    }

    .ilan-form-panel .form-baslik {

        font-size: 20px !important;
    }

    .ilan-checkbox-grubu label {

        font-size: 9px;
        padding: 5px 6px;
    }

}

/* =========================================================
   10. MOBİL UYUMLULUK
========================================================= */
@media (max-width:768px) {

    body {
        padding: 10px;
    }

    .main {
        padding: 20px;
    }

    .pazar-ust-sabit-menu {
        flex-direction: column;
        gap: 10px;
    }

    .form-satir {
        flex-direction: column;
    }
}
