:root {
  --bg-color: #050912;
  --bg-gradient-start: #050912;
  --bg-gradient-end: #050912;
  --text-color: #e2e8f0;
  --text-muted: #8aa3c6;
  --primary: #eca92c; /* Gold brand color */
  --primary-hover: #ffc252;
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.06);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Background glow decorations */
.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 169, 44, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
}
.glow-1 { top: -10%; left: -10%; }
.glow-2 { bottom: -10%; right: -10%; }

/* Main Container */
.container {
  max-width: 800px;
  width: 100%;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Logo & Branding */
.logo-container {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.logo-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #1b365d 0%, #0d203d 100%);
  border: 1.5px solid rgba(236, 169, 44, 0.4);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(5, 9, 18, 0.6);
}
.logo-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.logo-text {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Text */
h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}
p.tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* App Badges */
.badge-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.badge-link {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 8px;
  overflow: hidden;
}
.badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(236, 169, 44, 0.15);
  filter: brightness(1.1);
}
.store-badge {
  height: 64px;
  width: auto;
  display: block;
}

/* Redirection Modal for Shared Posts */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 9, 18, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal {
  background: linear-gradient(135deg, #0e1624 0%, #17243a 100%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}
.modal-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.modal-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #d8961b 100%);
  color: var(--bg-color);
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(236, 169, 44, 0.2);
  text-decoration: none;
  text-align: center;
  margin-bottom: 12px;
}
.modal-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #eca92c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 169, 44, 0.3);
}
.modal-btn-secondary {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.modal-btn-secondary:hover {
  border-color: var(--primary);
  color: #ffffff;
}

footer {
  position: relative;
  margin-top: 48px;
  margin-bottom: 24px;
  font-size: 12px;
  color: rgba(138, 163, 198, 0.4);
}

/* Mock Card styling (Matching the actual mobile app light theme) */
.mock-card {
  width: 100%;
  max-width: 300px; /* Reduced by 1/3 from 440px */
  min-height: 340px; /* Reduced by 1/3 from 480px */
  background: #ffffff; /* White card background from the app */
  border: 1px solid #e8e8e8; /* Soft grey borders from app cards */
  border-radius: 12px; /* Adjusted radius */
  padding: 12px; /* Adjusted padding */
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* Soft shadows */
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.mock-card:hover {
  border-color: rgba(38, 80, 95, 0.3); /* Teal border hover from app */
  box-shadow: 0 12px 32px rgba(38, 80, 95, 0.12);
}

.mock-post-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.mock-avatar {
  width: 28px; /* Adjusted size */
  height: 28px; /* Adjusted size */
  border-radius: 50%;
  background: #26505f; /* App primary teal */
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  padding: 3px;
  overflow: hidden;
}
.mock-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.mock-user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mock-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-display-name {
  font-size: 11px; /* Scaled text */
  font-weight: 700;
  color: #212121; /* Dark text for app look */
}
.mock-username {
  font-size: 9px; /* Scaled text */
  color: #757575; /* App grey text */
}
.mock-time {
  font-size: 9px; /* Scaled text */
  color: #9e9e9e;
}

.mock-post-body {
  margin-bottom: 8px;
}
.mock-post-text {
  font-size: 11px; /* Scaled text */
  line-height: 1.45;
  color: #212121;
  margin-bottom: 6px;
}
.mock-quote-box {
  border-left: 2px solid #eca92c; /* App gold scale down */
  padding-left: 8px;
  margin: 10px 0;
}
.mock-quote {
  font-size: 11px; /* Scaled text */
  line-height: 1.45;
  color: #212121;
  font-style: italic;
  margin-bottom: 4px;
}
.mock-tags {
  color: #26505f; /* App teal */
  font-size: 10px; /* Scaled text */
  font-weight: 600;
  margin-bottom: 8px;
  word-spacing: 2px;
}
.mock-scripture-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(236, 169, 44, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}
.mock-book {
  font-size: 11px;
  font-weight: 700;
  color: #eca92c;
}
.mock-bible-version {
  font-size: 9px;
  background: rgba(236, 169, 44, 0.2);
  color: #eca92c;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
}

.mock-post-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid #f0f0f0;
  padding-top: 8px;
}
.mock-action {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #757575;
  font-size: 10px;
  cursor: pointer;
}
.mock-action svg {
  width: 12px !important;
  height: 12px !important;
  transition: transform 0.2s ease;
}
.mock-action:hover svg {
  transform: scale(1.15);
}

/* Carousel Container & Structure */
.carousel-container {
  position: relative;
  max-width: 720px; /* Expanded to fit two 300px cards plus gap and nav buttons */
  width: 100%;
  margin: 48px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.carousel-viewport {
  width: 620px; /* Two 300px cards + 20px gap */
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.carousel-slide {
  flex: 0 0 50%; /* Show 2 cards at a time on desktop */
  width: 50%;
  box-sizing: border-box;
  padding: 0 10px; /* 20px gap between cards */
  will-change: transform;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Nav Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-nav-btn svg {
  width: 16px;
  height: 16px;
}
.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(236, 169, 44, 0.2);
}
.prev-btn {
  left: -44px;
}
.next-btn {
  right: -44px;
}

/* Indicator Dots */
.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
  z-index: 5;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  width: 16px;
  border-radius: 3px;
  background: var(--primary);
}

/* Card Section Tag styling */
.mock-card-section-tag {
  font-size: 9px; /* Scaled down */
  font-weight: 800;
  color: #26505f; /* Teal accent from the app */
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 6px;
  margin-bottom: 10px;
  width: 100%;
  display: block;
}

/* Bible Mockup Styles */
.mock-bible-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}
.mock-ref-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-bible-reference {
  font-size: 14px; /* Scaled down */
  font-weight: 800;
  color: #008080; /* Teal from the app */
}
.mock-bible-complete-icon {
  display: flex;
  align-items: center;
}
.mock-bible-complete-icon svg {
  width: 14px;
  height: 14px;
}
.mock-bible-version-btn {
  font-size: 8px; /* Scaled down */
  font-weight: 800;
  color: #26505f;
  background: rgba(38, 80, 95, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(38, 80, 95, 0.15);
}
.mock-bible-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  margin-bottom: 10px;
}
.mock-bible-verse-item {
  display: flex;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
  position: relative;
}
.mock-bible-verse-item.highlighted {
  background: #fff9c4; /* Light yellow highlight from bible_reading.dart */
}
.verse-num {
  font-size: 12px; /* Scaled down */
  font-weight: 700;
  color: #008080; /* Teal from bible_reading.dart */
  margin-right: 6px;
  min-width: 10px;
}
.verse-text {
  font-size: 12px; /* Scaled down */
  color: #212121;
  line-height: 1.4;
  flex: 1;
}
.verse-bookmark {
  margin-left: 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 0.2;
}
.verse-bookmark svg {
  width: 14px;
  height: 14px;
}
.verse-bookmark.active {
  opacity: 1;
}
.mock-bible-actions {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #f0f0f0;
  padding-top: 8px;
}
.mock-bible-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #757575;
  cursor: pointer;
}

/* Challenges Mockup Styles */
.mock-challenges-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}
.mock-challenges-sub {
  font-size: 12px; /* Scaled down */
  font-weight: 700;
  color: #212121;
}
.mock-challenges-points {
  font-size: 9px; /* Scaled down */
  font-weight: 800;
  color: #eca92c; /* Gold points from the app */
  background: rgba(236, 169, 44, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
}
.mock-challenges-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.mock-challenge-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.mock-challenge-item.locked {
  opacity: 0.5;
}
.challenge-icon-box {
  width: 24px; /* Reduced by 1/3 */
  height: 24px;
  border-radius: 6px;
  background: #fff3e0; /* Gold light */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.challenge-icon-box svg {
  width: 14px;
  height: 14px;
}
.challenge-icon-box.completed {
  background: #e8f5e9; /* Green light */
}
.challenge-icon-box.locked {
  background: #f5f5f5; /* Grey light */
}
.challenge-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.challenge-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.challenge-title {
  font-size: 10px; /* Scaled down */
  font-weight: 700;
  color: #212121;
}
.challenge-desc {
  font-size: 9px; /* Scaled down */
  color: #757575;
  line-height: 1.2;
}
.challenge-status-badge {
  font-size: 8px; /* Scaled down */
  font-weight: 800;
  color: #4caf50;
}
.challenge-status-badge.locked {
  color: #757575;
}
.challenge-progress-text {
  font-size: 8px;
  color: #757575;
}
.challenge-progress-bar {
  width: 100%;
  height: 3px;
  background: #e0e0e0;
  border-radius: 1.5px;
  overflow: hidden;
  margin-top: 4px;
}
.progress-fill {
  height: 100%;
  background: #26505f; /* App primary teal */
  border-radius: 1.5px;
}

/* Responsiveness overrides */
@media (max-width: 768px) {
  h1 {
    font-size: 30px;
  }
  .carousel-container {
    max-width: 100%;
    margin-top: 36px;
  }
  .carousel-viewport {
    width: 100%;
    max-width: 300px; /* Reset viewport to single card width on mobile/tablet */
  }
  .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0; /* Reset gap on mobile */
    will-change: transform;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .mock-card {
    padding: 12px;
    min-height: 340px;
  }
  .carousel-nav-btn {
    display: none; /* Hide side arrows on mobile/tablet, use dots/swipes */
  }
}

