/* ============================================
   VENUE DESIGN STUDIOS — Design Tokens
   ============================================
   Source of truth: CLAUDE.md
   Font: Poppins (Google Fonts) — exclusively
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,700&display=swap');

/* --- Custom Properties --- */
:root {
  /* Colors */
  --coral: #EF9180;
  --coral-dark: #E8826B;
  --yellow: #FFC236;
  --cream: #F6EEE6;
  --orange: #F59E4D;
  --green: #72DA8E;
  --brown: #654D4E;
  --aqua: #84C9C9;
  --peach-bg: #FEDECF;
  --muted: #A3898C;
  --coral-light: #EFA79A;
  --warm-shadow: #FFE4D6;
  --blush: #F5D4CA;
  --soft-pink: #FFF3F0;
  --white: #FFFFFF;
  --warm-track: #E7D7D4;

  /* Text Colors */
  --text-primary: #654D4E;
  --text-secondary: #A3898C;
  --text-accent: #EF9180;
  --text-body: #6E645F;

  /* VIP Colors */
  --vip-yellow: #FFE147;
  --vip-brown: #BF611A;

  /* Border Radius */
  --radius-phone: 30px;
  --radius-card: 14px;
  --radius-identity: 32px;
  --radius-button: 31.5px;
  --radius-pill: 320px;
  --radius-tab: 36px;
  --radius-badge: 8px;
  --radius-image: 10px;
  --radius-min: 12px;

  /* Font */
  --font-family: 'Poppins', sans-serif;
}

/* --- Gradients --- */
.btn-primary {
  background: linear-gradient(168deg, #FFC226 20%, #F59E4D 99%);
}

.btn-teal {
  background: linear-gradient(162deg, #77DBD2 11%, #69BFCC 79%);
}

.btn-coral {
  background: linear-gradient(to bottom, #EF9180, #E8826B);
}

.screen-bg {
  background:
    linear-gradient(180deg, #F5D4CA 1.7%, rgba(245, 212, 202, 0) 5.7%),
    linear-gradient(90deg, #FFE4D6, #FFE4D6);
  position: relative;
}

.screen-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(101, 77, 78, 0.05);
  mix-blend-mode: color-burn;
  pointer-events: none;
}

/* --- Shadows --- */
.card-shadow {
  box-shadow: 0 4px 14px rgba(180, 140, 120, 0.14);
}

.discovery-shadow {
  box-shadow: 0 0 24px rgba(239, 167, 154, 0.21);
}

.modal-shadow {
  box-shadow: 0 -17px 24px rgba(0, 0, 0, 0.22);
}

.voting-shadow {
  box-shadow: 0 -3px 5.3px rgba(0, 0, 0, 0.12);
}

.nav-shadow {
  box-shadow: 0 0 16px rgba(239, 167, 154, 0.5);
}

.btn-primary-shadow {
  box-shadow: 0 1.5px 2px rgba(242, 160, 59, 0.3), 0 1.5px 2px rgba(101, 77, 78, 0.1);
}

.btn-inset {
  box-shadow: inset 0 -2px 0 rgba(225, 127, 54, 0.3);
}

.btn-teal-inset {
  box-shadow: inset 0 -2px 0 rgba(88, 173, 185, 0.8);
}

/* --- Interactive States (all tappable elements) --- */
.tappable {
  cursor: pointer;
  transition: transform 100ms ease-out, background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.tappable:hover {
  transform: scale(1.02);
}

.tappable:active {
  transform: scale(0.97);
}

/* --- Animated Wrapper Background (desktop) --- */
.wrapper-bg {
  position: fixed;
  inset: 0;
  background: #F6EEE6;
  overflow: hidden;
}

.wrapper-bg::before {
  content: '';
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 145, 128, 0.45), rgba(245, 158, 77, 0.2) 55%, transparent);
  filter: blur(60px);
  top: -15%;
  left: -8%;
  animation: drift1 20s ease-in-out infinite;
}

.wrapper-bg::after {
  content: '';
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 201, 201, 0.3), rgba(255, 194, 38, 0.18) 55%, transparent);
  filter: blur(60px);
  bottom: -15%;
  right: -8%;
  animation: drift2 25s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15vw, 20vh); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12vw, -18vh); }
}

/* --- Phone Frame (desktop >768px) --- */
.phone-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.phone-bezel {
  position: relative;
  width: 410px;
  height: 868px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  /* JS sets --phone-scale on resize */
  transform: scale(var(--phone-scale, 1));
  transform-origin: center center;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 34px;
  background: #1a1a1a;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-phone);
  overflow: hidden;
  position: relative;
  background: var(--white);
}

/* --- Screen Layout --- */
.screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  color: var(--text-primary);
}

.content-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.footer {
  flex-shrink: 0;
}

/* --- Responsive: Mobile (≤768px) — no phone frame --- */
@media (max-width: 768px) {
  .wrapper-bg {
    display: none;
  }

  .phone-frame {
    min-height: 100dvh;
    min-height: -webkit-fill-available;
  }

  .phone-bezel {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .phone-notch {
    display: none;
  }

  .phone-screen {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}

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

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}
