/* Custom CSS for Teddy Club */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
  --cream-light: #F5F1E8;
  --cream: #E8E0D0;
  --green-light: #A8D5BA;
  --green: #7FB069;
  --brown-light: #A0826D;
  --brown: #8B6F47;
  --text-dark: #2C2C2C;
  --text-light: #6B6B6B;
}

* {
  font-family: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  background-color: var(--cream-light);
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--green);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--brown-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brown);
}

/* Dark Mode */
[data-theme="dark"] {
  --cream-light: #1a1a1a;
  --cream: #2d2d2d;
  --text-dark: #f5f5f5;
  --text-light: #b0b0b0;
}

[data-theme="dark"] body {
  background-color: var(--cream-light);
  color: var(--text-dark);
}

[data-theme="dark"] .bg-white {
  background-color: #2d2d2d !important;
}

[data-theme="dark"] .bg-cream-light {
  background-color: #1a1a1a !important;
}

/* Video Hero Section */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile Video (Portrait) */
@media (max-width: 767px) {
  .hero-video-container video {
    object-fit: cover;
    object-position: center;
  }
}

/* Desktop Video (Landscape) */
@media (min-width: 768px) {
  .hero-video-container video {
    object-fit: cover;
    object-position: center;
  }
}

/* Video Overlay for Text Readability */
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  z-index: 1;
}

/* Ensure video doesn't cause layout shift */
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Hero Section Video Container */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 85vh;
  }
}

/* Video container full coverage */
.hero-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile video optimization */
@media (max-width: 767px) {
  .hero-section video {
    object-fit: cover;
    object-position: center center;
  }
}

/* Desktop video optimization */
@media (min-width: 768px) {
  .hero-section video {
    object-fit: cover;
    object-position: center center;
  }
}

/* Video loading state */
video[poster] {
  background-color: var(--cream-light);
}

/* Ensure video is always full screen in hero */
section[aria-labelledby="hero-heading"] video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
}

/* Mobile specific video adjustments */
@media (max-width: 767px) {
  section[aria-labelledby="hero-heading"] {
    min-height: 60vh;
  }
  
  section[aria-labelledby="hero-heading"] video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Tablet and desktop */
@media (min-width: 768px) {
  section[aria-labelledby="hero-heading"] video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

