/**
 * Khatutik Platform — Hero Section: «Discovery Island» (Островок открытий)
 * Modular Component Stylesheet
 */

/* ==========================================================================
   Discovery Hero Section Container & Backdrop
   ========================================================================== */
.discovery-hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem 4.5rem 2rem;
  overflow: hidden;
  background-color: var(--color-bg);
}

/* Multi-layer Rolling Hills SVG Backdrop */
.hero-hills-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hill-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: block;
}

.hill-far {
  height: 280px;
  opacity: 0.7;
}

.hill-mid {
  height: 220px;
  opacity: 0.85;
}

.hill-front {
  height: 140px;
}

/* Ambient Floating Particles in Breeze */
.ambient-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-particles .particle {
  position: absolute;
  font-size: 1.15rem;
  opacity: 0.45;
  user-select: none;
  animation: floatParticle 8s ease-in-out infinite;
}

.particle.p-1 { left: 8%; top: 18%; animation-duration: 7s; }
.particle.p-2 { left: 24%; top: 62%; animation-duration: 9s; animation-delay: 1s; font-size: 0.95rem; }
.particle.p-3 { left: 45%; top: 12%; animation-duration: 8.5s; animation-delay: 2s; }
.particle.p-4 { right: 38%; top: 22%; animation-duration: 10s; animation-delay: 0.5s; font-size: 1.1rem; }
.particle.p-5 { right: 18%; top: 14%; animation-duration: 7.5s; animation-delay: 2.5s; }
.particle.p-6 { right: 8%; top: 58%; animation-duration: 8s; animation-delay: 1.5s; font-size: 0.9rem; }
.particle.p-7 { left: 52%; top: 78%; animation-duration: 9.5s; animation-delay: 3s; }

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-16px) rotate(15deg);
    opacity: 0.75;
  }
}

/* Main Two-Column Container */
.discovery-hero-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 3.5rem;
}

/* ==========================================================================
   LEFT SIDE: Friendly Invitation to Play & Trust
   ========================================================================== */
.hero-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Key Advantage Sticker Bubbles */
.sticker-bubble-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.sticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(44, 62, 80, 0.06);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
}

.sticker-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.1);
}

.sticker-peach {
  background: #FFF0EB;
  color: #9A3412;
  border: 1.5px solid rgba(246, 201, 184, 0.85);
}

.sticker-mint {
  background: #EAF7EE;
  color: #166534;
  border: 1.5px solid rgba(191, 227, 208, 0.85);
}

.sticker-icon {
  font-size: 1.05rem;
  line-height: 1;
}

/* Main Display Title */
.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-brand-title); /* Deep Ocean Blue #1B4965 */
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
}

.highlight-discovery {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 50%, #C86D51 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

/* Warm Friendly Description */
.hero-main-desc {
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 500;
  max-width: 620px;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Interactive CTA Buttons Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Pillow Button: Warm Peach Glow with Tactile Puffiness */
.btn-pillow-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #F6C9B8 0%, #EEB39E 100%);
  color: #7C2D12;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1.1rem 2.4rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 12px 28px -4px rgba(246, 201, 184, 0.75), 
    0 4px 10px rgba(124, 45, 18, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(200, 109, 81, 0.35);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  user-select: none;
}

.btn-pillow-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 18px 36px -4px rgba(246, 201, 184, 0.95), 
    0 6px 14px rgba(124, 45, 18, 0.15),
    inset 0 3px 6px rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px rgba(200, 109, 81, 0.4);
}

.btn-pillow-primary:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 6px 16px rgba(246, 201, 184, 0.6);
}

.pillow-arrow {
  transition: transform 0.25s ease;
}

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

/* Subtle Animated Shine Across Pillow Button */
.pillow-sparkle-shine {
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  animation: pillowShine 4.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pillowShine {
  0%, 65% { left: -70%; }
  100% { left: 140%; }
}

/* Circular Video Play Button with Ripple Waves */
.btn-ripple-video {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.btn-ripple-video:hover {
  transform: translateY(-2px);
}

.play-btn-core {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #BFE3D0; /* Mint color */
  color: #164E63;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(191, 227, 208, 0.7);
  border: 2px solid #FFFFFF;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.btn-ripple-video:hover .play-btn-core {
  transform: scale(1.1);
  background: #A7D7BC;
}

.play-btn-core svg {
  margin-left: 2px;
}

.ripple-wave {
  position: absolute;
  top: 50%;
  left: 31px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(191, 227, 208, 0.6);
  pointer-events: none;
  z-index: 1;
  animation: rippleSpread 2.5s infinite cubic-bezier(0.1, 0.2, 0.3, 1);
}

.ripple-2 {
  animation-delay: 1.25s;
}

@keyframes rippleSpread {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

.video-btn-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand-title);
  border-bottom: 2px dashed rgba(27, 73, 101, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-ripple-video:hover .video-btn-text {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Social Trust & Rating Cluster */
.hero-trust-cluster {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.4rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.05);
  max-width: 480px;
}

.trust-avatars {
  display: flex;
  align-items: center;
}

.avatar-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
  user-select: none;
}

.avatar-bubble:first-child {
  margin-left: 0;
}

.avatar-bubble:hover {
  transform: translateY(-4px) scale(1.15);
  z-index: 5;
}

.av-fox { background: #FDE8DE; }
.av-bear { background: #FEF3C7; }
.av-bunny { background: #E0F2FE; }

.avatar-badge-plus {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
  margin-left: -10px;
  background: var(--color-accent);
  color: #7C2D12;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.trust-rating-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.star-rating-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.star-balloon {
  font-size: 1rem;
  animation: starBob 2s ease-in-out infinite;
}

.star-balloon:nth-child(2) { animation-delay: 0.2s; }
.star-balloon:nth-child(3) { animation-delay: 0.4s; }
.star-balloon:nth-child(4) { animation-delay: 0.6s; }
.star-balloon:nth-child(5) { animation-delay: 0.8s; }

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

.rating-number {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: #1B4965;
  margin-left: 0.35rem;
}

.rating-subtext {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 600;
}

/* ==========================================================================
   RIGHT SIDE: 3D Visual Center (Mascot & Discovery Island)
   ========================================================================== */
.hero-right-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mascot-island-pedestal {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing Ambient Halo behind Mascot */
.mascot-halo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(184, 221, 242, 0.65) 0%, rgba(191, 227, 208, 0.45) 45%, transparent 70%);
  filter: blur(28px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Central Mascot Image Frame */
.mascot-character-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 
    0 24px 60px -12px rgba(27, 73, 101, 0.18),
    0 10px 25px -5px rgba(246, 201, 184, 0.3);
  border: 4px solid #FFFFFF;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #FFF5E6;
}

.mascot-character-wrapper:hover {
  transform: translateY(-6px) scale(1.015);
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating Soap Bubbles Layer */
.floating-bubbles-layer {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 4;
}

.soap-bubble {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85) 0%, rgba(184, 221, 242, 0.35) 40%, rgba(246, 201, 184, 0.3) 70%, rgba(191, 227, 208, 0.4) 100%);
  box-shadow: 
    inset 0 0 10px rgba(255, 255, 255, 0.8),
    inset -3px -3px 8px rgba(184, 221, 242, 0.5),
    0 4px 14px rgba(184, 221, 242, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.65);
  animation: floatBubble var(--dur) ease-in-out infinite var(--delay);
}

.soap-bubble.b-1 { top: var(--top); left: var(--left); }
.soap-bubble.b-2 { top: var(--top); right: var(--right); }
.soap-bubble.b-3 { top: var(--top); left: var(--left); }
.soap-bubble.b-4 { top: var(--top); right: var(--right); }
.soap-bubble.b-5 { top: var(--top); right: var(--right); }

.bubble-shine {
  position: absolute;
  top: 18%;
  left: 22%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0.85;
}

@keyframes floatBubble {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.08) rotate(6deg);
  }
}

/* Floating Origami Paper Airplane with Star Trail */
.floating-plane-wrapper {
  position: absolute;
  top: -12px;
  right: -15px;
  z-index: 5;
  pointer-events: none;
  animation: planeFloat 6s ease-in-out infinite;
}

.origami-plane-svg {
  width: 56px;
  height: 42px;
  filter: drop-shadow(0 6px 12px rgba(200, 109, 81, 0.25));
}

.plane-star-trail {
  position: absolute;
  top: 24px;
  left: -28px;
  display: flex;
  gap: 0.35rem;
  color: #F59E0B;
  font-size: 0.85rem;
  opacity: 0.8;
  animation: starPulse 2.5s infinite ease-in-out;
}

@keyframes planeFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-14px, -12px) rotate(-6deg);
  }
}

@keyframes starPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Interactive Floating Micro-Cards (Hover 3D Tilt) */
.interactive-micro-card {
  position: absolute;
  z-index: 6;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.2s ease;
  user-select: none;
}

.micro-card-top-left {
  top: 12%;
  left: -35px;
}

.micro-card-bottom-right {
  bottom: 8%;
  right: -30px;
}

.card-glass-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 
    0 16px 32px -6px rgba(27, 73, 101, 0.12),
    0 6px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.interactive-micro-card:hover .card-glass-pill {
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px -6px rgba(246, 201, 184, 0.5);
}

.card-icon-tag {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-icon-tag.bg-mint {
  background: #EAF7EE;
}

.card-icon-tag.bg-peach {
  background: #FFF0EB;
}

.card-tag-content {
  display: flex;
  flex-direction: column;
}

.card-tag-content strong {
  font-size: 0.95rem;
  color: var(--color-brand-title);
  line-height: 1.2;
}

.card-tag-content small {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 600;
}

.card-floating-badge {
  font-size: 1rem;
  margin-left: 0.2rem;
  animation: badgeWiggle 3s infinite ease-in-out;
}

@keyframes badgeWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(12deg); }
}

/* ==========================================================================
   Video Tour Modal
   ========================================================================== */
.hero-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-modal-card {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border-radius: 28px;
  max-width: 720px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  border: 3px solid #FFF5E6;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-video-modal.active .video-modal-card {
  transform: translateY(0) scale(1);
}

.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1.5px solid var(--color-border);
  background: #FFF5E6;
}

.video-modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-brand-title);
}

.btn-close-video {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-close-video:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.video-modal-body {
  padding: 1.75rem;
}

.video-placeholder-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: linear-gradient(135deg, #1B4965 0%, #0F2D40 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.video-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(246, 201, 184, 0.35) 0%, transparent 70%);
  border-radius: 50%;
}

.video-play-demo-cta {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
}

.demo-play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-button);
  color: #164E63;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(191, 227, 208, 0.6);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-play-circle:hover {
  transform: scale(1.12);
}

.demo-play-circle svg {
  margin-left: 4px;
}

.video-play-demo-cta h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.video-play-demo-cta p {
  font-size: 0.95rem;
  color: #E2E8F0;
  max-width: 420px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1200px) {
  .discovery-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-left-content {
    align-items: center;
    text-align: center;
  }

  .sticker-bubble-group {
    justify-content: center;
  }

  .hero-main-desc {
    max-width: 700px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-cluster {
    margin: 0 auto;
  }

  .micro-card-top-left {
    left: -10px;
  }

  .micro-card-bottom-right {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .discovery-hero-section {
    padding: 1.5rem 1.25rem 3.5rem 1.25rem;
  }

  .hero-main-title {
    font-size: 2.3rem;
  }

  .hero-main-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .btn-pillow-primary {
    font-size: 1.05rem;
    padding: 0.95rem 1.8rem;
    width: 100%;
    justify-content: center;
  }

  .btn-ripple-video {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-cluster {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 1rem;
  }

  .mascot-island-pedestal {
    max-width: 360px;
  }

  .micro-card-top-left {
    top: 5%;
    left: 0;
    transform: scale(0.85);
  }

  .micro-card-bottom-right {
    bottom: 2%;
    right: 0;
    transform: scale(0.85);
  }

  .floating-plane-wrapper {
    top: -5px;
    right: 0;
    transform: scale(0.8);
  }
}
