/* Wedding Camera Application - Responsive Design System & Mobile App Interface */

:root {
  --primary-rose: #8B3A44;
  --primary-dark: #66252C;
  --rose-light: #F4E8E9;
  --accent-gold: #D4AF37;
  --accent-gold-light: #FBF4DE;
  --bg-cream: #FAF6F0;
  --card-bg: #FFFFFF;
  --text-primary: #2C2223;
  --text-muted: #786C6D;
  --border-subtle: #E8DDDA;
  --border-gold: rgba(212, 175, 55, 0.4);
  --shadow-sm: 0 4px 12px rgba(139, 58, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(139, 58, 68, 0.12);
  --shadow-lg: 0 16px 40px rgba(139, 58, 68, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

h1, h2, h3, .brand-title {
  font-family: 'Playfair Display', Georgia, serif;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none !important;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-rose);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-rose), var(--primary-dark));
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(139, 58, 68, 0.25);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-rose);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  padding: 9px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-rose), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 58, 68, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 58, 68, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary-rose);
  color: var(--primary-rose);
}

.btn-outline:hover {
  background: var(--rose-light);
}

.btn-gold {
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: #fff;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Mobile Quick Action Card */
.mobile-hero-actions {
  padding: 16px 0 8px;
}

.mobile-action-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* Hero Section */
.hero-banner {
  padding: 30px 0 20px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: var(--rose-light);
  color: var(--primary-rose);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 58, 68, 0.15);
}

.hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

/* Showcase Grid Layout */
.showcase-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

.how-it-works-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.section-badge {
  background: var(--primary-rose);
  color: #fff;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 12px;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rose-light);
  color: var(--primary-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.step-content p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Phones Container */
.phones-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  position: relative;
  width: 100%;
}

.phone-mockup {
  width: 230px;
  height: 480px;
  background: #111;
  border-radius: 36px;
  border: 7px solid #2A2A2A;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.phone-mockup.main-phone {
  width: 270px;
  height: 520px;
  border-width: 9px;
  border-color: #1a1a1a;
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.phone-notch {
  width: 84px;
  height: 18px;
  background: #000;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 50;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-cream);
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-camera-view {
  background: #000;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.camera-header {
  padding: 24px 14px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.couple-title-sm {
  font-size: 13px;
  font-weight: 700;
}

.camera-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-overlay-frame {
  position: absolute;
  top: 50px;
  left: 12px;
  right: 12px;
  bottom: 90px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.frame-watermark {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 10px;
  align-self: center;
}

.camera-controls {
  padding: 14px;
  z-index: 5;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  text-align: center;
}

.camera-modes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mode-item {
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}

.mode-item.active {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
}

.shutter-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: transparent;
  margin: 0 auto;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.shutter-btn::after {
  content: '';
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
}

.shutter-btn.recording {
  border-color: #dc3545;
  animation: pulse-recording 1.2s infinite;
}

.shutter-btn.recording::after {
  background: #dc3545;
  border-radius: 8px;
  width: 24px;
  height: 24px;
}

@keyframes pulse-recording {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.rec-timer-badge {
  background: #dc3545;
  color: #fff;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-camera-flip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.phone-gallery-view {
  padding: 24px 10px 10px;
  height: 100%;
}

.mini-gallery-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.mini-grid-item {
  width: 100%;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.phone-people-view {
  padding: 24px 10px 10px;
  height: 100%;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.person-card-sm {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.person-card-sm img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
  border: 2px solid var(--primary-rose);
}

.person-card-sm h5 {
  font-size: 11px;
  font-weight: 700;
}

.person-card-sm p {
  font-size: 9px;
  color: var(--text-muted);
}

.features-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.feature-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rose-light);
  color: var(--primary-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.bottom-showcase-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.qr-stand-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}

.qr-stand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-rose), var(--accent-gold));
}

.stand-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-rose);
  margin-bottom: 10px;
}

.qr-box {
  background: #fff;
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  display: inline-block;
  margin: 8px 0;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}

.qr-box img {
  width: 130px;
  height: 130px;
  display: block;
}

.qr-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.couple-stats-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-header h3 {
  font-size: 18px;
  color: var(--primary-rose);
}

.stats-counter-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  gap: 8px;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.stats-features-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill-tag {
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gallery-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-chip.active, .filter-chip:hover {
  background: var(--primary-rose);
  color: #fff;
  border-color: var(--primary-rose);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.card-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-info {
  padding: 14px;
}

.uploader-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.uploader-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.uploader-name {
  font-size: 12px;
  font-weight: 700;
}

.card-timestamp {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}

.card-caption {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.like-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.like-btn.liked {
  color: var(--primary-rose);
}

.delete-btn {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.delete-btn:hover {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
}

/* Modals System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--card-bg);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  display: flex;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary-rose);
  color: #ffffff !important;
  border: 2px solid #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.modal-media-col {
  flex: 1.4;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 250px;
}

.modal-media-col img, .modal-media-col video {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.modal-info-col {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Mobile Sticky Bottom Navigation Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mobile-nav-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-nav-btn.active {
  color: var(--primary-rose);
}

.mobile-cam-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-rose), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top: -24px;
  box-shadow: 0 4px 14px rgba(139, 58, 68, 0.4);
  border: 3px solid #fff;
}

footer {
  background: #1E1A1B;
  color: #D6C7C8;
  padding: 36px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
}

/* ==========================================================================
   CROSS-DEVICE MEDIA QUERIES (Phone vs Desktop/Tablet)
   ========================================================================== */

/* Mobile Phones (Screen Width <= 768px) */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .container {
    padding: 0 16px;
  }

  .navbar {
    padding: 10px 0;
  }

  .brand-text h1 {
    font-size: 15px;
  }

  .brand-text p {
    font-size: 10px;
  }

  .stats-counter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-num {
    font-size: 18px;
  }

  .stat-lbl {
    font-size: 10px;
  }

  .bottom-showcase-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* Clean 2-column mobile gallery grid */
    gap: 10px;
  }

  .card-media {
    height: 160px;
  }

  .modal-container {
    flex-direction: column;
    max-height: 94vh;
  }
}
