/* =========================================================
   Peekday Brand Concepts — styles.css
   iPhone 17 Pro mockup frames, 4-up layout, 8pt grid
   ========================================================= */

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

/* Base */
body {
  font-family: 'Inter', sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Top Navigation
   ========================================================= */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-nav .brand {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: #111;
}

.top-nav .brand span {
  color: #888;
  font-weight: 400;
}

.pill-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.pill-nav::-webkit-scrollbar {
  display: none;
}

.pill {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid #ddd;
  background: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  color: #555;
  font-family: inherit;
}

.pill:hover {
  border-color: #999;
  color: #111;
}

.pill.active {
  background: #111;
  color: white;
  border-color: #111;
}

/* =========================================================
   Main Layout
   ========================================================= */

.main {
  padding-top: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 96px;
}

/* =========================================================
   Concept View — fade transition
   ========================================================= */

.concept-view {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.concept-view.is-fading {
  opacity: 0;
}

/* =========================================================
   Concept Header
   ========================================================= */

.concept-header {
  text-align: center;
  padding: 64px 0 48px;
}

.concept-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 16px;
}

.concept-name {
  font-size: 48px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.concept-desc {
  font-size: 17px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================================================
   Phone Grid — 4 per row
   ========================================================= */

.phones-row {
  display: grid;
  grid-template-columns: repeat(4, 280px);
  gap: 24px;
  justify-content: center;
  margin-bottom: 48px;
}

.phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}

/* =========================================================
   iPhone 17 Pro Frame
   280 × 607px  |  44px corner radius  |  multi-layer shadow
   ========================================================= */

.phone-frame {
  width: 280px;
  height: 607px;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.10),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.phone-frame.dark-frame {
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.40),
    0 8px 24px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* =========================================================
   Dynamic Island  — 84 × 22px pill, centered, top: 10px
   ========================================================= */

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #000;
  border-radius: 100px;
  z-index: 20;
}

/* =========================================================
   Status Bar — 44px tall area above content
   ========================================================= */

.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 6px;
  z-index: 15;
  pointer-events: none;
}

.status-time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

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

.status-icons svg {
  display: block;
}

/* =========================================================
   Home Indicator — 120 × 4px pill, centered, bottom: 8px
   ========================================================= */

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 100px;
  background: currentColor;
  opacity: 0.2;
  z-index: 20;
  pointer-events: none;
}

/* =========================================================
   Phone Screen (scrollable inner area)
   ========================================================= */

.phone-screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   Screen: Welcome / Login (full-bleed gradient splash)
   ========================================================= */

.screen-content {
  padding: 72px 24px 24px;
  min-height: 100%;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-wordmark {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.app-tagline {
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 32px;
  opacity: 0.6;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  font-family: inherit;
  background: transparent;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.divider-text {
  text-align: center;
  font-size: 11px;
  opacity: 0.4;
  margin-bottom: 16px;
}

.btn-social {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 8px;
  text-align: center;
  font-family: inherit;
}

.link-text {
  text-align: center;
  font-size: 12px;
  margin-top: 16px;
  opacity: 0.5;
}

.link-text a {
  text-decoration: underline;
  cursor: pointer;
}

/* =========================================================
   Screen: Home (widget / today view)
   ========================================================= */

.widget-screen {
  padding: 56px 16px 96px;
  min-height: 100%;
}

.widget-date {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.widget-day {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.5;
  margin-bottom: 24px;
}

.widget-card {
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
}

.widget-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 10px;
}

/* Photo placeholder — warm gradient, no emoji */
.widget-photo {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

.widget-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 35%, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* Empty capture slot */
.widget-photo.is-empty {
  opacity: 0.3;
}

.widget-photo.is-empty::before {
  content: '+';
  font-size: 28px;
  font-weight: 300;
  opacity: 0.6;
}

.widget-caption {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.4;
}

.widget-ago {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.4;
  margin-top: 4px;
}

.btn-capture {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: inherit;
  letter-spacing: -0.01em;
}

/* Camera icon inside btn-capture — SVG, no emoji */
.icon-camera {
  display: block;
  flex-shrink: 0;
}

/* =========================================================
   Screen: Then & Now (shareable card — stacked photos)
   ========================================================= */

.thennow-screen {
  padding: 56px 16px 96px;
  min-height: 100%;
}

.thennow-header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.thennow-sub {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 16px;
}

.thennow-card {
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
}

/* Two stacked photos side-by-side */
.thennow-photos {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.thennow-photo {
  flex: 1;
  height: 140px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
  overflow: hidden;
  position: relative;
}

/* Gradient overlay so label is legible */
.thennow-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.thennow-photo-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

/* Photo placeholder fills */
.photo-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180, 130, 90, 0.25) 0%, rgba(120, 80, 60, 0.18) 100%);
}

.thennow-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.thennow-detail {
  font-size: 11px;
  opacity: 0.5;
  margin-bottom: 12px;
}

.share-row {
  display: flex;
  gap: 8px;
}

.share-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* =========================================================
   Tab Bar — SVG line icons, no emoji
   ========================================================= */

.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 0 28px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  border-top: 1px solid;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.4;
  cursor: pointer;
  min-width: 40px;
}

.tab-item.active {
  opacity: 1;
}

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

.tab-icon svg {
  display: block;
}

/* =========================================================
   Navigation Arrows
   ========================================================= */

.nav-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #555;
}

.nav-btn:hover {
  border-color: #111;
  color: #111;
}

.nav-btn svg {
  display: block;
}

.nav-counter {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  min-width: 48px;
  text-align: center;
}

/* =========================================================
   CSS Variables Panel
   ========================================================= */

.css-panel {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.css-panel h3 {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.css-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.css-var {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.css-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  flex-shrink: 0;
}

.css-label {
  color: #999;
}

.css-value {
  color: #333;
  font-weight: 500;
}

/* =========================================================
   Photo placeholder gradients (used inline via JS)
   Defined here as reference — warm, no emoji
   ========================================================= */

/* Warm baby photo placeholder */
.photo-warm {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(255, 220, 170, 0.6) 0%, transparent 60%),
    linear-gradient(160deg, rgba(220, 170, 120, 0.4) 0%, rgba(180, 130, 100, 0.5) 100%);
}

/* Cool neutral placeholder */
.photo-cool {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(180, 210, 240, 0.5) 0%, transparent 65%),
    linear-gradient(160deg, rgba(140, 180, 220, 0.35) 0%, rgba(100, 140, 180, 0.45) 100%);
}

/* Dark placeholder */
.photo-dark {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(100, 80, 140, 0.5) 0%, transparent 60%),
    linear-gradient(160deg, rgba(60, 50, 90, 0.6) 0%, rgba(40, 35, 70, 0.7) 100%);
}

/* =========================================================
   Responsive
   ========================================================= */

/* 2 × 2 grid */
@media (max-width: 1200px) {
  .phones-row {
    grid-template-columns: repeat(2, 280px);
    gap: 24px;
  }
}

/* Single column */
@media (max-width: 768px) {
  .phones-row {
    grid-template-columns: 280px;
    gap: 32px;
  }

  .concept-name {
    font-size: 36px;
  }

  .concept-header {
    padding: 48px 0 40px;
  }
}
