/* =================================================================
   @emilylior - Offizielles Kleidung Adventskalender Gewinnspiel
   High-Converting Modern Glamour Design System (Wine Red, Rose & Gold Glow)
   ================================================================= */

:root {
  --bg-page: #fff1f2;
  --bg-card: #ffffff;
  --text-main: #18181b;
  --text-muted: #52525b;
  --text-dim: #a1a1aa;

  --primary-color: #e11d48;
  --primary-hover: #be123c;
  --primary-dark: #881337;
  --primary-pink: #f43f5e;
  --primary-fuchsia: #b91c1c;

  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-light: #fff1f4;
  --accent-border: #fecdd3;
  --accent-soft: #ffe4e6;

  --accent-blue: #0095f6;
  --accent-green: #10b981;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 20px 50px rgba(225, 29, 72, 0.09), 0 4px 20px rgba(185, 28, 28, 0.05);
  --shadow-btn: 0 10px 25px rgba(225, 29, 72, 0.38);
  --border-radius-card: 28px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(180deg, #fff1f2 0%, #fff7f8 50%, #fdf2f4 100%);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===================================================
   Top Sticky Announcement Bar
   =================================================== */
.top-announcement {
  background: #1f040b;
  color: #ffe4e6;
  font-size: 0.85rem;
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(31, 4, 11, 0.35);
  border-bottom: 1px solid rgba(225, 29, 72, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.announcement-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  text-align: center;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: #f43f5e;
  border-radius: 50%;
  box-shadow: 0 0 10px #f43f5e;
  animation: pulseLive 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.highlight-slot {
  color: #fb7185;
  font-weight: 800;
  transition: transform 0.3s ease;
}

.pulse-anim {
  animation: numPulse 0.6s ease;
}

@keyframes numPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); color: #f59e0b; }
  100% { transform: scale(1); }
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 4px;
  border-radius: 20px;
  border: 1px solid rgba(225, 29, 72, 0.35);
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #ffe4e6;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.75;
}

.lang-btn:hover {
  opacity: 1;
  color: #ffffff;
}

.lang-btn.active {
  background: #e11d48;
  color: #ffffff;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.5);
}

@media (max-width: 580px) {
  .top-announcement {
    flex-direction: column;
    padding: 8px 10px;
    gap: 6px;
  }
  .announcement-content {
    font-size: 0.8rem;
  }
}

/* ===================================================
   Page Wrapper & Main Container
   =================================================== */
.page-wrapper {
  max-width: 620px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}

.main-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.2rem 1.8rem;
  text-align: center;
  border: 1px solid rgba(225, 29, 72, 0.16);
}

/* Collab Tag Header */
.collab-header {
  margin-bottom: 1.4rem;
}

.collab-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.1) 0%, rgba(245, 158, 11, 0.12) 100%);
  color: #be123c;
  border: 1px solid rgba(225, 29, 72, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 30px;
  text-transform: uppercase;
}

/* ===================================================
   Profile Header
   =================================================== */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.6rem;
}

.avatar-wrapper {
  position: relative;
  width: 125px;
  height: 125px;
  margin-bottom: 1.1rem;
}

.avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #f59e0b 100%);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.story-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(225, 29, 72, 0.4);
  animation: rotateRing 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.handle-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #18181b;
}

.verified-badge {
  width: 22px;
  height: 22px;
}

.giveaway-title {
  font-size: 1.16rem;
  font-weight: 700;
  color: #e11d48;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===================================================
   Glowing CTA Buttons
   =================================================== */
.cta-wrapper {
  margin: 1.2rem 0 2.2rem;
}

.claim-button {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  border-radius: 18px;
  font-size: 1.12rem;
  font-weight: 800;
  font-family: var(--font-family);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.claim-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

.claim-button:hover::before {
  left: 100%;
}

.claim-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.48);
}

.claim-button:active {
  transform: translateY(1px);
}

.pulse-btn {
  animation: pulseButton 2.2s infinite;
}

@keyframes pulseButton {
  0% { transform: scale(1); box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35); }
  50% { transform: scale(1.02); box-shadow: 0 14px 32px rgba(225, 29, 72, 0.52); }
  100% { transform: scale(1); box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35); }
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================
   3-Step Process Flow
   =================================================== */
.steps-flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  background: #fff8f9;
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 1.2rem 1rem;
  margin-bottom: 2rem;
}

.step-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-num-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

.step-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--accent-border);
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.08);
}

.step-arrow {
  margin-top: 32px;
  opacity: 0.6;
}

.step-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #18181b;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ===================================================
   Showcase Image Section
   =================================================== */
.showcase-section {
  margin-bottom: 2rem;
}

.showcase-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(225, 29, 72, 0.16);
  border: 2px solid var(--accent-border);
  background: #000;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-img-wrapper:hover .showcase-img {
  transform: scale(1.02);
}

.showcase-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* ===================================================
   What's Inside / Basket Highlights
   =================================================== */
.basket-highlights {
  background: #fff8f9;
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 1.4rem 1.2rem;
  margin-bottom: 1.8rem;
  text-align: left;
}

.highlights-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #18181b;
  margin-bottom: 1rem;
  text-align: center;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(225, 29, 72, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  color: #27272a;
}

.highlight-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ===================================================
   Trust Badges & Disclaimer
   =================================================== */
.trust-footer {
  border-top: 1px solid rgba(225, 29, 72, 0.14);
  padding-top: 1.4rem;
  margin-top: 1rem;
}

.trust-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #52525b;
}

.trust-icon {
  font-size: 1rem;
}

.disclaimer-text {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto;
}

/* ===================================================
   iOS & TikTok In-App Browser Popup
   =================================================== */
.ios-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.ios-popup-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.ios-popup-content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  z-index: 2;
  animation: popUpAnim 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popUpAnim {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ios-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f4f4f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  color: #71717a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ios-popup-close:hover {
  background: #e4e4e7;
  color: #18181b;
}

.ios-gif-container {
  margin: 0.5rem auto 1.2rem;
  max-width: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.ios-instruction-gif {
  width: 100%;
  height: auto;
  display: block;
}

.ios-popup-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #18181b;
  margin-bottom: 8px;
}

.ios-popup-desc {
  font-size: 0.88rem;
  color: #52525b;
  line-height: 1.5;
}

/* ===================================================
   Live Winner Notification Toast
   =================================================== */
.winner-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #ffffff;
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 998;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 350px;
}

.winner-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-img-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #e11d48;
}

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

.toast-text-box {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}

.toast-text-box strong {
  font-size: 0.82rem;
  color: #18181b;
}

.toast-text-box span {
  font-size: 0.74rem;
  color: #e11d48;
  font-weight: 600;
}

.toast-text-box small {
  font-size: 0.68rem;
  color: #a1a1aa;
}

/* ===================================================
   Responsive Mobile Adjustments
   =================================================== */
@media (max-width: 480px) {
  .page-wrapper {
    margin: 0.6rem auto 2.2rem;
    padding: 0 0.5rem;
  }

  .main-card {
    padding: 1.4rem 0.85rem;
    border-radius: 20px;
  }

  .handle-name {
    font-size: 1.45rem;
  }

  .giveaway-title {
    font-size: 1rem;
  }

  .claim-button {
    font-size: 1.02rem;
    padding: 13px 16px;
    gap: 8px;
  }

  .claim-button .btn-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Steps Flow Mobile */
  .steps-flow-container {
    gap: 4px;
    padding: 0.8rem 0.4rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  .step-num-badge {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    margin-bottom: 4px;
  }

  .step-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin-bottom: 6px;
  }

  .step-icon-box svg {
    width: 20px;
    height: 20px;
  }

  .step-arrow {
    margin-top: 24px;
    width: 10px;
    opacity: 0.55;
  }

  .step-arrow svg {
    width: 12px;
    height: 12px;
  }

  .step-title {
    font-size: 0.78rem;
    line-height: 1.2;
    margin-bottom: 3px;
    font-weight: 700;
  }

  .step-desc {
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .winner-toast {
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    bottom: 16px;
  }
}

@media (max-width: 360px) {
  .main-card {
    padding: 1.2rem 0.5rem;
  }

  .step-arrow {
    display: none;
  }

  .step-icon-box {
    width: 34px;
    height: 34px;
  }

  .step-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .step-title {
    font-size: 0.72rem;
  }

  .step-desc {
    font-size: 0.62rem;
  }
}
