/**
 * Modal arka planları — site görünür kalsın (hafif karartma + belirgin blur)
 */

.auth-modal-backdrop,
.news-modal-backdrop {
  background: rgba(12, 18, 28, 0.38) !important;
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

[data-theme="light"] .auth-modal-backdrop,
[data-theme="light"] .news-modal-backdrop {
  background: rgba(15, 23, 42, 0.22) !important;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal-backdrop,
  .news-modal-backdrop {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

/* Auth popup — birincil CTA (Giriş yap / Kayıt ol) */
.auth-modal-panel .auth-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6875rem 1.25rem;
  min-height: 2.75rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #ffffff !important;
  background-color: var(--site-accent-red) !important;
  background-image: none !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.auth-modal-panel .auth-modal-cta:hover:not(:disabled) {
  background-color: var(--site-accent-red-hover) !important;
  box-shadow:
    0 4px 16px rgba(22, 119, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-1px);
}

.auth-modal-panel .auth-modal-cta:active:not(:disabled) {
  background-color: var(--site-accent-red-active) !important;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.auth-modal-panel .auth-modal-cta:focus-visible {
  outline: 2px solid rgba(22, 119, 255, 0.5);
  outline-offset: 2px;
}

.auth-modal-panel .auth-modal-cta:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

/* Telegram ile giriş — ikincil, aynı köşe yuvarlaklığı */
.auth-modal-panel .auth-telegram-bot-btn {
  border-radius: 0.75rem !important;
  min-height: 2.625rem;
  padding: 0.625rem 1.15rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.auth-modal-panel .auth-telegram-bot-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

[data-theme="light"] .auth-modal-panel .auth-modal-cta {
  box-shadow:
    0 1px 3px rgba(22, 119, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] .auth-modal-panel .auth-modal-cta:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(22, 119, 255, 0.32) !important;
}

/* Kayıt ol — daha kompakt panel; kapatma giriş ile aynı köşede sabit */
.auth-modal-panel--register {
  max-height: min(88vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-modal-panel--register .auth-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 20;
}

.auth-modal-panel--register .auth-modal-panel__scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.15rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
  .auth-modal-panel--register .auth-modal-panel__scroll {
    padding: 1.35rem 1.5rem 1.5rem;
  }
}

.auth-modal-panel--register .auth-modal-panel__head {
  margin-bottom: 0.85rem;
}

.auth-modal-panel--register .auth-modal-panel__form .k-label {
  margin-bottom: 0.25rem;
  font-size: 10px;
}

.auth-modal-panel--register .auth-modal-panel__form .input-site,
.auth-modal-panel--register .auth-modal-panel__form .k-input {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.auth-modal-panel--register .auth-modal-cta {
  margin-top: 0.15rem;
}

.auth-modal-panel--register .auth-telegram-wrap {
  margin-top: 0.75rem;
}

.auth-modal-panel--register .auth-telegram-wrap > p {
  margin-top: 0.5rem;
}

.auth-modal-panel--register .auth-telegram-bot-btn {
  margin-top: 0.5rem;
}

.auth-modal-panel--register .auth-modal-panel__footer {
  margin-top: 0.85rem;
}
