@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- TEMEL AYARLAR --- */
body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- DARK MODE AYARLARI --- */
.dark body { background-color: #111827; color: #f3f4f6; }
.dark .card { background-color: #1f2937; border-color: #374151; color: #e5e7eb; }
.dark .text-gray-900 { color: #f9fafb; }
.dark .text-gray-800 { color: #f3f4f6; }
.dark .text-gray-700 { color: #d1d5db; }
.dark .text-gray-600 { color: #9ca3af; }
.dark .bg-white { background-color: #1f2937; }
.dark .bg-gray-50 { background-color: #111827; }
.dark .border-gray-200, .dark .border-gray-300 { border-color: #374151; }

.dark textarea, .dark input[type="url"], .dark select {
    background-color: #374151; border-color: #4b5563; color: #fff;
}
.dark textarea::placeholder { color: #9ca3af; }

/* --- BİLEŞENLER --- */
.card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-input-label { cursor: pointer; transition: all 0.2s; }
.file-input-label:hover { border-color: #3b82f6; background-color: #eff6ff; }
.dark .file-input-label:hover { background-color: #374151; border-color: #60a5fa; }

.btn-primary { transition: transform 0.1s ease, box-shadow 0.2s ease; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* --- MODAL (POPUP) --- */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}
.modal-content { animation: scaleIn 0.2s ease-out; }
.dark .modal-content { background-color: #1f2937; border: 1px solid #374151; color: #fff; }

/* Modal İçi JSON Gösterimi */
.json-display {
    white-space: pre-wrap;       /* Uzun satırları aşağı kaydır */
    word-break: break-all;       /* Kelime bütünlüğünü bozmadan sığdır */
    max-height: 300px;           /* Çok uzunsa scroll çıksın */
    overflow-y: auto;
}

/* Tıklanabilir İstatistik */
.clickable-stat {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.2s;
}
.clickable-stat:hover { color: #2563eb; }
.dark .clickable-stat:hover { color: #60a5fa; }

/* --- ANİMASYONLAR --- */
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.animate-fade-in-down { animation: fadeInDown 0.2s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#toast-message { transition: opacity 0.3s ease, transform 0.3s ease; z-index: 9999; }
.ad-spacer { margin: 1.5rem 0; min-height: 100px; display: flex; justify-content: center; align-items: center; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.dark ::-webkit-scrollbar-thumb { background: #4b5563; }