/**
 * Khatutik Platform — Section: «Live Camera» Parent Portal Preview
 * Modular Component Stylesheet: assets/css/live-camera.css
 */

/* ==========================================================================
   Section Outer Container
   ========================================================================== */
.live-camera-section {
  position: relative;
  width: 100%;
  padding: 2.5rem 1.5rem 3.5rem;
  background-color: var(--color-bg, #FFF5E6);
  overflow: hidden;
}

.live-camera-container {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Large Rounded Main Card (Border-radius: 40px with Blue-to-Cream Gradient)
   ========================================================================== */
.live-camera-card {
  position: relative;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(184, 221, 242, 0.72) 0%, rgba(255, 245, 230, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 16px 40px -12px rgba(184, 221, 242, 0.55),
    0 4px 16px rgba(44, 62, 80, 0.04);
  padding: 3.25rem 3.5rem;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Subtle Decorative Corner Icons (Shield & Heart) */
.corner-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.16;
  color: #1B4965;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.decor-top-left {
  top: 1.75rem;
  left: 1.75rem;
}

.decor-bottom-right {
  bottom: 1.75rem;
  right: 1.75rem;
  color: #D97757;
}

.corner-icon {
  width: 44px;
  height: 44px;
}

.live-camera-card:hover .corner-decor {
  opacity: 0.28;
  transform: scale(1.08);
}

/* ==========================================================================
   Two-Column Grid Layout
   ========================================================================== */
.live-camera-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 3.25rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   LEFT COLUMN: Text Content & Trust Points
   ========================================================================== */
.live-camera-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.live-camera-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(184, 221, 242, 0.8);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1B4965;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(184, 221, 242, 0.25);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDotLive 1.8s infinite;
}

@keyframes pulseDotLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-camera-heading {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1B4965;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.text-accent-peach {
  color: #C86D51;
}

.live-camera-lead {
  font-family: 'Nunito', sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #3F5663;
  margin: 0 0 1.75rem;
}

/* 3 Trust Points with soft bubble markers */
.trust-points-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.trust-point-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.point-bubble {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease;
}

.trust-point-item:hover .point-bubble {
  transform: scale(1.08) rotate(3deg);
}

.point-bubble-sky {
  background-color: #B8DDF2;
  color: #0369A1;
  border: 1px solid rgba(2, 132, 199, 0.15);
}

.point-bubble-mint {
  background-color: #BFE3D0;
  color: #0F766E;
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.point-bubble-peach {
  background-color: #F6C9B8;
  color: #9A3412;
  border: 1px solid rgba(154, 52, 18, 0.15);
}

.point-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.point-title {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1B4965;
}

.point-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  color: #5C6F84;
  line-height: 1.4;
}

/* Call-to-action actions row */
.live-camera-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-parent-login-peach {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #F6C9B8;
  color: #84321A;
  padding: 0.85rem 1.65rem;
  border-radius: 9999px;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px -4px rgba(246, 201, 184, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-parent-login-peach:hover {
  background-color: #EEB39E;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px -4px rgba(238, 179, 158, 0.95);
  color: #5C1D0B;
}

.btn-parent-login-peach:active {
  transform: translateY(0) scale(0.98);
}

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

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

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

.action-subhint {
  font-family: 'Nunito', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #5C6F84;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   RIGHT COLUMN: 3D-Style Smartphone Mockup
   ========================================================================== */
.live-camera-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-stage {
  position: relative;
  perspective: 1100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

/* Soft pastel aura glow behind phone */
.phone-glow-aura {
  position: absolute;
  width: 280px;
  height: 420px;
  background: radial-gradient(circle, rgba(191, 227, 208, 0.6) 0%, rgba(184, 221, 242, 0.35) 60%, transparent 80%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

/* Smartphone Device Container */
.smartphone-device {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 480px;
  border-radius: 38px;
  background: #1E293B;
  padding: 10px;
  box-shadow: 
    0 22px 48px -12px rgba(44, 62, 80, 0.32),
    0 12px 28px -8px rgba(184, 221, 242, 0.6),
    inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  animation: floatPhone 6s ease-in-out infinite;
}

.smartphone-device:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-8px) scale(1.02);
  box-shadow: 
    0 30px 60px -12px rgba(44, 62, 80, 0.38),
    0 16px 36px -6px rgba(184, 221, 242, 0.8),
    inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

@keyframes floatPhone {
  0%, 100% {
    transform: rotateY(-8deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-8px);
  }
}

/* Image placeholder fallback tag */
.phone-frame-placeholder-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  display: none; /* Shows when real image asset is uploaded */
}

/* Inner Screen */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background-color: #0F172A;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Phone Top Bar */
.phone-top-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #F8FAFC;
  background: rgba(15, 23, 42, 0.95);
  z-index: 4;
}

.phone-island-notch {
  width: 64px;
  height: 14px;
  background-color: #000;
  border-radius: 9999px;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Video Viewport */
.phone-video-viewport {
  position: relative;
  flex: 1;
  background: #111827;
  overflow: hidden;
}

/* Live Badge Overlay */
.live-feed-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 9999px;
}

.live-feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: pulseDotLive 1.5s infinite;
}

.live-feed-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

/* Current Room Overlay Tag */
.live-feed-room-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: #E2E8F0;
  transition: all 0.3s ease;
}

.camera-lens-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38BDF8;
}

/* Video Player */
.live-camera-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Animated Ambient Stream Fallback (Visible when mp4 is not yet loaded) */
.nursery-ambient-stream {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.stream-sunbeam {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(246, 201, 184, 0.28) 0%, transparent 70%);
  transform: rotate(35deg);
  pointer-events: none;
}

.stream-room-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.stream-toys-illustration {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.toy-icon {
  font-size: 2.1rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  animation: floatToy 3.2s ease-in-out infinite alternate;
}

.toy-easel {
  animation-delay: 0.5s;
  font-size: 2.3rem;
}

.toy-sun {
  animation-delay: 1s;
}

@keyframes floatToy {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-8px) rotate(4deg); }
}

.stream-caption-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 10px;
  text-align: center;
}

.stream-room-tag {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFF5E6;
}

.stream-time-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: #94A3B8;
}

/* Phone Bottom Room Switcher (Tabs) */
.phone-room-switcher {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: #0F172A;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 4;
}

.room-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 2px;
  color: #94A3B8;
  font-family: 'Nunito', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.room-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

.room-tab-btn.active {
  background: #BFE3D0;
  color: #134E4A;
  border-color: #BFE3D0;
  box-shadow: 0 2px 6px rgba(191, 227, 208, 0.35);
}

/* Phone Home Swipe Bar */
.phone-home-indicator {
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  margin: 4px auto 6px;
  z-index: 4;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .live-camera-card {
    padding: 2.75rem 2rem;
    border-radius: 32px;
  }

  .live-camera-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .live-camera-content-col {
    align-items: center;
    text-align: center;
  }

  .live-camera-actions {
    justify-content: center;
  }

  .trust-point-item {
    text-align: left;
  }

  .smartphone-device {
    transform: rotateY(0deg) rotateX(0deg);
  }
}

@media (max-width: 640px) {
  .live-camera-section {
    padding: 1.75rem 1rem 2.5rem;
  }

  .live-camera-card {
    padding: 2rem 1.25rem;
    border-radius: 28px;
  }

  .live-camera-heading {
    font-size: 1.65rem;
  }

  .corner-decor {
    display: none;
  }

  .smartphone-device {
    width: 260px;
    height: 440px;
  }
}
