@import url("https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap");

/* ================= */
/* RESET + BASE */
/* ================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #030712;
  font-family: "Onest", sans-serif;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
}

button {
  font: inherit;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

/* ================= */
/* APP ROOT */
/* ================= */

.app {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-height: 100vh;
  min-height: 100svh;
  touch-action: pan-y;
  background-color: #03060d;
  background-image:
    radial-gradient(circle at 50% 18%, rgba(34, 55, 110, 0.26), transparent 36%),
    linear-gradient(180deg, #04101f 0%, #060d19 42%, #03060d 100%);
  background-size: 100% 100svh;
  background-repeat: no-repeat;
  color: white;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ========================= */
/* FIRST SCREEN + SCROLL     */
/* ========================= */

.first-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.scroll-extras {
  --info-card-gap: 12px;
  margin-top: calc(-18svh + 8px);
  position: relative;
  z-index: 1;
  padding: 16px 16px 240px;
}

.mode-backdrop {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 400px);
  height: calc(18vh + 12px);
  max-height: 185px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(4, 8, 20, 0.10) 28%,
    rgba(3, 6, 14, 0.36) 58%,
    rgba(3, 6, 13, 0.62) 100%
  );
  border-radius: 50% 50% 0 0 / 55% 55% 0 0;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.025);
  z-index: 43;
  pointer-events: none;
}

/* ========================= */
/* SFATUL ZILEI WIDGET       */
/* ========================= */

.daily-tip-card {
  width: 100%;
  background: linear-gradient(145deg, rgba(10, 22, 50, 0.90), rgba(5, 12, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.daily-tip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.daily-tip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.daily-tip-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
}

.daily-tip-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.70);
}

/* ========================= */
/* STAT CARDS ROW            */
/* ========================= */

.stat-cards-row {
  display: flex;
  gap: var(--info-card-gap);
  margin-bottom: var(--info-card-gap);
}

.stat-card {
  flex: 1;
  min-width: 0;
  background: linear-gradient(145deg, rgba(10, 22, 50, 0.90), rgba(5, 12, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stat-card__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.50);
  margin-top: 1px;
}

.stat-card__icon-img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.stat-card__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.35;
  text-transform: uppercase;
}

.stat-card__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-card__num {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.stat-card__unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
}

.stat-card__secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.stat-card__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.stat-card__gps-warning {
  margin: 5px 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  color: #ef4444;
  letter-spacing: 0.01em;
}