/* ==========================================================================
   Base Reset & Utilities — Gleb Planner
   Extracted from design-tokens.css (GP-DESIGN-002-A1 CR fix)
   ========================================================================== */

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Material Symbols Utility --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- SW Update Banner (GP-SW-CACHE-FIX) --- */
.sw-update-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--primary, #5b6abf);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  z-index: 9999;
  animation: slide-up 0.3s ease;
}

.sw-update-btn {
  background: #fff;
  color: var(--primary, #5b6abf);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 56px;
  min-width: 56px;
}

/* --- Error Toast (GP-SW-CACHE-FIX) --- */
.error-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  background: #d32f2f;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.error-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- Welcome modal каникулы 2026 (one-time) --- */

.welcome-summer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fade-in 0.25s ease-out;
}

.welcome-summer-modal__card {
  background: linear-gradient(180deg, #fff8e1, #fff);
  border-radius: 24px;
  padding: 24px 22px 20px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  animation: pop-in 0.3s ease-out;
}

.welcome-summer-modal__emoji {
  font-size: 64px;
  line-height: 1;
}

.welcome-summer-modal__title {
  font-size: 24px;
  font-weight: 800;
  color: #f57c00;
  margin-top: 8px;
}

.welcome-summer-modal__body {
  margin-top: 12px;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  text-align: left;
}

.welcome-summer-modal__body p {
  margin: 8px 0;
}

.welcome-summer-modal__habits {
  background: rgba(255, 193, 7, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  text-align: center;
}

.welcome-summer-modal__gift {
  background: rgba(76, 175, 80, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  color: #2e7d32;
}

.welcome-summer-modal__close {
  margin-top: 16px;
  min-height: 56px;
  width: 100%;
  border: none;
  border-radius: 16px;
  background: #f57c00;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.welcome-summer-modal__close:active {
  transform: scale(0.98);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
