/* ============================================
   GoCheckin Rewards – Base Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans+SemiExpanded:wght@400;500;600;700&display=swap');
@import './variables.css';

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

html, body {
  height: 100%;
  background: #e8e0ec;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Phone Shell ---- */
.phone-shell {
  position: relative;
  width: var(--app-width);
  min-height: 844px;
  background: var(--color-surface);
  overflow: hidden;
  border-radius: 44px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.08);
  margin: 24px 0;
}

/* ---- Background gradient (header area) ---- */
.phone-shell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: var(--gradient-header);
  border-radius: 44px 44px 60% 60% / 44px 44px 40px 40px;
  z-index: 0;
}

/* ---- Status Bar ---- */
.status-bar {
  position: relative;
  z-index: 10;
  height: var(--status-bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 0;
}

.status-bar .time {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-content-main);
  letter-spacing: -0.3px;
}

.status-bar .status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- App Header ---- */
.app-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--space-5) var(--space-5);
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-2xl);
  border: 1.5px solid rgba(255,255,255,0.7);
  object-fit: cover;
  background: linear-gradient(135deg, #e0b0f0, #c880e8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s;
}

.header-avatar:hover { opacity: 0.85; }

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-img {
  width: 108px;
  height: 32px;
  display: block;
}

.header-notification {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-2xl);
  background: var(--color-button-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glass-btn);
  transition: opacity 0.15s;
  border: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.header-notification:hover { opacity: 0.8; }

/* ---- Main Scroll Area ---- */
.main-scroll {
  position: relative;
  z-index: 5;
  padding: 0 var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  overflow-y: auto;
  height: calc(844px - var(--status-bar-h) - var(--header-height) - var(--nav-height));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-scroll::-webkit-scrollbar { display: none; }

/* ---- Bottom Nav ---- */
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
  padding: 0 var(--space-6) 0;
}

.nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 0 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 56px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  border: none;
  background: none;
  padding: 0;
}

.nav-item:hover { opacity: 0.7; }

.nav-item .nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item .nav-label {
  font-size: var(--font-size-3xs);
  font-weight: var(--font-weight-regular);
  color: var(--color-content-main);
  text-align: center;
  white-space: nowrap;
}

.nav-item.active .nav-label {
  color: var(--color-primary);
}

.nav-item.active .nav-icon svg path,
.nav-item.active .nav-icon svg rect,
.nav-item.active .nav-icon svg circle {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}

.home-indicator {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.home-indicator-bar {
  width: 135px;
  height: 5px;
  background: var(--color-content-main);
  border-radius: 100px;
  opacity: 0.3;
}

/* ---- Nav icon active swap ---- */
.nav-item .icon-active  { display: none; }
.nav-item .icon-default { display: inline-block; }
.nav-item.active .icon-default { display: none; }
.nav-item.active .icon-active  { display: inline-block; }

/* ---- Icon base ---- */
/* img.icon before inline swap — prevents layout shift */
img.icon {
  display: inline-block;
  vertical-align: middle;
}

/* Inlined SVG icons inherit color from parent */
.status-icons svg,
.dropdown-icon svg  { color: var(--color-content-main); }
.header-notification svg { color: var(--color-content-main); }
.flash-icon svg     { color: var(--color-white); }
.nav-item svg       { color: var(--color-content-main); }
.nav-item.active svg { color: var(--color-primary); }
.notif-icon-wrap--purple svg { color: var(--color-primary); }

/* ---- Typography utilities ---- */
.text-main    { color: var(--color-content-main); }
.text-muted   { color: var(--color-content-muted); }
.text-primary { color: var(--color-primary); }
.text-white   { color: var(--color-white); }

.font-regular  { font-weight: var(--font-weight-regular); }
.font-medium   { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold     { font-weight: var(--font-weight-bold); }

.spacing-section {
  padding: var(--space-5) 0;
}
.spacing-section-s {
  padding: var(--space-3) 0;
}