/* =========================================================
   styles/core.css
   Sistem temeli, CSS değişkenleri, Loader ve Bildirimler
   ========================================================= */

:root {
  --bg: #F3F2EC;
  --panel: #ffffff;
  --border: #cccccc;
  --txt: #202124;
  --muted: #4a4a4a;
  --brand: #1D3E2F;
  --shadow: 0 8px 24px rgba(0, 0, 0, .12);
  --topbar: 64px;
}

html, body {
  width: 100%;
  height: 100vh !important;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  font-size: 14px;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  transition: opacity .25s ease-out;
}

/* Global Loading Spinner */
#global-loading {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: var(--bg); z-index: 9999;
}
#global-loading[aria-hidden="false"] { display: flex; }
.global-loading-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px 18px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(204, 204, 204, 0.55); backdrop-filter: blur(6px);
}
.global-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #d6dbd7; border-top-color: var(--brand); animation: global-spin-anim 0.9s linear infinite; }
@keyframes global-spin-anim { to { transform: rotate(360deg); } }
.global-loading-text { font-size: 13px; color: #2d4832; opacity: 0.9; }

/* Bildirimler (Alerts) */
#alert-login, #alert-signup {
  display: none; position: fixed !important; bottom: 80px !important; right: 50px !important; width: 420px !important;
  padding: 24px 28px !important; border-radius: 22px !important; font-weight: 700 !important; line-height: 1.5 !important; z-index: 1000000 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 25px 50px -12px rgba(0, 0, 0, 0.2) !important;
  background: rgba(255, 255, 255, 0.75) !important; backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important; border-top: 2px solid rgba(255, 255, 255, 0.9) !important; pointer-events: auto !important; cursor: pointer !important; transform: scale(0.95);
}
#alert-login::before, #alert-signup::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 16px; background-size: contain; background-repeat: no-repeat; }
#alert-login.alert-info, #alert-signup.alert-info { border-left: 10px solid #1D3E2F !important; color: #1D3E2F !important; }
#alert-login.alert-info::before, #alert-signup.alert-info::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231D3E2F"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>'); }
#alert-login.alert-error, #alert-signup.alert-error { border-left: 10px solid #d32f2f !important; color: #b71c1c !important; }
#alert-login.alert-error::before, #alert-signup.alert-error::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d32f2f"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>'); }
#alert-login.alert--show, #alert-signup.alert--show { display: block !important; animation: popOutAlert 0.12s cubic-bezier(0.15, 0.9, 0.2, 1) forwards !important; }
@keyframes popOutAlert { 0% { opacity: 0; transform: scale(0.7) translateY(40px); filter: blur(10px); } 100% { opacity: 1; transform: scale(0.95) translateY(0); filter: blur(0); } }

@media (max-width: 820px) {
  #alert-login, #alert-signup { right: 20px !important; left: 20px !important; bottom: 30px !important; width: auto !important; padding: 20px !important; transform: scale(0.95) !important; }
}