/* ==========================================================
   Sakan — shared base styles (used by every page)
   ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .35s ease, color .35s ease;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Light / dark theme switch (floating, outside the design) ---------- */
.theme-toggle {
  position: fixed;
  right: 24px;
  bottom: 110px;
  z-index: 1000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffa600;
  color: #23262d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.theme-toggle:hover { transform: scale(1.06) rotate(-12deg); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.theme-toggle svg { width: 24px; height: 24px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Toast notifications ---------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 10px;
  background: #1d1d1d;
  color: #fff;
  border-left: 4px solid #ffa600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  animation: toast-in .3s ease both;
}
.toast.is-error { border-left-color: #ff5a5f; }
.toast.is-leaving { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }
