/* Birincil aksiyon — düz mavi (#1677ff), gradyan yok */
:is(
  .btn-site-primary:not(.btn-site-action),
  .k-btn.k-btn--primary:not(.k-btn--ghost):not(.k-btn--danger):not(.profile-logout-btn):not(.auth-open-register):not(.btn-site-register):not(.btn-site-action),
  .promo-modal-submit,
  .site-contact-card__btn,
  .profile-save-btn,
  .promo-code-copy
) {
  color: #ffffff !important;
  background-color: var(--site-accent) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14) !important;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

:is(
  .btn-site-primary:not(.btn-site-action):hover,
  .k-btn.k-btn--primary:not(.k-btn--ghost):not(.k-btn--danger):not(.profile-logout-btn):not(.auth-open-register):not(.btn-site-register):not(.btn-site-action):hover:not(:disabled),
  .promo-modal-submit:hover:not(:disabled),
  .site-contact-card__btn:hover,
  .profile-save-btn:hover:not(:disabled),
  .promo-code-copy:hover
) {
  background-color: var(--site-accent-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.22) !important;
}

:is(
  .btn-site-primary:not(.btn-site-action):active,
  .k-btn.k-btn--primary:not(.k-btn--ghost):not(.k-btn--danger):not(.profile-logout-btn):not(.auth-open-register):not(.btn-site-register):not(.btn-site-action):active:not(:disabled),
  .promo-modal-submit:active,
  .site-contact-card__btn:active,
  .profile-save-btn:active,
  .promo-code-copy:active
) {
  background-color: var(--site-accent-active) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
}

:is(
  .btn-site-primary:not(.btn-site-action):focus-visible,
  .k-btn.k-btn--primary:not(.k-btn--ghost):not(.k-btn--danger):not(.profile-logout-btn):not(.auth-open-register):not(.btn-site-register):not(.btn-site-action):focus-visible,
  .promo-modal-submit:focus-visible,
  .site-contact-card__btn:focus-visible,
  .profile-save-btn:focus-visible,
  .promo-code-copy:focus-visible
) {
  outline: 2px solid rgba(22, 119, 255, 0.45);
  outline-offset: 2px;
}

:is(
  .btn-site-primary:disabled,
  .k-btn.k-btn--primary:not(.k-btn--ghost):disabled
) {
  cursor: not-allowed;
  opacity: 0.5;
}

/* İkincil / giriş — mavi çerçeve, hover’da kırmızı vurgu */
.btn-site-secondary,
.header-auth-btn.auth-open-login,
.k-btn.k-btn--secondary:not(.k-btn--ghost) {
  color: #f3f4f6 !important;
  background: var(--site-surface-gradient) !important;
  background-image: none !important;
  border: 1px solid rgba(22, 119, 255, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-site-secondary:hover:not(:disabled),
.header-auth-btn.auth-open-login:hover:not(:disabled),
.k-btn.k-btn--secondary:not(.k-btn--ghost):hover:not(:disabled) {
  color: #fff !important;
  border-color: rgba(255, 30, 30, 0.42) !important;
  background: var(--site-raised-gradient) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px -8px rgba(255, 30, 30, 0.16) !important;
}

.btn-site-secondary:focus-visible,
.header-auth-btn.auth-open-login:focus-visible,
.k-btn.k-btn--secondary:not(.k-btn--ghost):focus-visible {
  outline: 2px solid rgba(255, 30, 30, 0.4);
  outline-offset: 2px;
}

[data-theme="light"] .btn-site-secondary,
[data-theme="light"] .header-auth-btn.auth-open-login,
[data-theme="light"] .k-btn.k-btn--secondary:not(.k-btn--ghost) {
  color: #334155 !important;
  background: #fff !important;
  border-color: rgba(22, 119, 255, 0.22) !important;
}

[data-theme="light"] .btn-site-secondary:hover:not(:disabled),
[data-theme="light"] .header-auth-btn.auth-open-login:hover:not(:disabled),
[data-theme="light"] .k-btn.k-btn--secondary:not(.k-btn--ghost):hover:not(:disabled) {
  color: #0f172a !important;
  border-color: rgba(255, 30, 30, 0.38) !important;
  background: #f8fafc !important;
  box-shadow: 0 2px 10px -6px rgba(255, 30, 30, 0.12) !important;
}

/* Birincil hover — hafif kırmızı çerçeve parıltısı */
:is(
  .btn-site-primary:not(.btn-site-action),
  .k-btn.k-btn--primary:not(.k-btn--ghost):not(.k-btn--danger):not(.profile-logout-btn):not(.auth-open-register):not(.btn-site-register):not(.btn-site-action)
):hover:not(:disabled) {
  box-shadow:
    0 4px 12px rgba(22, 119, 255, 0.22),
    0 0 0 1px rgba(255, 30, 30, 0.12) !important;
}

/* Tehlike / çıkış — düz kırmızı (#ff1e1e) */
.k-btn.k-btn--danger,
.profile-logout-btn {
  color: #ffffff !important;
  background-color: var(--site-accent-red) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14) !important;
}

.k-btn.k-btn--danger:hover:not(:disabled),
.profile-logout-btn:hover {
  background-color: var(--site-accent-red-hover) !important;
  box-shadow: 0 4px 12px rgba(255, 30, 30, 0.2) !important;
}

.k-btn.k-btn--danger:active:not(:disabled),
.profile-logout-btn:active {
  background-color: var(--site-accent-red-active) !important;
}

/* Kırmızı aksiyon — flex düzeni (btn-site-primary sadece layout için kalabilir) */
.btn-site-action:is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Auth popup gönder — mavi birincil kuralından muaf */
.auth-modal-panel #form-login button[type="submit"].btn-site-register,
.auth-modal-panel #form-register button[type="submit"].btn-site-register {
  color: #ffffff !important;
  background-color: var(--site-accent-red) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14) !important;
}

.auth-modal-panel #form-login button[type="submit"].btn-site-register:hover:not(:disabled),
.auth-modal-panel #form-register button[type="submit"].btn-site-register:hover:not(:disabled) {
  background-color: var(--site-accent-red-hover) !important;
  box-shadow: 0 4px 14px rgba(255, 30, 30, 0.22) !important;
}

/* Kayıt ol + Oyna / çevir / katıl + ana sayfa kart CTA — marka kırmızısı (#ff1e1e) */
.auth-open-register,
.btn-site-register,
.btn-site-action,
.event-open-detail,
.ticket-open-detail,
.game-selector__spin,
.wheel-spin-btn,
.slot-spin-btn,
.rl-spin-btn,
.bj-deal-btn,
.so-submit,
.home-event-card__cta,
.home-ticket-card__cta,
.home-quick-card__cta,
a.home-quick-card__cta,
.sponsor-card .sponsor-card-cta {
  color: #ffffff !important;
  background-color: var(--site-accent-red) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14) !important;
  text-decoration: none !important;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.home-quick-card__cta:disabled {
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  background-color: rgba(255, 30, 30, 0.35) !important;
  box-shadow: none !important;
}

.auth-open-register:hover:not(:disabled),
.btn-site-register:hover:not(:disabled),
.btn-site-action:hover:not(:disabled),
.event-open-detail:hover:not(:disabled),
.ticket-open-detail:hover:not(:disabled),
.game-selector__spin:hover:not(:disabled),
.wheel-spin-btn:hover:not(:disabled),
.slot-spin-btn:hover:not(:disabled),
.rl-spin-btn:hover:not(:disabled),
.bj-deal-btn:hover:not(:disabled),
.so-submit:hover:not(:disabled),
.home-event-card__cta:hover:not(:disabled),
.home-ticket-card__cta:hover:not(:disabled),
.home-quick-card__cta:hover:not(:disabled),
.sponsor-card:hover .sponsor-card-cta {
  background-color: var(--site-accent-red-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 30, 30, 0.22) !important;
}

.auth-open-register:active:not(:disabled),
.btn-site-register:active:not(:disabled),
.btn-site-action:active:not(:disabled),
.event-open-detail:active:not(:disabled),
.ticket-open-detail:active:not(:disabled),
.game-selector__spin:active:not(:disabled),
.wheel-spin-btn:active:not(:disabled),
.slot-spin-btn:active:not(:disabled),
.rl-spin-btn:active:not(:disabled),
.bj-deal-btn:active:not(:disabled),
.so-submit:active:not(:disabled),
.home-event-card__cta:active:not(:disabled),
.home-ticket-card__cta:active:not(:disabled),
.home-quick-card__cta:active:not(:disabled),
.sponsor-card .sponsor-card-cta:active {
  background-color: var(--site-accent-red-active) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
}

.auth-open-register:focus-visible,
.btn-site-register:focus-visible,
.btn-site-action:focus-visible,
.event-open-detail:focus-visible,
.ticket-open-detail:focus-visible,
.game-selector__spin:focus-visible,
.wheel-spin-btn:focus-visible,
.slot-spin-btn:focus-visible,
.rl-spin-btn:focus-visible,
.bj-deal-btn:focus-visible,
.so-submit:focus-visible,
.home-event-card__cta:focus-visible,
.home-ticket-card__cta:focus-visible,
.home-quick-card__cta:focus-visible,
.sponsor-card-link:focus-visible .sponsor-card-cta {
  outline: 2px solid rgba(255, 30, 30, 0.45);
  outline-offset: 2px;
}

[data-theme="light"] .auth-open-register,
[data-theme="light"] .btn-site-register,
[data-theme="light"] .btn-site-action,
[data-theme="light"] .event-open-detail,
[data-theme="light"] .ticket-open-detail,
[data-theme="light"] .game-selector__spin,
[data-theme="light"] .wheel-spin-btn,
[data-theme="light"] .slot-spin-btn,
[data-theme="light"] .rl-spin-btn,
[data-theme="light"] .bj-deal-btn,
[data-theme="light"] .so-submit,
[data-theme="light"] .home-event-card__cta,
[data-theme="light"] .home-ticket-card__cta,
[data-theme="light"] .home-quick-card__cta,
[data-theme="light"] .sponsor-card .sponsor-card-cta {
  color: #ffffff !important;
  background-color: var(--site-accent-red) !important;
  box-shadow: 0 1px 2px rgba(255, 30, 30, 0.18) !important;
}

[data-theme="light"] .auth-open-register:hover:not(:disabled),
[data-theme="light"] .btn-site-register:hover:not(:disabled),
[data-theme="light"] .btn-site-action:hover:not(:disabled),
[data-theme="light"] .event-open-detail:hover:not(:disabled),
[data-theme="light"] .ticket-open-detail:hover:not(:disabled),
[data-theme="light"] .game-selector__spin:hover:not(:disabled),
[data-theme="light"] .wheel-spin-btn:hover:not(:disabled),
[data-theme="light"] .slot-spin-btn:hover:not(:disabled),
[data-theme="light"] .rl-spin-btn:hover:not(:disabled),
[data-theme="light"] .bj-deal-btn:hover:not(:disabled),
[data-theme="light"] .so-submit:hover:not(:disabled),
[data-theme="light"] .home-event-card__cta:hover:not(:disabled),
[data-theme="light"] .home-ticket-card__cta:hover:not(:disabled),
[data-theme="light"] .home-quick-card__cta:hover:not(:disabled),
[data-theme="light"] .sponsor-card:hover .sponsor-card-cta {
  background-color: var(--site-accent-red-hover) !important;
  box-shadow: 0 4px 14px rgba(255, 30, 30, 0.24) !important;
}

[data-theme="light"] :is(
  .btn-site-primary:not(.btn-site-action),
  .k-btn.k-btn--primary:not(.k-btn--ghost):not(.k-btn--danger):not(.profile-logout-btn):not(.auth-open-register):not(.btn-site-register):not(.btn-site-action),
  .promo-modal-submit,
  .site-contact-card__btn,
  .profile-save-btn,
  .promo-code-copy
) {
  color: #ffffff !important;
  background-color: var(--site-accent) !important;
  box-shadow: 0 1px 2px rgba(22, 119, 255, 0.2) !important;
}

[data-theme="light"] :is(
  .btn-site-primary:not(.btn-site-action):hover,
  .k-btn.k-btn--primary:not(.k-btn--ghost):not(.k-btn--danger):not(.profile-logout-btn):not(.auth-open-register):not(.btn-site-register):not(.btn-site-action):hover:not(:disabled),
  .promo-modal-submit:hover:not(:disabled),
  .site-contact-card__btn:hover,
  .profile-save-btn:hover:not(:disabled),
  .promo-code-copy:hover
) {
  background-color: var(--site-accent-hover) !important;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.28) !important;
}

[data-theme="light"] .site-contact-card__btn-icon {
  color: #ffffff !important;
}

/* Oyun içi butonlardaki mavi gradyan / glow animasyonu */
.slot-spin-btn,
.rl-spin-btn,
.bj-deal-btn {
  color: #ffffff !important;
  background-image: none !important;
  border-color: transparent !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  :is(.btn-site-primary, .k-btn.k-btn--primary, .home-event-card__cta, .home-ticket-card__cta, .home-quick-card__cta) {
    transition: none !important;
  }
}
