/**
 * Weekly Drops Page Styles
 * Glassmorphism design matching /labs visual language
 */

/* ============================================
   CSS Variables
   ============================================ */
.layout-wdrops {
  --wd-primary: #f59e0b;
  --wd-primary-glow: rgba(245, 158, 11, 0.5);
  --wd-accent: #8b5cf6;
  --wd-grid-color: rgba(245, 158, 11, 0.06);
  --wd-text-muted: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Hero Section
   ============================================ */
.wdrops-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.wdrops-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wdrops-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--wd-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--wd-grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  animation: wdGridPulse 8s ease-in-out infinite;
}

@keyframes wdGridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.wdrops-hero__particles {
  position: absolute;
  inset: 0;
}

.wdrops-hero .particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--wd-primary);
  border-radius: 50%;
  filter: blur(1px);
  animation: wdFloat 15s infinite ease-in-out;
}

.wdrops-hero .particle--1 { left: 15%; top: 25%; animation-delay: 0s; }
.wdrops-hero .particle--2 { left: 75%; top: 20%; animation-delay: -4s; }
.wdrops-hero .particle--3 { left: 45%; top: 65%; animation-delay: -8s; }
.wdrops-hero .particle--4 { left: 85%; top: 70%; animation-delay: -11s; }

@keyframes wdFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(30px, -40px) scale(1.5); opacity: 0.8; }
  50% { transform: translate(-20px, -80px) scale(1); opacity: 0.4; }
  75% { transform: translate(40px, -40px) scale(1.2); opacity: 0.6; }
}

.wdrops-hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--wd-primary-glow) 0%, transparent 70%);
  opacity: 0.15;
}

.wdrops-hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.wdrops-hero__title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wdrops-hero__title--glow {
  background: linear-gradient(135deg, var(--wd-primary), #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px var(--wd-primary-glow));
}

.wdrops-hero__subtitle {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--wd-text-muted);
  line-height: 1.6;
}

/* ============================================
   Sections
   ============================================ */
.wdrops-section {
  padding: 60px 0;
}

.wdrops-section__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.wdrops-section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--wd-primary);
}

.wdrops-section__titles h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

.wdrops-section__titles p {
  color: var(--wd-text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ============================================
   How It Works - Steps
   ============================================ */
.wdrops-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wdrops-step {
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.wdrops-step__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wd-primary), #fbbf24);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wdrops-step__icon {
  font-size: 2rem;
  color: var(--wd-primary);
  opacity: 0.85;
}

.wdrops-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.wdrops-step p {
  font-size: 0.9rem;
  color: var(--wd-text-muted);
  line-height: 1.5;
}

/* ============================================
   Prize Types - Cards
   ============================================ */
.wdrops-prizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.wdrops-prize {
  padding: 28px 20px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wdrops-prize__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(var(--tint-color), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--wd-primary);
}

.wdrops-prize h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.wdrops-prize p {
  font-size: 0.85rem;
  color: var(--wd-text-muted);
  line-height: 1.5;
}

/* ============================================
   Who Qualifies - Tiers
   ============================================ */
.wdrops-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.wdrops-tier {
  padding: 32px 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.wdrops-tier--premium {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.08);
}

.wdrops-tier__badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--wd-text-muted);
}

.wdrops-tier--premium .wdrops-tier__badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--wd-primary);
}

.wdrops-tier h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.wdrops-tier > p {
  font-size: 0.9rem;
  color: var(--wd-text-muted);
  line-height: 1.5;
  max-width: 340px;
}

.wdrops-tier__prizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.wdrops-tier__prizes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.wdrops-tier__prizes span i {
  color: var(--wd-primary);
  font-size: 0.7rem;
}

.wdrops-tier .btn {
  margin-top: 8px;
}

/* ============================================
   Telegram Banner
   ============================================ */
.wdrops-telegram__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 20px;
  border-color: rgba(0, 136, 204, 0.25);
}

.wdrops-telegram__icon {
  font-size: 2.8rem;
  color: #0088cc;
  flex-shrink: 0;
}

.wdrops-telegram__content {
  flex: 1;
}

.wdrops-telegram__content h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.wdrops-telegram__content p {
  color: var(--wd-text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.wdrops-telegram__card .btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0088cc;
  box-shadow: 0 12px 28px rgba(0, 136, 204, 0.3);
}

.wdrops-telegram__card .btn:hover {
  box-shadow: 0 14px 34px rgba(0, 136, 204, 0.4);
  filter: brightness(1.05);
}

/* ============================================
   Final CTA
   ============================================ */
.wdrops-cta {
  padding-bottom: 80px;
}

.wdrops-cta__card {
  padding: 48px 32px;
  border-radius: 24px;
  text-align: center;
}

.wdrops-cta__card h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.wdrops-cta__card > p {
  color: var(--wd-text-muted);
  font-size: 1rem;
  margin-top: 12px;
  max-width: 480px;
  margin-inline: auto;
}

.wdrops-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .wdrops-hero {
    min-height: auto;
    padding: 100px 0 48px;
  }

  .wdrops-hero__title {
    font-size: 2.2rem;
  }

  .wdrops-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wdrops-prizes {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .wdrops-tiers {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wdrops-telegram__card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .wdrops-section {
    padding: 40px 0;
  }

  .wdrops-cta__card {
    padding: 32px 20px;
  }

  .wdrops-cta__card h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .wdrops-hero__title {
    font-size: 1.8rem;
  }

  .wdrops-hero__subtitle {
    font-size: 1rem;
  }

  .wdrops-prizes {
    grid-template-columns: 1fr;
  }

  .wdrops-section__header {
    flex-direction: column;
    gap: 12px;
  }
}
