/* ==========================================================================
   CureCarb — Premium Coconut Shell Activated Carbon Video Player & WhatsApp CTA
   ========================================================================== */

:root {
  --bg-main: #0a0b10;
  --wa-green: #25d366;
  --wa-green-hover: #20bd5a;
  --text-white: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-main);
  font-family: var(--font-family);
  color: var(--text-white);
  overflow: hidden; /* No scrollbars */
  -webkit-font-smoothing: antialiased;
}

/* Centered Screen Layout */
.app-root {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(circle at center, #141724 0%, #08090d 100%);
  position: relative;
}

/* Locked Container */
.media-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  gap: 12px;
}

/* Video Wrapper */
.video-theater-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

/* Soft Ambient Shadow Glow */
.ambient-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.2) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 80%);
  filter: blur(20px);
  border-radius: 24px;
  z-index: 1;
  pointer-events: none;
}

/* Video Card (Pure clean 9:16 vertical video) */
.video-card {
  position: relative;
  z-index: 2;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: calc(100dvh - 85px);
  aspect-ratio: 9 / 16;
  width: auto;
}

/* Video Element */
.main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  user-select: none;
}

/* ==========================================================================
   TOP RIGHT CORNER MUTE / UNMUTE BUTTON (Like Instagram / TikTok)
   ========================================================================== */

.sound-toggle-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 12, 18, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sound-toggle-btn:hover {
  background: rgba(10, 12, 18, 0.9);
  transform: scale(1.08);
  border-color: var(--wa-green);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.sound-toggle-btn:active {
  transform: scale(0.95);
}

.sound-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Icon Switching based on is-muted class */
.sound-toggle-btn .icon-sound-on { display: block; }
.sound-toggle-btn .icon-sound-muted { display: none; }

.sound-toggle-btn.is-muted .icon-sound-on { display: none; }
.sound-toggle-btn.is-muted .icon-sound-muted { display: block; }

/* ==========================================================================
   HIGHLIGHTED STATIC WHATSAPP BUTTON
   ========================================================================== */

.cta-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wa-green);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  box-shadow: 
    0 6px 20px rgba(37, 211, 102, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 46px;
}

.whatsapp-btn:hover {
  background-color: var(--wa-green-hover);
  transform: translateY(-2px);
  box-shadow: 
    0 10px 25px rgba(37, 211, 102, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.4);
  color: #ffffff !important;
}

.whatsapp-btn:active {
  transform: translateY(1px);
}

.whatsapp-btn-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wa-icon-wrap {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-icon-wrap svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.wa-btn-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wa-arrow-icon {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  transition: transform 0.2s ease;
  margin-left: 0.2rem;
}

.whatsapp-btn:hover .wa-arrow-icon {
  transform: translateX(3px);
}

/* Mobile Devices */
@media (max-width: 768px) {
  .app-root {
    padding: 8px;
  }

  .video-card {
    max-height: calc(100dvh - 75px);
  }

  .sound-toggle-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .sound-toggle-btn svg {
    width: 18px;
    height: 18px;
  }

  .whatsapp-btn {
    width: 100%;
    max-width: 320px;
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
    min-height: 42px;
  }
}
