/* ==================== Amber App Mockups ==================== */

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

:root {
  /* Colors */
  --amber-gold: #D4A253;
  --amber-light: #E8C78A;
  --amber-dark: #B8863D;
  --deep-brown: #4A3728;
  --brown-light: #6B5442;
  --brown-dark: #2D1F17;
  --soft-cream: #F5EDE0;
  --warm-white: #FAF8F5;
  --rich-black: #1A1614;

  /* App semantic */
  --app-bg: #0D0B0A;
  --app-surface: #1A1614;
  --app-surface-elevated: #252220;
  --app-text: #F5EDE0;
  --app-text-muted: #8A7A6B;
  --app-accent: #D4A253;
  --app-border: #2D261F;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
}

body {
  font-family: var(--font-ui);
  background: #0A0908;
  color: var(--soft-cream);
  min-height: 100vh;
  padding: 40px 20px;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(212, 162, 83, 0.04) 0%, transparent 50%);
}

/* ==================== Showcase Layout ==================== */

.app-showcase {
  max-width: 1400px;
  margin: 0 auto;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  color: var(--soft-cream);
  letter-spacing: -0.02em;
}

.showcase-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--app-text-muted);
  margin-bottom: 56px;
}

.showcase-subtitle::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--app-accent);
  margin: 24px auto 0;
  border-radius: 1px;
  opacity: 0.5;
}

.screens-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.screen-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--app-accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(212, 162, 83, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
}

/* ==================== Phone Frame ==================== */

.phone-frame {
  width: 375px;
  height: 812px;
  background: #000;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2A2522,
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(212, 162, 83, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.phone-frame:hover {
  box-shadow:
    0 0 0 2px #2A2522,
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(212, 162, 83, 0.12);
  transform: translateY(-4px);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--app-bg);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==================== Status Bar ==================== */

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 8px;
  font-size: 14px;
  font-weight: 600;
}

.status-time {
  color: var(--app-text);
}

.status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--app-text);
}

/* ==================== App Header ==================== */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 16px;
}

.header-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--app-text);
  letter-spacing: -0.01em;
}

.header-action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--app-accent);
  cursor: pointer;
}

/* ==================== App Content ==================== */

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
}

/* ==================== Tab Bar ==================== */

.tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 8px 0 28px;
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--app-text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
}

.tab-item:hover {
  color: var(--app-accent);
  transform: translateY(-1px);
}

.tab-item svg {
  width: 24px;
  height: 24px;
}

.tab-active {
  color: var(--app-accent);
}

/* ==================== Timeline Screen ==================== */

.date-group {
  margin-bottom: 24px;
}

.date-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--app-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.conversation-card {
  background: var(--app-surface);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.conversation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.conv-time {
  font-size: 12px;
  color: var(--app-text-muted);
  min-width: 56px;
}

.conv-main {
  flex: 1;
}

.conv-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 4px;
}

.conv-preview {
  font-size: 13px;
  color: var(--app-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.conv-duration {
  font-size: 11px;
  color: var(--app-text-muted);
}

.conv-faces {
  display: flex;
  gap: 4px;
}

.face-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--app-surface-elevated);
  border: 2px solid var(--app-accent);
}

/* ==================== Search Screen ==================== */

.search-header {
  padding: 8px 20px 16px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--app-surface);
  border-radius: 12px;
  padding: 12px 16px;
}

.search-icon {
  color: var(--app-text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--app-text);
  outline: none;
}

.search-input::placeholder {
  color: var(--app-text-muted);
}

.results-count {
  font-size: 13px;
  color: var(--app-text-muted);
  margin-bottom: 16px;
}

.result-card {
  background: var(--app-surface);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.result-date {
  font-size: 12px;
  color: var(--app-text-muted);
}

.result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--app-accent);
}

.result-transcript {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--app-text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.result-transcript .highlight {
  background: rgba(212, 162, 83, 0.2);
  color: var(--app-accent);
  padding: 1px 4px;
  border-radius: 4px;
}

.result-play {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--app-surface-elevated);
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  color: var(--app-accent);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.result-play:hover {
  background: var(--app-accent);
  color: var(--rich-black);
  transform: translateY(-1px);
}

/* ==================== People Screen ==================== */

.people-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--app-surface);
  border-radius: 16px;
  padding: 14px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--app-accent);
  color: var(--rich-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.person-unknown .person-avatar {
  background: var(--app-surface-elevated);
  color: var(--app-text-muted);
}

.person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.person-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--app-text);
}

.person-count {
  font-size: 13px;
  color: var(--app-text-muted);
}

/* ==================== Conversation Detail ==================== */

.detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 16px;
}

.back-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--app-accent);
  cursor: pointer;
}

.detail-title-group {
  flex: 1;
}

.detail-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--app-text);
}

.detail-subtitle {
  font-size: 13px;
  color: var(--app-text-muted);
}

/* Audio Player */
.audio-player {
  padding: 16px 20px;
  background: var(--app-surface);
  margin: 0 20px 16px;
  border-radius: 16px;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 48px;
  margin-bottom: 12px;
}

.waveform-bar {
  width: 4px;
  background: var(--app-accent);
  border-radius: 2px;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.waveform-bar.active {
  opacity: 1;
  animation: wave-pulse 1.5s ease-in-out infinite;
}

.waveform-bar.active:nth-child(2n) {
  animation-delay: 0.1s;
}

.waveform-bar.active:nth-child(3n) {
  animation-delay: 0.2s;
}

@keyframes wave-pulse {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.1);
  }
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.player-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--app-text-muted);
  min-width: 40px;
}

.play-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--app-accent);
  border: none;
  color: var(--rich-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 162, 83, 0.4);
}

/* Transcript */
.transcript-content {
  padding-bottom: 60px;
}

.transcript-segment {
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--app-border);
}

.transcript-segment.segment-self {
  border-left-color: var(--app-accent);
}

.segment-speaker {
  font-size: 12px;
  font-weight: 600;
  color: var(--app-text-muted);
}

.segment-self .segment-speaker {
  color: var(--app-accent);
}

.segment-time {
  font-size: 11px;
  color: var(--app-text-muted);
  margin-left: 8px;
}

.segment-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--app-text);
  margin-top: 4px;
}

/* Faces Bar */
.faces-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
}

.faces-label {
  font-size: 12px;
  color: var(--app-text-muted);
}

.face-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--app-surface-elevated);
  padding: 6px 12px 6px 6px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--app-text);
}

.face-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--app-accent);
  color: var(--rich-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

/* ==================== Settings Screen ==================== */

.settings-content {
  padding-top: 8px;
}

.settings-section {
  margin-bottom: 32px;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--app-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding: 0 4px;
}

.settings-group {
  background: var(--app-surface);
  border-radius: 16px;
  overflow: hidden;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--app-border);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setting-label {
  font-size: 15px;
  color: var(--app-text);
}

.setting-value {
  font-size: 14px;
  color: var(--app-text-muted);
}

.setting-connected {
  color: #4CAF50;
}

.setting-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--app-text-muted);
}

.setting-selectable {
  cursor: pointer;
}

/* Device Status */
.device-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.battery-indicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--app-accent);
}

.battery-bar {
  width: 48px;
  height: 16px;
  background: var(--app-surface-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.battery-fill {
  height: 100%;
  background: var(--app-accent);
  border-radius: 4px;
}

/* Toggle */
.toggle {
  width: 48px;
  height: 28px;
  background: var(--app-surface-elevated);
  border-radius: 14px;
  padding: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-on {
  background: var(--app-accent);
}

.toggle-thumb {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-on .toggle-thumb {
  transform: translateX(20px);
}

/* ==================== Onboarding Screen ==================== */

.onboarding-screen {
  background: linear-gradient(180deg, var(--app-bg) 0%, #0F0D0C 100%);
}

.onboarding-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
}

.onboarding-device {
  position: relative;
  margin-bottom: 40px;
}

.device-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(212, 162, 83, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.device-icon {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(212, 162, 83, 0.3));
}

.onboarding-text {
  margin-bottom: 32px;
}

.onboarding-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.onboarding-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--app-text-muted);
  line-height: 1.5;
  max-width: 280px;
}

.onboarding-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--app-text-muted);
}

.feature-item svg {
  color: var(--app-accent);
  flex-shrink: 0;
}

.onboarding-cta {
  width: 100%;
  max-width: 280px;
  padding: 16px 32px;
  background: var(--app-accent);
  color: var(--rich-black);
  border: none;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.onboarding-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 162, 83, 0.3);
}

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

@media (max-width: 480px) {
  .phone-frame {
    transform: scale(0.85);
    transform-origin: top center;
  }

  .screens-grid {
    gap: 20px;
  }
}
