/* ===== KortRadar - Ana CSS Dosyası ===== */

/* ===== ANIMATED GRADIENT BORDER ===== */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes gradient-rotate {
  to { --gradient-angle: 360deg; }
}

:root {
  --primary: #E4572E;
  --primary-dark: #b83a1e;
  --primary-glow: rgba(228, 87, 46, 0.15);
  --bg-dark: #080808;
  --bg-card: #141414;
  --input-autofill-bg: var(--bg-dark);
  --bg-card-hover: #1e1e1e;
  --bg-section: #0f0f0f;
  --text-primary: #FEFEE3;
  --text-secondary: #9e9e9e;
  --text-muted: #5a5a5a;
  --border: #222222;
  --border-light: #2e2e2e;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-green: 0 4px 24px rgba(228, 87, 46, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.98);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.6);
}

/* Concentric rings */
.logo-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
  z-index: 1;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  pointer-events: none;
  z-index: 1;
}

/* Rotating radar sweep — white */
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0.7) 0deg,
    rgba(255,255,255,0.35) 10deg,
    rgba(255,255,255,0.1) 38deg,
    transparent 72deg
  );
  animation: radarSpin 2s linear infinite;
  z-index: 0;
}

/* Center dot */
.radar-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FEFEE3;
  z-index: 2;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.logo-text {
  color: #FEFEE3;
  font-family: 'Audiowide', sans-serif;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.logo-text span {
  color: #FEFEE3;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--primary);
  color: #111;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #c43e20;
  border-color: #c43e20;
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-owner {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-owner:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--text-secondary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Koyu/yeşil zeminde (header, hero) ikincil buton */
.btn-outline-light {
  background: transparent;
  color: #FEFEE3;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  border-color: #FEFEE3;
  background: rgba(255,255,255,0.1);
}

/* Koyu/yeşil zeminde krem dolu vurgulu buton */
.btn-light {
  background: #FEFEE3;
  color: #111;
  border-color: #FEFEE3;
}
.btn-light:hover {
  background: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.88);
}

/* Küçük aksiyon butonları — onayla/düzenle gibi olumlu/nötr aksiyonlar */
.btn-success {
  background: var(--primary-glow);
  border-color: rgba(228,87,46,0.3);
  color: var(--primary);
}
.btn-success:hover {
  background: rgba(228,87,46,0.2);
}

/* Küçük aksiyon butonları — reddet/sil gibi geri dönüşü olan tehlikeli aksiyonlar */
.btn-danger {
  background: rgba(220,38,38,0.08);
  border-color: rgba(220,38,38,0.3);
  color: #dc2626;
}
.btn-danger:hover {
  background: rgba(220,38,38,0.15);
}

/* .btn-sm'den de küçük, satır içi aksiyon butonları için (Düzenle, Sil, Onayla gibi) */
.btn-xs {
  padding: 5px 13px;
  font-size: 0.78rem;
  border-radius: 7px;
}

/* Site header'daki (transparan/hero üstü) giriş/üye ol butonları — .header-actions
   ve mobil .drawer-footer'da aynı butonlar tekrar ediyor, ikisi de kompakt boyut ister */
.header-actions .btn,
.drawer-footer .btn {
  padding: 7px 16px;
  font-size: 0.88rem;
  border-width: 1.5px;
}
.drawer-footer .btn {
  display: block;
  text-align: center;
  padding: 11px 16px;
  font-size: 0.95rem;
}
/* Drawer'ın zemini krem — .btn-outline-light'ın krem yazısı krem-üstü-krem olup
   görünmez kalıyordu (mevcuttu, burada .site-header.header-light ile aynı mantıkla düzeltildi) */
.drawer-footer .btn-outline-light {
  color: #111;
  border-color: rgba(17,17,17,0.3);
}
.drawer-footer .btn-outline-light:hover {
  border-color: #111;
  background: rgba(17,17,17,0.06);
}

/* ===== İPTAL BUTONU (rezervasyon iptali — cam/glass görünüm) ===== */
.btn-cancel-booking {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(220,38,38,0.3);
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1.5px 2px rgba(220,38,38,0.12),
    0 2px 8px rgba(220,38,38,0.1);
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease, background 0.2s ease;
}
.btn-cancel-booking svg { flex-shrink: 0; }
.btn-cancel-booking:hover:not(:disabled) {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(220,38,38,0.1));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1.5px 3px rgba(220,38,38,0.18),
    0 4px 14px rgba(220,38,38,0.18);
}
.btn-cancel-booking:active:not(:disabled) { transform: scale(0.96); }
.btn-cancel-booking:disabled { opacity: 0.55; cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .btn-cancel-booking { transition: box-shadow 0.2s ease, background 0.2s ease; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.3);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 8, 0.95) 0%,
    rgba(8, 8, 8, 0.6) 50%,
    rgba(228, 87, 46, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 5%;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-glow);
  border: 1px solid rgba(228, 87, 46, 0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== SEARCH BAR ===== */
.search-section {
  padding: 0 5%;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.search-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.search-field {
  flex: 1;
  min-width: 180px;
}

.search-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.search-field input,
.search-field select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-field select option {
  background: var(--bg-card);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 5%;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  font-weight: 900;
  color: var(--border-light);
  line-height: 1;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== COURT CARDS ===== */
.courts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.court-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.court-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.court-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.court-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.court-card:hover .court-image img {
  transform: scale(1.05);
}

.court-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(228, 87, 46, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.court-favourite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.court-favourite:hover {
  background: rgba(255,50,50,0.2);
  border-color: rgba(255,50,50,0.4);
}

.court-info {
  padding: 20px;
}

.court-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.court-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.court-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.court-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
}

.court-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.court-price strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.court-price span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.court-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 500;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(228, 87, 46, 0.3);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-glow);
  border: 1px solid rgba(228, 87, 46, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== OWNER SECTION ===== */
.owner-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(228, 87, 46, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.owner-content .section-tag { text-align: left; }
.owner-content .section-title { text-align: left; margin-bottom: 20px; }
.owner-content .section-desc { text-align: left; margin: 0 0 32px; }

.owner-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.benefit-item::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.owner-image {
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
}

.owner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-glow);
  border-color: rgba(228, 87, 46, 0.3);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== AUTH PAGES ===== */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-left {
  position: relative;
  overflow: hidden;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
}

.auth-left-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.auth-left-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.3), rgba(228, 87, 46, 0.2) 100%);
}

.auth-left-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-quote {
  max-width: 400px;
  margin-top: auto;
  margin-bottom: 40px;
}

.auth-quote p {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.auth-quote span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.auth-right {
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-box .logo {
  margin-bottom: 36px;
}

.auth-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--primary);
  color: #111;
}

.auth-tab:not(.active):hover {
  color: var(--text-primary);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

/* ===== AUTH FEEDBACK ===== */
.auth-error {
  background: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.3);
  color: #ff6b6b;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.auth-success {
  background: rgba(228, 87, 46, 0.08);
  border: 1px solid rgba(228, 87, 46, 0.25);
  color: var(--primary);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.auth-success-box {
  text-align: center;
  padding: 32px 16px;
}

.auth-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.auth-link a { color: var(--primary); }

.forgot-password-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.forgot-password-link:hover { color: var(--primary); }

.terms-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

.terms-text a { color: var(--text-secondary); }
.terms-text a:hover { color: var(--primary); }

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.owner-form-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.required {
  color: #ef5350;
  font-size: 0.8em;
}

.optional {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.sport-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sport-type-option {
  position: relative;
}

.sport-type-option input {
  position: absolute;
  opacity: 0;
}

.sport-type-option label {
  display: block;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.sport-type-option input:checked + label {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
}

.sport-type-option label:hover {
  border-color: var(--primary);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 18px;
}

/* Doğrudan-çocuk (>) seçici bilinçli: .form-group içine iç içe yerleştirilen
   özel bileşenlerin (örn. kort-ekle.html'deki .hours-toggle pili) kendi
   display/layout kurallarını, sadece specificity'yi zorla yükseltmeye gerek
   kalmadan, otomatik olarak koruması için. */
.form-group > label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Tarayıcı otomatik doldurma/öneri (autofill) beyaz arka plan dayatmasını engelle.
   --input-autofill-bg her sayfanın kendi input arka planına göre override edilir
   (bkz. oyuncu-giris.html, kort-sahibi-giris.html, kort-sahibi-panel.html,
   admin.html, profil.html — hepsi #FEFEE3 input üzerinde çalışıyor). */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--input-autofill-bg) inset;
  box-shadow: 0 0 0 1000px var(--input-autofill-bg) inset;
  caret-color: var(--text-primary);
  /* background-color'ı 9999s'de "dondurmak", tarayıcının kendi autofill
     sarı/beyaz flaş animasyonunu etkisiz kılar; diğer özellikler (border-color,
     box-shadow) --transition ile aynı 0.25s'de akıcı geçiş yapmaya devam eder,
     böylece autofill durumunda focus/hover geçişleri donmuyor. */
  transition: background-color 9999s ease-in-out 0s, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* Odaklanmışken de autofill arka planını KORU ama odak halkasını (focus ring)
   aynı box-shadow deklarasyonuna ekleyerek kaybolmasını engelle. */
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--input-autofill-bg) inset, 0 0 0 3px var(--primary-glow);
  box-shadow: 0 0 0 1000px var(--input-autofill-bg) inset, 0 0 0 3px var(--primary-glow);
  caret-color: var(--text-primary);
  border-color: var(--primary);
  transition: background-color 9999s ease-in-out 0s, border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group select option {
  background: var(--bg-card);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Ekran okuyucu için görünür ama görsel olarak gizli metin (bkz. js/password-input.js) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== ŞİFRE ALANI — göster/gizle + güç göstergesi (js/password-input.js) ===== */
.pw-input-wrap { position: relative; display: block; }

.pw-toggle-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s;
  z-index: 2;
}
.pw-toggle-btn:hover,
.pw-toggle-btn:focus-visible { color: var(--text-primary); }
.pw-toggle-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.pw-strength { margin-top: 10px; }

.pw-meter { display: flex; gap: 6px; }
.pw-meter-seg {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--border-light);
  transition: background 0.2s ease;
}

.pw-strength-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pw-strength-text { font-weight: 700; }

.pw-req-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pw-req-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.pw-req-item.met { color: #10b981; }
.pw-req-icon { display: flex; flex-shrink: 0; }

.pw-match-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 16px;
}
.pw-match-hint.ok { color: #10b981; }
.pw-match-hint.bad { color: #ef4444; }
.pw-match-hint svg { flex-shrink: 0; }

/* ===== CUSTOM ANIMATED SELECT ===== */

.cs-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  text-align: left;
}

.cs-trigger:hover {
  border-color: var(--border-light);
  background: var(--bg-card);
}

.cs-trigger:focus-visible {
  border-color: #6B97FF;
  box-shadow: 0 0 0 3px rgba(107, 151, 255, 0.15);
}

.cs-trigger.cs-open {
  border-color: var(--border-light);
  background: var(--bg-card);
}

.cs-trigger-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-trigger-label.cs-muted {
  color: var(--text-muted);
}

.cs-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.12s;
}

.cs-trigger:hover .cs-chevron,
.cs-trigger.cs-open .cs-chevron {
  color: var(--text-secondary);
}

.cs-trigger.cs-open .cs-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown panel ── */

.cs-dropdown {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  background: var(--cs-dropdown-bg, #181818);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4);
  max-height: 300px;
  overflow-y: auto;
  user-select: none;
  /* Closed state. NOT: transform'a scale() eklenmez — .cs-item'ların
     getBoundingClientRect() ile ölçülen konumu (seçili/hover highlight
     kutuları için) bu geçiş sürerken alınıyor; scale ölçümü anlık olarak
     küçültüp kalıcı olarak yanlış/"yamuk" konumlanmaya sebep oluyordu.
     translateY güvenli çünkü item de aynı kaydırmayı miras alıyor ve
     bağıl fark (er.top - cr.top) her an sabit kalıyor. */
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(8px);
  transform-origin: top center;
  transition: opacity 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.22s ease-out;
  pointer-events: none;
}

.cs-dropdown.cs-open {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: all;
}

.cs-dropdown::-webkit-scrollbar { width: 4px; }
.cs-dropdown::-webkit-scrollbar-track { background: transparent; }
.cs-dropdown::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

/* ── Items ── */

.cs-item {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  font-size: 13px;
  color: var(--cs-item-color, rgba(255, 255, 255, 0.42));
  /* NOT: transform (translateX vb.) ile giriş animasyonu YOK — item'ın
     geometrisi (getBoundingClientRect) her an sabit kalmalı, yoksa
     seçili/hover highlight kutuları yanlış konumda donup kalıyor
     (bkz. .cs-dropdown'daki not). Sadece opacity ile beliriyor. */
  opacity: 0;
  transition: color 0.08s, background-color 0.15s,
              opacity 0.3s ease-out;
  white-space: nowrap;
}

.cs-dropdown.cs-open .cs-item {
  opacity: 1;
}

.cs-item.cs-hover,
.cs-item.cs-selected {
  color: var(--cs-item-active-color, rgba(255, 255, 255, 0.92));
}

.cs-item-lbl {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animated checkmark */
.cs-check-svg {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.06s;
}

.cs-item.cs-selected .cs-check-svg {
  opacity: 1;
}

.cs-check-path {
  stroke-dasharray: 23;
  stroke-dashoffset: 23;
  transition: stroke-dashoffset 0.08s ease-out;
}

.cs-item.cs-selected .cs-check-path {
  stroke-dashoffset: 0;
}

/* ── Floating backgrounds ── */

.cs-hover-bg,
.cs-sel-bg,
.cs-focus-ring {
  position: absolute;
  pointer-events: none;
  border-radius: 8px;
}

.cs-hover-bg {
  background: rgba(255, 255, 255, 0.04);
  z-index: 1;
  opacity: 0;
  transition: top 0.06s, left 0.06s, width 0.06s, height 0.06s, opacity 0.06s;
}

.cs-hover-bg.cs-vis { opacity: 1; }

.cs-sel-bg {
  background: rgba(255, 255, 255, 0.07);
  z-index: 2;
  opacity: 0;
  transition: top 0.12s, height 0.12s;
}

.cs-sel-bg.cs-vis { opacity: 1; }

.cs-focus-ring {
  border: 1px solid #6B97FF;
  border-radius: 10px;
  z-index: 20;
  opacity: 0;
  transition: top 0.06s, height 0.06s, opacity 0.06s;
}

.cs-focus-ring.cs-vis { opacity: 1; }

.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-divider span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-auth .btn {
  gap: 8px;
  justify-content: center;
}

/* ===== BOOKING MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255,50,50,0.15);
  border-color: rgba(255,50,50,0.3);
  color: #ff6060;
}

.booking-court-info {
  margin-bottom: 22px;
}

.booking-court-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.booking-court-loc {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.time-slots-booking {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.time-slot-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.time-slot-btn:hover:not(.booked) {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
}

.time-slot-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
}

.time-slot-btn.booked {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.04);
  color: var(--text-muted);
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 22px;
}

.booking-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 6px 0;
}

.booking-summary-row + .booking-summary-row {
  border-top: 1px solid var(--border);
}

.booking-summary-row span:first-child {
  color: var(--text-secondary);
}

.booking-summary-row.total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light) !important;
  font-size: 1rem;
}

.booking-summary-row.total strong {
  color: var(--primary);
  font-size: 1.2rem;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.35s ease;
  min-width: 280px;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.1rem;
}

.toast.success {
  border-left: 3px solid var(--primary);
}

.toast.error {
  border-left: 3px solid #ff4444;
}

/* ===== KORT-EKLE FORM ===== */
.kort-ekle-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 5% 60px;
}

.form-stepper {
  display: flex;
  gap: 0;
  margin-bottom: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
}

.form-step-tab {
  flex: 1;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-step-tab.active {
  background: var(--primary);
  color: #111;
}

.form-step-tab.completed {
  color: var(--primary);
}

.form-step-panel {
  display: none;
}

.form-step-panel.active {
  display: block;
}

.form-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.form-section-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ===== KORTLAR PAGE ===== */
.kortlar-header {
  padding: 100px 5% 40px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.kortlar-filters {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 5%;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.filter-chip:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
}

.kortlar-content {
  padding: 40px 5% 80px;
}

.kortlar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.results-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== CURRENCY DOLLAR ICON ===== */
.currency-dollar-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== STAR ICON ===== */
@keyframes star-fill-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes star-fill-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes star-wobble {
  0%   { transform: scale(1)   rotate(0deg); }
  25%  { transform: scale(1.1) rotate(-5deg); }
  75%  { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1)   rotate(0deg); }
}

.star-icon { cursor: pointer; display: block; }
.star-icon .star-fill    { opacity: 0; transform-origin: center; transform-box: fill-box; }
.star-icon .star-outline { transform-origin: center; transform-box: fill-box; }

.star-icon:hover .star-fill    { animation: star-fill-in 0.4s ease-out forwards; }
.star-icon:hover .star-outline { animation: star-wobble  0.5s ease-in-out; }

/* ===== CHART BAR ICON ===== */
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes base-pulse {
  0%, 100% { transform: scaleX(1); }
  50%       { transform: scaleX(1.05); }
}

.chart-bar-icon { cursor: pointer; display: block; }
.chart-bar-icon .cb-bar-1 { transform-origin: 6px 20px; }
.chart-bar-icon .cb-bar-2 { transform-origin: 12px 20px; }
.chart-bar-icon .cb-bar-3 { transform-origin: 18px 20px; }
.chart-bar-icon .cb-base  { transform-origin: 11px 20px; }

.chart-bar-icon:hover .cb-bar-1 { animation: bar-grow 0.3s ease-out; }
.chart-bar-icon:hover .cb-bar-2 { animation: bar-grow 0.3s ease-out 0.1s both; }
.chart-bar-icon:hover .cb-bar-3 { animation: bar-grow 0.3s ease-out 0.2s both; }
.chart-bar-icon:hover .cb-base  { animation: base-pulse 0.4s ease-in-out; }

/* ===== CHART LINE ICON ===== */
@keyframes chart-line-draw {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0; }
}
@keyframes chart-base-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.chart-line-icon {
  cursor: pointer;
  display: block;
}

.chart-line-icon .chart-data-line {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

.chart-line-icon .chart-base-line {
  transform-origin: 4px 19px;
}

.chart-line-icon:hover .chart-data-line {
  animation: chart-line-draw 0.6s ease-in-out;
}

.chart-line-icon:hover .chart-base-line {
  animation: chart-base-draw 0.4s ease-out;
}

/* ===== ORBITAL LOADER (zıplayan noktalar) ===== */
@keyframes orbital-dot-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.orbital-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.orbital-rings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 64px;
}

.orbital-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  animation: orbital-dot-bounce 0.9s ease-in-out infinite;
}

.orbital-ring:nth-child(2) {
  animation-delay: 0.3s;
}

.orbital-ring:nth-child(3) {
  animation-delay: 0.6s;
}

.orbital-message {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .owner-section {
    padding: 48px;
    gap: 40px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .hero-stats {
    gap: 24px;
  }

  .search-card {
    gap: 12px;
  }

  .search-field {
    min-width: 100%;
  }

  .section {
    padding: 72px 5%;
  }

  .owner-section {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 32px;
  }

  .owner-image {
    height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .courts-grid,
  .kortlar-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-stepper {
    flex-wrap: wrap;
  }

  .form-step-tab {
    flex: none;
    min-width: 45%;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .kortlar-filters {
    top: 72px;
  }

  .modal {
    padding: 24px;
  }

  .time-slots-booking {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== SPECULAR BUTTON (js/specular-button.js) ===== */
/* Renk/boyut değerleri mount edilirken JS'ten --sb-* custom property olarak set edilir. */

.specular-button {
  --sb-radius: 18px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0;
  --sb-blur: 0px;
  --sb-text-color: #f5f5f5;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  border-radius: var(--sb-radius);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
}

.specular-button:active {
  transform: scale(0.97);
}

.specular-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sb-text-color) 60%, transparent);
  outline-offset: 3px;
}

.specular-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.specular-button:disabled:active {
  transform: none;
}

.specular-button--sm {
  font-size: 0.85rem;
  padding: 10px 22px;
}

.specular-button--md {
  font-size: 1rem;
  padding: 14px 30px;
}

.specular-button--lg {
  font-size: 1.15rem;
  padding: 18px 40px;
}

/* Canvas butonun dışına taşar (fx PAD=20px) — kenardaki parlamanın dışarı taşmasını sağlar */
.specular-button__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.specular-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.specular-button__label {
  position: relative;
  z-index: 2;
}

/* ============================================================================
   Yıldız puanı + kart değerlendirme satırı (Madde 3 · Yorumlar & Puanlama)
   .kr-stars: window.kortStarsHtml() ile üretilen kesirli-dolgu yıldız bileşeni.
   Hem kort kartlarında hem tesis (tesis.html) sayfasında paylaşılır.
   ========================================================================== */
.kr-stars {
  position: relative;
  display: inline-block;
  line-height: 0;
  font-size: 16px;           /* yıldız boyutu (1em) — kullanıldığı yerde override edilebilir */
  vertical-align: middle;
  white-space: nowrap;
}
.kr-stars .kr-stars-bg,
.kr-stars .kr-stars-fg { display: inline-flex; gap: 2px; }
/* flex:0 0 auto ŞART: dolu (fg) katman kırpılmış genişliğe SIĞMAK için küçülmesin;
   tam boyutta kalıp overflow ile kırpılsın — yoksa sarı yıldızlar sıkışıp gri
   yıldızların üstüne kayık/farklı boyutta biner (iç içe geçmiş görüntü). */
.kr-stars svg { width: 1em; height: 1em; display: block; flex: 0 0 auto; }
.kr-stars .kr-stars-bg { color: rgba(0, 0, 0, 0.15); }   /* boş yıldız (açık zemin) */
.kr-stars .kr-stars-fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: var(--kr-fill, 0%);
  color: #F5A623;            /* dolu yıldız — amber */
}

/* Kort kartındaki puan satırı (kortlar.html + spor landing sayfaları). Global
   .court-rating (flex/gap) yukarıda tanımlı; burada alt-öğeler + boş durum. */
.court-rating .cr-count { color: var(--text-muted); font-weight: 500; }
.court-rating .cr-val   { font-weight: 700; }
.court-rating.is-empty  { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; }

/* Kart adı artık tesis sayfasına linktir — rengi/altını h3'ten devral */
.court-name a { color: inherit; text-decoration: none; }
.court-name a:hover { color: var(--primary); }
