/* ==========================================================================
   WINNER VERIFICATION LANDING PAGE STYLES
   Mobile-first, modern, responsive design
   ========================================================================== */

:root {
  --primary-green: #22c55e;
  --primary-green-dark: #16a34a;
  --primary-green-hover: #15803d;
  --primary-green-light: #ecfdf5;
  --green-border: #a7f3d0;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-page: #eef2f6;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --star-gold: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-green: 0 8px 20px -4px rgba(22, 163, 74, 0.45);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 600px) {
  body {
    padding: 24px 16px;
  }
}

/* App Wrapper & Centered Card */
.app-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.card-container {
  background: var(--bg-card);
  width: 100%;
  min-height: 100vh;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .card-container {
    min-height: auto;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 24px;
  }
}

/* Header Hero Image */
.header-hero {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #1e293b;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 440px) {
  .header-hero {
    height: 280px;
  }
}

/* Shrink hero image when step 2 is visible (balanced height) */
.header-hero.step2-active,
body.step2-active .header-hero {
  height: 125px !important;
  max-height: 125px !important;
  min-height: 125px !important;
}

.header-hero.step2-active .verified-badge,
body.step2-active .verified-badge {
  top: 10px !important;
  left: 12px !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  gap: 6px !important;
}

.header-hero.step2-active .trophy-icon,
body.step2-active .trophy-icon {
  width: 13px !important;
  height: 13px !important;
}

@media (min-width: 440px) {
  .header-hero.step2-active,
  body.step2-active .header-hero {
    height: 140px !important;
    max-height: 140px !important;
    min-height: 140px !important;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.card-container:hover .hero-image {
  transform: scale(1.02);
}

/* Verified Winner Pill Badge */
.verified-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10;
  animation: pulse-glow 2.5s infinite;
}

.trophy-icon {
  width: 16px;
  height: 16px;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.5);
  }
  50% {
    box-shadow: 0 4px 22px rgba(34, 197, 94, 0.8);
  }
}

/* Steps System */
.step-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  flex: 1;
}

.step-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-content {
  padding: 24px 20px 24px;
}

@media (min-width: 440px) {
  .step-content {
    padding: 30px 26px 28px;
  }
}

/* Typography & Titles */
.congrats-header {
  text-align: center;
  margin-bottom: 24px;
}

.main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

@media (min-width: 440px) {
  .main-title {
    font-size: 29px;
  }
}

.highlight-green {
  color: var(--primary-green-dark);
  font-weight: 800;
}

.subtitle {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 14px;
  padding: 0 8px;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.badge-pill {
  background: var(--primary-green-light);
  border: 1px solid var(--green-border);
  color: #047857;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.badge-pill:hover {
  transform: translateY(-1px);
}

.badge-icon {
  font-size: 13px;
}

/* CTA Button & Gentle Motion Animation */
.cta-container {
  width: 100%;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Gentle subtle motion for NEXT STEP */
.btn-gentle-motion {
  animation: gentle-motion 2.4s ease-in-out infinite;
}

@keyframes gentle-motion {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 20px -4px rgba(22, 163, 74, 0.45);
  }
  50% {
    transform: translateY(-3px) scale(1.018);
    box-shadow: 0 12px 24px -2px rgba(22, 163, 74, 0.68);
  }
}

.btn-primary:hover {
  animation-play-state: paused;
  background: linear-gradient(180deg, #2ae06c 0%, #15803d 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 26px -2px rgba(22, 163, 74, 0.7);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow-icon {
  transform: translateX(4px);
}

/* ================= STEP 2: INSTRUCTIONS & OFFERS ================= */

#step2 .step-content {
  padding: 12px 14px 18px;
}

.instructions-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 16px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.instructions-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.instructions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(34, 197, 94, 0.4);
  margin-top: 1px;
}

.step-text {
  font-size: 14.5px;
  line-height: 1.45;
  color: #0f172a;
  font-weight: 600;
}

/* Offers Feed List */
.offers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual Offer Card */
.offer-card {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.offer-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.12);
}

.offer-icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.offer-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  unicode-bidi: plaintext;
}

.offer-subtitle {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
}

.offer-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.btn-complete {
  background: var(--primary-green);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.offer-card:hover .btn-complete {
  background: var(--primary-green-dark);
}

.offer-stars {
  color: var(--star-gold);
  font-size: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

/* Skeleton Loading */
.offer-skeleton {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.skeleton-img {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 14px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-line.title {
  width: 80%;
  height: 14px;
}

.skeleton-line.sub {
  width: 50%;
  height: 10px;
}

.skeleton-line.btn {
  width: 70px;
  height: 22px;
  margin-top: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Security Note */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
}

/* ================= SITE FOOTER ================= */
.site-footer {
  padding: 24px 20px 28px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.copyright-text {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-link {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-green-dark);
}

.footer-link.contact-highlight {
  font-weight: 500;
  color: #64748b;
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
}

/* ================= MODAL DIALOG ================= */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modal-pop 0.25s ease-out;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

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

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.modal-body h4 {
  color: var(--text-dark);
  font-size: 15px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.modal-body p {
  margin-bottom: 10px;
}
