/* ========================================
   MAIN CSS FILE - IMPORTS ALL STYLES
   ======================================== */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

/* Import Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* Import Font Awesome */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css");

/* Import Swiper CSS */
@import url("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css");

/* Import Component CSS Files */
@import url("./components/navbar.css");
@import url("./components/mobile-nav.css");
@import url("./components/mobile-bottom-nav.css");
@import url("./components/footer.css");
@import url("./components/newsletter.css");
@import url("./components/search-modal.css");
@import url("./components/mobile-search-modal.css");
@import url("./components/loading.css");
@import url("./components/skeleton.css");
@import url("./components/cookie-popup.css");
@import url("./components/new-tag.css");
@import url("./components/floatingButton.css");
@import url("./components/external-link-modal.css");

/* Import Utils CSS Files */
@import url("./utils/toast.css");
@import url("./utils/scrollLocker.css");

/* Import Page CSS Files */
@import url("./pages/404.css");
@import url("./pages/coming-soon.css");

/* Import Section CSS Files */
@import url("./sections/hero.css");
@import url("./sections/featured-cards.css");
@import url("./sections/weston-collection.css");

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --primary-color: #2e4a7d;
  --primary-color-hover: #1f2f4d;
  --main-color: #fefcf8;
  --primary-font: "Inter", sans-serif;
  --secondary-font: "Cormorant Garamond", serif;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes button-spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

body {
  font-family: var(--primary-font);
  line-height: 1.6;
  color: #333;
  background-color: var(--main-color);
}

/* Ensure mobile navigation menu prevents scrolling with higher specificity */
body.navbar-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Mobile-specific overflow prevention - only apply on mobile */
@media (max-width: 1023px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }
}

/* ========================================
   TURNSTILE WAITING STATE - SHARED STYLING
   ======================================== */
/* Base waiting state for submit buttons */
.submit-button.waiting {
  background-color: #6b7280 !important;
  color: transparent !important;
  cursor: wait !important;
  position: relative;
}

/* Default spinner for most buttons */
.submit-button.waiting::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-spinner 0.8s linear infinite;
}

/* Smaller spinner for bin submission button to match its existing design */
.submit-bin-form-btn.waiting::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-spinner 0.8s linear infinite;
}

/* Ensure waiting state overrides base button styles and disabled state with higher specificity */
.submit-bin-form-btn.waiting {
  background-color: #6b7280 !important;
  color: transparent !important;
  cursor: wait !important;
  position: relative;
  opacity: 1 !important;
  pointer-events: auto !important;
}
