/* ============================================
   PREMIUM WEDDING MOMENTS & PHOTO QUEST STYLES
   ============================================ */

/* Hero Banner */
.moments-hero {
  position: relative;
  padding: 7rem 1.25rem 4rem;
  background: linear-gradient(135deg, #0b222e 0%, #103445 40%, #2C659C 80%, #4a7a6d 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.moments-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(215, 233, 245, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.moments-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.moments-hero .script-subtitle {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #D7E9F5;
  display: block;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.moments-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 1rem;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto 2.2rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Guest Banner Card */
.guest-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 1.6rem;
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.guest-banner-card:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.guest-info {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-align: left;
}

.guest-avatar {
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.guest-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #D7E9F5;
  font-weight: 600;
}

.guest-name-text {
  font-size: 1.25rem;
  color: var(--white);
  margin: 0;
  font-family: var(--font-heading);
}

.btn-text {
  background: none;
  border: none;
  color: #D7E9F5;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

/* Main Layout */
.moments-main {
  padding: 3.5rem 1.25rem 7rem;
}

.card-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(16, 52, 69, 0.08);
  margin-bottom: 2.8rem;
}

/* Progress & Badge Section */
.progress-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(215, 233, 245, 0.7) 100%);
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.progress-header h2 {
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(44, 101, 156, 0.3);
  font-size: 1.05rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-pill:hover {
  transform: scale(1.04);
}

.progress-bar-container {
  height: 16px;
  background: #d0e2ef;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.9rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a7a6d 0%, #2C659C 60%, #103445 100%);
  border-radius: var(--radius-full);
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Phase Tabs */
.phase-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.phase-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.phase-tab:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.phase-tab:active {
  transform: scale(0.96);
}

.phase-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(44, 101, 156, 0.3);
}

/* Quest Grid */
.quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3.2rem;
}

.quest-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.quest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(16, 52, 69, 0.12);
  border-color: var(--primary-light);
}

.quest-card.completed {
  border-color: var(--secondary);
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f5 100%);
}

.quest-card.completed::before {
  content: "✓ Completed";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  background: #e2f0ec;
  padding: 3px 10px;
  border-radius: 12px;
}

.quest-header {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 0.9rem;
}

.quest-icon {
  font-size: 2.4rem;
  background: var(--bg);
  padding: 0.65rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quest-title {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.quest-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 1.3rem;
  line-height: 1.45;
}

.quest-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--bg);
}

.quest-points {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.btn-snap-quest {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
}

.btn-snap-quest:active {
  transform: scale(0.95);
}

/* Quick Upload Banner */
.quick-upload-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
  background: linear-gradient(135deg, #103445 0%, #2C659C 60%, #4a7a6d 100%);
  color: var(--white);
}

.quick-upload-banner h3 {
  color: var(--white);
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.quick-upload-banner p {
  color: #D7E9F5;
  margin: 0;
  font-size: 1.02rem;
}

/* Feed Section */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.feed-header h2 {
  margin-bottom: 0.2rem;
}

.feed-header p {
  color: var(--text-light);
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.btn-icon {
  background: var(--white);
  border: 1px solid var(--accent);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
  background: var(--primary-light);
  transform: rotate(30deg);
}

/* Moments Feed Grid */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.8rem;
}

.moment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.06);
}

.moment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(16, 52, 69, 0.12);
}

.moment-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Square ratio */
  background: #eef3f7;
  overflow: hidden;
  cursor: pointer;
}

.moment-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.moment-card:hover .moment-img-wrapper img {
  transform: scale(1.06);
}

.moment-phase-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(16, 52, 69, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.moment-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.moment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.moment-author {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  font-family: var(--font-heading);
}

.moment-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.moment-caption {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.45;
}

.moment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--bg);
}

.like-btn {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.like-btn:hover {
  background: #ffeaea;
  color: #e63946;
}

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

.like-btn.liked {
  color: #e63946;
  background: #fff0f0;
}

.like-btn.liked .heart-icon {
  transform: scale(1.2);
}

/* Floating Camera Upload Button (FAB) */
.floating-camera-btn {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 1.1rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 10px 28px rgba(44, 101, 156, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-camera-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 36px rgba(44, 101, 156, 0.55);
}

.floating-camera-btn:active {
  transform: scale(0.94);
}

.floating-camera-btn .camera-icon {
  font-size: 1.5rem;
}

.floating-camera-btn .camera-label {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* Modals & Mobile Drawers */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 52, 69, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.upload-preview-container {
  width: 100%;
  max-height: 320px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-preview-container img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.upload-submit-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
}

.upload-submit-actions .btn {
  flex: 1;
}

/* Lightbox View */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-backdrop.hidden {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  font-size: 2.8rem;
  color: var(--white);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-content {
  max-width: 950px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-details {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-md);
  color: var(--white);
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Loading & Empty States */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 1rem;
  color: var(--text-light);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.2rem;
}

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

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
  .moments-hero {
    padding: 6rem 1rem 3.5rem;
  }

  .floating-camera-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.95rem 1.4rem;
  }

  .quick-upload-banner {
    flex-direction: column;
    text-align: center;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
    padding: 2rem 1.5rem 2.5rem;
    transform: translateY(0);
  }

  .modal-backdrop.hidden .modal-card {
    transform: translateY(100%);
  }
}

/* Modern Guest Welcome Modal Guidance & Glassmorphism */
.modern-welcome-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(215, 233, 245, 0.85);
  border-radius: 24px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 24px 64px -12px rgba(10, 34, 46, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  position: relative;
  overflow: hidden;
}

.modern-welcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

.modal-brand-header {
  text-align: center;
  margin-bottom: 0.3rem;
}

.script-couple-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--primary);
  display: inline-block;
  line-height: 1;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.8rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.modern-welcome-card .form-group {
  margin-bottom: 1.3rem;
}

.label-with-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.badge-optional {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.modern-input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.1rem;
  font-size: 1rem;
  border: 1.5px solid #d0dbe2;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text-dark);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modern-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 52, 69, 0.12);
  background: #ffffff;
}

.modern-input.code-input {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

.modal-cta-btn {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 8px 24px rgba(16, 52, 69, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 52, 69, 0.32);
}

.modal-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Multi-Photo Upload Batch Grid & Progress */
.upload-dropzone {
  background: var(--bg);
  border: 2px dashed #b0c4de;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  transition: all 0.25s ease;
}

.upload-dropzone.drag-active {
  border-color: var(--primary);
  background: #e8f4fd;
}

.batch-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.25rem;
  margin-bottom: 0.75rem;
}

.batch-preview-item {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: #000;
}

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

.remove-photo-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(198, 40, 40, 0.9);
  color: white;
  border: none;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease;
}

.remove-photo-btn:hover {
  transform: scale(1.15);
  background: #c62828;
}

.preview-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.dropzone-add-more {
  text-align: center;
}

.upload-progress-container {
  margin-bottom: 1rem;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.3s ease;
}

.upload-progress-text {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  display: block;
  text-align: center;
}
