/* ==========================================================================
   QwaZz — LIQUID GLASS (v21)
   Arka plan: demo shader (cam damlası). Yazı / renkli top yok.
   Kartlar & butonlar: gerçek kırılma + kromatik saçılma (SVG lens).
   ========================================================================== */

html.glass-ui {
  background: #07070a;
}

body.glass-ui {
  background: transparent;
}

#qz-glass-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* --------------------------------------------------------------------------
   1. KARTLAR
   -------------------------------------------------------------------------- */

body.glass-ui [class~="bg-qwazz-surface"],
body.glass-ui [class~="bg-qwazz-dark"],
body.glass-ui .auth-card,
body.glass-ui .card,
body.glass-ui .glass {
  position: relative;
  border-radius: 16px;
  background-color: rgba(8, 11, 18, 0.30);
  background-image:
    linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.05) 20%,
      rgba(255, 255, 255, 0.00) 44%,
      rgba(255, 255, 255, 0.05) 78%,
      rgba(255, 255, 255, 0.11) 100%
    ),
    linear-gradient(
      0deg,
      rgba(110, 165, 255, 0.13) 0%,
      rgba(110, 165, 255, 0.00) 38%
    );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(110, 165, 255, 0.30),
    0 18px 44px -16px rgba(0, 0, 0, 0.85);
}

/* üst rim */
body.glass-ui [class~="bg-qwazz-surface"]::after,
body.glass-ui .auth-card::after,
body.glass-ui .card::after,
body.glass-ui .glass::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -1px;
  height: 1.5px;
  pointer-events: none;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 15%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.85) 85%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.9;
}

body.glass-ui [class~="bg-qwazz-surface"]:hover {
  background-color: rgba(12, 16, 25, 0.34);
}

body.glass-ui [class~="bg-qwazz-surface"] [class~="bg-qwazz-surface"],
body.glass-ui [class~="bg-qwazz-dark"] [class~="bg-qwazz-surface"] {
  background-image: none;
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(110, 165, 255, 0.16);
}

body.glass-ui [class~="bg-qwazz-black"] {
  background-color: transparent;
}

/* --------------------------------------------------------------------------
   2. BUTONLAR
   -------------------------------------------------------------------------- */

body.glass-ui .btn,
body.glass-ui .glass-btn,
body.glass-ui .glass-pill,
body.glass-ui button[class*="bg-qwazz-primary"],
body.glass-ui a[class*="bg-qwazz-primary"],
body.glass-ui button[class*="rounded"],
body.glass-ui [class*="fixed"][class*="rounded-full"],
body.glass-ui .secure-badge {
  position: relative;
  border-radius: 999px;
  background-color: rgba(9, 12, 20, 0.34);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.02) 48%,
    rgba(0, 0, 0, 0.20) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(110, 165, 255, 0.30),
    0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, filter 0.16s ease,
    box-shadow 0.16s ease;
}

body.glass-ui button[class*="bg-qwazz-primary"],
body.glass-ui a[class*="bg-qwazz-primary"],
body.glass-ui .btn:not(.btn--ghost) {
  background-color: rgba(77, 141, 255, 0.72);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

body.glass-ui .btn--ghost {
  background-color: rgba(255, 255, 255, 0.06);
  color: #f2f4fa;
}

body.glass-ui .btn::after,
body.glass-ui .glass-btn::after,
body.glass-ui button[class*="bg-qwazz-primary"]::after,
body.glass-ui a[class*="bg-qwazz-primary"]::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.95),
    transparent
  );
}

body.glass-ui .btn:hover,
body.glass-ui .glass-btn:hover,
body.glass-ui button[class*="bg-qwazz-primary"]:hover,
body.glass-ui a[class*="bg-qwazz-primary"]:hover,
body.glass-ui [class*="fixed"][class*="rounded-full"]:hover,
body.glass-ui .secure-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.65),
    0 10px 26px rgba(0, 0, 0, 0.55);
}

body.glass-ui .btn:active,
body.glass-ui .glass-btn:active {
  transform: translateY(0) scale(0.985);
}

/* --------------------------------------------------------------------------
   3. FORMLAR
   -------------------------------------------------------------------------- */

body.glass-ui .input,
body.glass-ui input[type="text"],
body.glass-ui input[type="email"],
body.glass-ui input[type="password"],
body.glass-ui input[type="search"],
body.glass-ui textarea,
body.glass-ui select {
  border-radius: 12px;
  background-color: rgba(6, 9, 14, 0.42);
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #f0f2f8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(110, 165, 255, 0.16);
}

body.glass-ui .input:focus,
body.glass-ui input:focus,
body.glass-ui textarea:focus,
body.glass-ui select:focus {
  border-color: rgba(140, 180, 255, 0.8);
  box-shadow:
    0 0 0 3px rgba(77, 141, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  outline: none;
}

/* --------------------------------------------------------------------------
   4. Detaylar
   -------------------------------------------------------------------------- */

body.glass-ui ::selection {
  background: rgba(77, 141, 255, 0.35);
}

body.glass-ui *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.glass-ui *::-webkit-scrollbar-track {
  background: transparent;
}

body.glass-ui *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 99px;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-ui * {
    transition-duration: 0.01ms !important;
  }
}
