/* MR.WEED Buakhao - Main Styles */
/* Built by Kadena Web Solutions */

/* CSS Variables for consistent theming */
:root {
  /* Colors */
  --color-primary: #ef4444; /* red-500 */
  --color-secondary: #fbbf24; /* yellow-400 */
  --color-accent: #10b981; /* green-500 */
  --color-background: #18181b; /* zinc-900 */
  --color-surface: #27272a; /* zinc-800 */
  --color-card: #1e293b; /* slate-800 */
  --color-text: #ffffff;
  --color-text-muted: #cbd5e1; /* slate-300 */
  --color-text-subtle: #94a3b8; /* slate-400 */
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
}

/* Base styles */
body {
  font-family: var(--font-family);
  scroll-behavior: smooth;
}

/* Hero section with BEM methodology */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text);
  overflow: hidden;
}

.hero__slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-color: var(--color-background);
}

.hero__slider-image--active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.hero__content {
  position: relative;
  z-index: 10;
}

/* Text effects */
.text-glow {
  text-shadow:
    0 0 8px rgba(252, 211, 77, 0.6),
    0 0 20px rgba(252, 211, 77, 0.4);
}

/* Card component */
.card {
  background-color: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #334155; /* slate-700 */
  transform: scale(1);
  transition: transform var(--transition-normal);
}

.card:hover {
  transform: scale(1.05);
}

/* Button component */
.btn {
  transition: all var(--transition-normal);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text);
  padding: var(--spacing-md) var(--spacing-3xl);
  font-size: var(--font-size-lg);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(239, 68, 68, 0.5);
}

.btn--primary:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Performance optimizations */
img {
  loading: lazy;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }
  
  .hero__content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero__content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn--primary {
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: var(--font-size-base);
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .card:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh;
  }
  
  .hero__content h1 {
    font-size: 1.75rem;
  }
  
  .hero__content p {
    font-size: 0.9rem;
  }
  
  .btn--primary {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
}

/* Legacy class support for existing HTML */
.hero-bg {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-color: #18181b;
}

.hero-slider img.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.card-bg {
  background-color: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
}

.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(239, 68, 68, 0.5);
}

/* ===== GOOGLE MAPS THEMING ===== */
.map-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--color-background);
  border: 4px solid var(--color-surface);
}

.map-container:hover {
  transform: scale(1.02);
  border-color: var(--color-secondary);
  box-shadow: 0 25px 50px -12px rgba(251, 191, 36, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  filter: brightness(0.9) contrast(1.1);
  transition: filter var(--transition-normal);
}

.map-container:hover iframe {
  filter: brightness(1) contrast(1.2);
}

/* Map loading state */
.map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(30, 41, 59, 0.8) 25%, 
    rgba(51, 65, 85, 0.8) 50%, 
    rgba(30, 41, 59, 0.8) 75%);
  background-size: 200% 100%;
  animation: map-loading 1.5s infinite;
  z-index: 1;
  border-radius: inherit;
  /* Make overlay non-interactive */
  pointer-events: none;
}

.map-container iframe[src*="google.com"] + * {
  animation: map-loading 1.5s infinite;
}

@keyframes map-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Remove loading animation when map is loaded */
.map-container.loaded::before {
  display: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .map-container {
    border-width: 2px;
  }
  
  .map-container:hover {
    transform: scale(1.01);
  }
}