@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #1e40af;
  --primary-hover: #1d4ed8;
  --secondary-color: #0f172a;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

@supports not (overflow-x: clip) {
  html, body {
    overflow-x: hidden !important;
  }
}

/* Evrensel Flexbox ve Grid Taşma Önleyici (Child Elements min-width: 0) */
.flex > *,
.inline-flex > *,
.grid > *,
[class*="flex"] > *,
[class*="grid"] > * {
  min-width: 0;
}

/* Evrensel Yatay Taşma Önleme Kuralları */
img, video, iframe, embed, object, svg, canvas {
  max-width: 100% !important;
  height: auto;
  box-sizing: border-box;
}

table {
  max-width: 100%;
  border-collapse: collapse;
}

.table-responsive,
.overflow-x-auto {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre, code {
  white-space: pre-wrap !important;
  word-break: break-all !important;
  max-width: 100%;
  overflow-x: auto;
}

h1, h2, h3, h4, h5, h6, p, span, a, label, li, dt, dd, th, td, blockquote {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a, span {
  word-break: break-word;
}

/* Form Elemanlarının Taşmasını Önleme */
input, select, textarea, button {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Standart Sabit Boyutlu Reklam Alanları (CLF & Shift Önleme ve Duyarlı Esneklik) */
.tn-top-ads-wrapper {
  min-height: 80px;
  max-width: 100%;
}
.tn-ad-card {
  min-height: 94px;
  height: auto;
  max-width: 100%;
}
.tn-side-ad-box {
  min-height: 340px;
  max-width: 100%;
}
.tn-bottom-ads-wrapper {
  min-height: 140px;
  max-width: 100%;
}
.tn-content-banner {
  max-width: 100%;
}
.tn-regional-sponsor-box {
  max-width: 100%;
}

/* Şık Kart ve Buton Gölgeleri */
.shadow-soft {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

.shadow-card-hover {
  transition: all 0.25s ease-in-out;
}
.shadow-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

/* Yıldız Puanı Seçici */
#tnStarRatingPicker span {
  font-size: 1.75rem;
  line-height: 1;
  user-select: none;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
#tnStarRatingPicker span:hover {
  transform: scale(1.15);
}
#tnStarRatingPicker span.active {
  color: #f59e0b;
}

/* Dil Seçici Açılır Menü */
.tn-lang-switcher {
  position: relative;
  z-index: 60;
}
#tnLangDropdownMenu {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Modal Stilleri */
.tn-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.tn-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tn-modal-content {
  background: #ffffff;
  border-radius: 1.25rem;
  max-width: min(32rem, calc(100vw - 1.5rem)) !important;
  width: 100% !important;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  box-sizing: border-box;
}

/* AI Destek Widget & Mobil Bar Emniyeti */
#tnAiChatWidget {
  max-width: calc(100vw - 1rem);
}
#tnAiChatBox {
  max-width: calc(100vw - 1.5rem) !important;
}

.tn-modal-overlay.active .tn-modal-content {
  transform: scale(1);
}

/* RTL (Arapça) Desteği */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .tn-modal-content {
  text-align: right;
}
html[dir="rtl"] #tnLangDropdownMenu {
  right: auto;
  left: 0;
  origin: top left;
}

/* Animasyonlar */
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.glow-btn {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
