/* Naprio Studios — shared visual primitives
   Phone bezel + mocked Venture app screens
*/

/* ============================================
   Phone frame (iPhone-ish, no brand)
   ============================================ */
.phone {
  width: 320px;
  position: relative;
  border-radius: 46px;
  background: linear-gradient(180deg, #1a1d24 0%, #0E1116 100%);
  padding: 12px;
  box-shadow: var(--shadow-float);
  flex-shrink: 0;
}

.phone__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 30px;
  background: #0E1116;
  border-radius: 999px;
  z-index: 5;
}

/* ============================================
   App scaffolding (status bar + nav)
   ============================================ */

.app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--c-ink);
  background: #fff;
  position: absolute;
  inset: 0;
}

.app__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
  padding: 18px 28px 0;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.app__statusbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app__statusbar-icons svg {
  width: 16px;
  height: 11px;
}

.app__main {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.app__tabbar {
  height: 72px;
  border-top: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.app__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #B6BAC0;
  padding-top: 6px;
}

.app__tab.is-active { color: var(--c-brand-blue); }

.app__tab svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

/* ============================================
   Discovery screen (swipe card)
   ============================================ */

.app--discovery .app__main {
  background:
    radial-gradient(120% 60% at 50% 0%, #FFF6F0 0%, transparent 60%),
    #FAFAFC;
  padding: 12px 16px 8px;
  gap: 12px;
}

.app__topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.app__topnav-title {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.app__icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
}

.app__icon-btn svg { width: 16px; height: 16px; stroke-width: 2.2; }

.app__chips {
  display: flex;
  gap: 8px;
  overflow: hidden;
  padding: 0 4px;
}

.app__chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-ink-muted);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.app__chip.is-on {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

.swipecard-stack {
  position: relative;
  flex: 1;
  margin: 4px 4px 0;
}

.swipecard {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(160deg, #FFD9C7 0%, #FFB59B 50%, #FF8A76 100%);
  box-shadow: 0 16px 40px rgba(14,17,22,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  padding: 16px;
}

.swipecard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 30% 30%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
}

.swipecard--back {
  inset: 12px 12px -8px 12px;
  background: linear-gradient(160deg, #FFE4D5, #FFB59B);
  opacity: 0.5;
  z-index: 0;
}

.swipecard__content {
  position: relative;
  z-index: 2;
}

.swipecard__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 8px;
}

.swipecard__title {
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.swipecard__meta {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 8px;
}

.swipecard__meta svg { width: 12px; height: 12px; }

.swipecard__actions {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 4;
}

.swipe-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(14,17,22,0.10);
}

.swipe-btn--no { color: #FF6B5B; }
.swipe-btn--yes { color: var(--c-green); background: var(--c-green); color: #fff; border-color: var(--c-green); width: 64px; height: 64px; }
.swipe-btn--save { color: var(--c-brand-blue); }
.swipe-btn svg { width: 22px; height: 22px; stroke-width: 2.4; }
.swipe-btn--yes svg { width: 26px; height: 26px; }

/* ============================================
   Plan detail screen
   ============================================ */

.app--plan .app__main {
  background: #fff;
  overflow-y: hidden;
}

.app__hero {
  position: relative;
  height: 180px;
  background: linear-gradient(160deg, #4FC2F7 0%, #3B82F6 100%);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: #fff;
  flex-shrink: 0;
}

.app__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 80% 20%, rgba(255,255,255,0.3), transparent 60%);
}

.app__hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.app__hero-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.app__hero-back svg { width: 14px; height: 14px; stroke-width: 2.4; }

.app__hero-code {
  font-family: 'Switzer', 'Söhne', 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  background: rgba(255,255,255,0.22);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.app__hero-bottom { position: relative; z-index: 2; }

.app__hero-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.app__hero-sub {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.app__list {
  padding: 12px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.plan-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.plan-item__time {
  font-family: 'Switzer', 'Söhne', 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--c-brand-blue);
  width: 38px;
  flex-shrink: 0;
}

.plan-item__body { flex: 1; min-width: 0; }
.plan-item__title { font-weight: 800; font-size: 13px; line-height: 1.2; letter-spacing: -0.005em; }
.plan-item__sub { font-size: 11px; color: var(--c-ink-muted); margin-top: 2px; }

.plan-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}
.plan-item__avatar--coral { background: linear-gradient(135deg, #FFD9C7, #FF8A76); }
.plan-item__avatar--blue { background: linear-gradient(135deg, #B7DFFF, #3B82F6); }
.plan-item__avatar--green { background: linear-gradient(135deg, #B5EFD9, #0FB882); }
.plan-item__avatar--gold { background: linear-gradient(135deg, #FFE9A8, #F7C245); }

/* ============================================
   Stamps screen
   ============================================ */

.app--stamps .app__main {
  background: #FAFAFC;
}

.app__pageheader {
  padding: 12px 18px 8px;
  flex-shrink: 0;
}

.app__pageheader-caption {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-ink-muted);
  margin-bottom: 4px;
}

.app__pageheader-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stamps-stat {
  margin: 8px 18px 12px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stamps-stat__big {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.stamps-stat__big sup {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink-muted);
  margin-left: 2px;
  vertical-align: super;
}

.stamps-stat__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-muted);
  margin-top: 2px;
}

.stamps-stat__bar {
  flex: 1;
  height: 6px;
  background: var(--c-border);
  border-radius: 999px;
  margin: 0 14px;
  overflow: hidden;
  max-width: 80px;
}
.stamps-stat__bar > span {
  display: block;
  height: 100%;
  width: 60%;
  background: var(--c-brand-blue);
  border-radius: 999px;
}

.stamps-grid {
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stamp {
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--c-ink);
  position: relative;
}

.stamp__flag {
  font-size: 22px;
  line-height: 1;
}

.stamp__country {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stamp--dim {
  opacity: 0.32;
  filter: grayscale(0.8);
}

.stamp--dim::after {
  content: "?";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9px;
  color: var(--c-ink-muted);
}

/* ============================================
   Profile screen
   ============================================ */

.app--profile .app__main {
  background: #fff;
  overflow-y: hidden;
}

.profile-head {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD9C7, #FF8A76);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
}
.profile-name { font-weight: 900; font-size: 17px; letter-spacing: -0.01em; }
.profile-handle { font-size: 11px; color: var(--c-ink-muted); }

.profile-stats {
  margin: 0 18px 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.profile-stat {
  background: #FAFAFC;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.profile-stat__num {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.profile-stat__label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-ink-muted);
  margin-top: 2px;
}

.profile-section {
  padding: 0 18px;
}
.profile-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-muted);
  margin: 8px 0 8px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 700;
}
.profile-row:last-child { border-bottom: 0; }
.profile-row__icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(59,130,246,0.1);
  color: var(--c-brand-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.profile-row__icon svg { width: 14px; height: 14px; stroke-width: 2.2; }
.profile-row__chev { margin-left: auto; color: #B6BAC0; }
.profile-row__chev svg { width: 12px; height: 12px; stroke-width: 2.4; }

/* ============================================
   Search screen
   ============================================ */

.app--search .app__main {
  background: #fff;
  padding: 12px 16px 0;
}

.search-bar {
  height: 40px;
  background: #FAFAFC;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-ink-muted);
}
.search-bar svg { width: 14px; height: 14px; stroke-width: 2.4; color: var(--c-brand-blue); }
.search-bar__cursor {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--c-brand-blue);
  margin-left: 1px;
  animation: blink 1.1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.search-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-ink-muted);
  margin: 14px 0 8px;
}

.search-list {
  display: flex; flex-direction: column; gap: 8px;
}

.search-item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
}
.search-item__thumb {
  width: 40px; height: 40px; border-radius: 10px;
  flex-shrink: 0;
}
.search-item__title { font-weight: 800; font-size: 12.5px; letter-spacing: -0.005em; }
.search-item__sub { font-size: 10.5px; color: var(--c-ink-muted); margin-top: 1px; }

/* Generic placeholder thumbnail */
.thumb-coral { background: linear-gradient(135deg, #FFD9C7, #FF8A76); }
.thumb-blue { background: linear-gradient(135deg, #B7DFFF, #4FC2F7); }
.thumb-green { background: linear-gradient(135deg, #B5EFD9, #0FB882); }
.thumb-gold { background: linear-gradient(135deg, #FFE9A8, #F7C245); }
.thumb-ink { background: linear-gradient(135deg, #4a525e, #0E1116); }
