/* ==========================================================================
   ilan-ver.css -- Yeni İlan Oluşturma Sayfasına Özel Stiller
   ========================================================================== */

/* --- Genel Form Yapısı ve Etiketler --- */
.form-section {
    background-color: var(--bg-light);
    padding: 1.5rem; /* 24px */
    border-radius: 0.75rem; /* 12px */
    border: 1px solid var(--border-color);
}

.form-label {
    display: block;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem; /* 8px */
}

.form-hint {
    font-size: 0.875rem; /* 14px */
    color: var(--text-dark);
    margin-top: 0.5rem; /* 8px */
}

/* --- Fotoğraf Yükleme Alanı --- */
.image-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.image-dropzone:hover,
.image-dropzone.dragover { /* JS ile sürükleme anında eklenecek class */
    border-color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* --- Fotoğraf Önizleme Stilleri --- */
.image-preview-item {
    position: relative;
    aspect-ratio: 1 / 1; /* Kare önizleme kutuları */
    border-radius: 0.5rem;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview-item:hover .remove-image-btn {
    opacity: 1;
}

/* --- İpuçları Kutusu --- */
.tips-box {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.tips-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-dark);
}

.tips-box ul li i {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    color: var(--primary);
}

/* --- Checkbox Stilleri --- */
/* Tailwind'in varsayılan checkbox stili zaten iyi, bu sadece küçük bir düzeltme */
#show-phone {
    background-color: var(--bg-dark);
}

/* ==========================================================================
   GENEL MODAL (PENCERE) STİLLERİ
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 500px; /* Önizleme kartı için ideal genişlik */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* ==========================================================================
   ilan-ver.css -- Yeni İlan Oluşturma Sayfasına Özel Stiller
   ========================================================================== */

/* --- Genel Form Yapısı ve Etiketler --- */
.form-section {
    background-color: var(--bg-light);
    padding: 1.5rem; /* 24px */
    border-radius: 0.75rem; /* 12px */
    border: 1px solid var(--border-color);
}

.form-label {
    display: block;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem; /* 8px */
}

.form-hint {
    font-size: 0.875rem; /* 14px */
    color: var(--text-dark);
    margin-top: 0.5rem; /* 8px */
}

/* --- Fotoğraf Yükleme Alanı --- */
.image-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.image-dropzone:hover,
.image-dropzone.dragover { /* JS ile sürükleme anında eklenecek class */
    border-color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* --- Fotoğraf Önizleme Stilleri --- */
.image-preview-item {
    position: relative;
    aspect-ratio: 1 / 1; /* Kare önizleme kutuları */
    border-radius: 0.5rem;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview-item:hover .remove-image-btn {
    opacity: 1;
}

/* --- İpuçları Kutusu --- */
.tips-box {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.tips-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-dark);
}

.tips-box ul li i {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    color: var(--primary);
}

/* --- Checkbox Stilleri --- */
#show-phone {
    background-color: var(--bg-dark);
}

/* ==========================================================================
   YENİ EKLENEN DOPİNG STİLLERİ
   ========================================================================== */
.doping-option-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.doping-option-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.doping-checkbox {
    /* Tailwind'in 'h-5 w-5 rounded text-orange-600 focus:ring-orange-500' stilleri uygulanacak */
    height: 1.25rem;
    width: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.doping-label {
    display: block;
    margin-left: 0.75rem;
    cursor: pointer;
}
.doping-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}
.doping-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.duration-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.duration-pills-container.hidden {
    display: none;
}

.duration-pill input[type="radio"] {
    display: none; /* Radyo butonunu gizle */
}

.duration-pill label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.duration-pill label:hover {
    border-color: var(--primary);
    color: var(--text-light);
}

.duration-pill input[type="radio"]:checked + label {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

/* --- ÖDEME ÖZETİ STİLLERİ --- */
.payment-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-dark);
}
.payment-summary-line.text-lg {
    font-size: 1.125rem; /* Toplam Tutar için */
}

/* ==========================================================================
   GENEL MODAL (PENCERE) STİLLERİ
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 500px; /* Önizleme kartı için ideal genişlik */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}