/* Ardor App Styles - Matching Landing Page Design Language */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --bg-deep: #0C0A0D;
  --bg-card: #161318;
  --bg-elevated: #1E1A21;
  --bg-input: #1A161D;
  --rose: #E85D75;
  --rose-soft: #F2899A;
  --rose-glow: rgba(232, 93, 117, 0.15);
  --rose-dim: rgba(232, 93, 117, 0.08);
  --warm: #F5E6D3;
  --warm-dim: #B8A99A;
  --text: #F0EBE6;
  --text-secondary: #9E9399;
  --accent-gold: #D4A853;
  --green: #5CB85C;
  --danger: #E85D75;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- LAYOUT ---- */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- NAV ---- */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(12, 10, 13, 0.85);
  border-bottom: 1px solid var(--rose-dim);
}

.app-nav .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.app-nav .logo span { color: var(--rose); }

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--rose-glow);
}

.nav-links a.active {
  color: var(--rose);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose-dim);
}

.nav-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--rose);
  font-weight: 600;
}

.btn-logout {
  background: none;
  border: 1px solid rgba(232, 93, 117, 0.2);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-logout:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* ---- MAIN CONTENT ---- */
.app-content {
  flex: 1;
  padding-top: 65px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ---- AUTH SCREEN ---- */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 65px);
  padding: 2rem 1rem;
}

.auth-box {
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-logo span { color: var(--rose); }

.auth-tagline {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: inherit;
}

.auth-tab.active {
  background: var(--rose);
  color: white;
}

.auth-tab:hover:not(.active) {
  color: var(--text);
}

/* ---- FORMS ---- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid rgba(232, 93, 117, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--rose);
}

.form-input::placeholder {
  color: rgba(158, 147, 153, 0.5);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239E9399' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-input option {
  background: var(--bg-card);
  color: var(--text);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: var(--rose);
  color: white;
}

.btn-primary:hover {
  background: var(--rose-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232, 93, 117, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--rose-dim);
}

.btn-secondary:hover {
  border-color: rgba(232, 93, 117, 0.3);
}

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ---- PROFILE WIZARD ---- */
.wizard-container {
  padding: 2rem 0;
}

.wizard-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.wizard-step-indicator {
  flex: 1;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 2px;
  transition: background 0.3s;
}

.wizard-step-indicator.active {
  background: var(--rose);
}

.wizard-step-indicator.completed {
  background: var(--green);
}

.wizard-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wizard-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.wizard-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.wizard-actions .btn {
  flex: 1;
}

/* ---- UPLOAD AREA ---- */
.upload-area {
  border: 2px dashed rgba(232, 93, 117, 0.2);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: var(--rose);
  background: var(--rose-glow);
}

.upload-area.has-file {
  border-color: var(--green);
  border-style: solid;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.upload-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.upload-text strong {
  color: var(--rose);
}

.upload-preview {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.upload-preview-video {
  width: 100%;
  max-height: 250px;
  border-radius: 12px;
  background: var(--bg-card);
}

.upload-remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- VIDEO UPLOAD SLOTS ---- */
.video-slots {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-slot {
  background: var(--bg-card);
  border: 1px solid var(--rose-dim);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.video-slot:hover {
  border-color: rgba(232, 93, 117, 0.2);
}

.video-slot-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.video-slot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-secondary);
  flex-shrink: 0;
}

.video-slot-dot.recording { background: var(--rose); animation: rec 1.5s ease-in-out infinite; }
.video-slot-dot.uploaded { background: var(--green); }

@keyframes rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.video-slot-prompt {
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
}

.video-slot-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.video-slot-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.video-slot-upload {
  flex: 1;
}

/* ---- DISCOVERY FEED ---- */
.discover-container {
  padding: 1.5rem 0 6rem;
}

.discover-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.discover-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.discover-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.discover-empty p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Profile Card */
.profile-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rose-dim);
  animation: cardIn 0.3s ease-out;
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.profile-card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-elevated);
}

.profile-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-secondary);
  opacity: 0.3;
}

.profile-card-info {
  padding: 1.5rem;
}

.profile-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.profile-card-age {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.profile-card-location {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-card-bio {
  color: var(--warm-dim);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Video Section in Card */
.profile-card-videos {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-video-item {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-video-item:hover {
  background: var(--rose-glow);
}

.profile-video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
}

.profile-video-label {
  font-size: 0.82rem;
  color: var(--text);
  flex: 1;
}

.profile-video-play {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Action Buttons */
.discover-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.25rem 2rem 2rem;
  background: linear-gradient(to top, var(--bg-deep) 60%, transparent);
  z-index: 50;
}

.action-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s;
}

.action-btn:active {
  transform: scale(0.9);
}

.action-btn-skip {
  border-color: rgba(158, 147, 153, 0.3);
  color: var(--text-secondary);
}
.action-btn-skip:hover {
  border-color: var(--text-secondary);
  background: rgba(158, 147, 153, 0.1);
}

.action-btn-flower {
  border-color: rgba(212, 168, 83, 0.3);
  color: var(--accent-gold);
}
.action-btn-flower:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.1);
  transform: scale(1.05);
}

.action-btn-like {
  border-color: rgba(232, 93, 117, 0.3);
  color: var(--rose);
  width: 70px;
  height: 70px;
  font-size: 1.6rem;
}
.action-btn-like:hover {
  border-color: var(--rose);
  background: var(--rose-glow);
  transform: scale(1.05);
}

/* ---- MATCH NOTIFICATION ---- */
.match-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 13, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.match-modal {
  text-align: center;
  padding: 3rem 2rem;
  animation: popIn 0.4s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.match-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.match-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.match-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ---- MATCHES LIST ---- */
.matches-container {
  padding: 1.5rem 0 2rem;
}

.matches-header {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.matches-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}

.matches-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--rose-dim);
  transition: border-color 0.2s;
}

.match-item:hover {
  border-color: rgba(232, 93, 117, 0.2);
}

.match-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose-dim);
  flex-shrink: 0;
}

.match-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--rose);
  flex-shrink: 0;
}

.match-info {
  flex: 1;
  min-width: 0;
}

.match-name {
  font-weight: 600;
  font-size: 1rem;
}

.match-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.match-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: right;
}

/* ---- MY PROFILE ---- */
.my-profile-container {
  padding: 1.5rem 0 2rem;
}

.my-profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.my-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rose-dim);
  margin-bottom: 1rem;
}

.my-profile-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--rose);
  margin: 0 auto 1rem;
}

.my-profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.my-profile-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid var(--rose-dim);
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rose);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.profile-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rose-dim);
}

.profile-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.profile-section p {
  font-size: 0.9rem;
  color: var(--warm-dim);
  line-height: 1.6;
}

/* ---- VIDEO PLAYER MODAL ---- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 13, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.video-modal video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
}

.video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- LOADING ---- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-secondary);
  gap: 0.5rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--rose-dim);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--rose-dim);
  z-index: 500;
  transition: transform 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: var(--danger);
}

.toast.success {
  border-color: var(--green);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .app-nav {
    padding: 0.75rem 1rem;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .app-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .action-btn {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .action-btn-like {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .discover-actions {
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .profile-card-info {
    padding: 1.25rem;
  }

  .stats-grid {
    gap: 0.5rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }
}
