/* Custom styles beyond Tailwind */

/* Font Face Declaration for Le Petit Cochon */
@font-face {
  font-family: 'Le Petit Cochon';
  src: url('../fonts/Petit Cochon.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Font utility class */
.font-brand {
  font-family: 'Le Petit Cochon', 'Montserrat', sans-serif;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Navbar scroll transition */
#navbar {
  transition: all 0.3s ease-in-out;
}

#navbar.scrolled {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Enhanced navbar transparency effect */
.navbar-transparent {
  background: rgba(255, 102, 196, 0);
}

.navbar-visible {
  background: rgba(255, 102, 196, 0.95);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Beer Carousel Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.beer-carousel {
  display: flex;
  width: calc(250px * 11); /* Width of all items */
}

.beer-carousel:hover {
  animation-play-state: paused;
}

@media (min-width: 768px) {
  .beer-carousel {
    animation: scroll 30s linear infinite;
  }
}

.beer-item {
  flex: 0 0 auto;
  transition: all 0.3s ease;
}

.beer-item:hover {
  z-index: 10;
}

/* Custom bottle animation if needed */
@keyframes floatBottle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.bottle-animation:hover {
  animation: floatBottle 2s ease infinite;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  /* Mobile-specific styles */
  .header-mobile {
    padding: 0.5rem 1rem;
  }
}

/* Age Verification Modal Styles */
#ageVerificationModal {
  font-family: 'Montserrat', sans-serif;
}

#ageVerificationModal h2 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.025em;
}

.backdrop-blur-md {
  backdrop-filter: blur(8px);
}

/* Animation for modal */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ageVerificationModal > div:nth-child(2) {
  animation: modalFadeIn 0.5s ease-out forwards;
}

/* Button hover effects */
#ageVerificationYes:hover, #ageVerificationNo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hide class for the modal */
/* .hidden {
  display: none !important;
}  */

/* Fade-in animation for submenu */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Smooth transitions for category buttons */
button {
  transition: all 0.2s ease-in-out;
}

/* Submenu button hover effects */
#itemsSubmenu button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Order Summary Scrollable Area */
.order-items-scroll {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f9fafb;
}

.order-items-scroll::-webkit-scrollbar {
  width: 6px;
}

.order-items-scroll::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 3px;
}

.order-items-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.order-items-scroll::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Quantity Control Buttons */
.quantity-btn {
  transition: all 0.2s ease-in-out;
  user-select: none;
}

.quantity-btn:hover {
  background-color: #f3f4f6;
}

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

.quantity-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Product Row Animation */
.product-row {
  transition: all 0.3s ease;
}

.product-row.removing {
  opacity: 0;
  transform: translateX(-20px);
  height: 0;
  padding: 0;
  margin: 0;
}

/* Empty Cart Message Animation */
#empty-cart-message {
  animation: fadeIn 0.5s ease-in-out;
}

/* Responsive adjustments for quantity controls */
@media (max-width: 640px) {
  .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .product-quantity {
    min-width: 1.5rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Interactive Map Styles */
#mapContainer {
  transition: all 0.3s ease-in-out;
}

#interactiveMap {
  min-height: 320px;
  position: relative;
}

/* Map info panels */
.map-info-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Map control buttons */
.map-control-btn {
  transition: all 0.2s ease-in-out;
  backdrop-filter: blur(8px);
}

.map-control-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-control-btn:active {
  transform: translateY(0);
}

.map-control-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Map toggle button */
#toggleMapBtn {
  transition: all 0.2s ease-in-out;
}

#toggleMapBtn:hover {
  color: #ec4899;
}

/* Coordinate display styling */
#selectedCoordinates {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.75rem;
}

/* Distance display styling */
#distanceFromStore {
  font-weight: 500;
}

/* Map container animation when showing/hiding */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
}

#mapContainer:not(.hidden) {
  animation: slideDown 0.3s ease-out;
}

/* Custom Google Maps InfoWindow styling */
.gm-style .gm-style-iw-c {
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gm-style .gm-style-iw-t::after {
  background: white;
}

/* Mobile responsive adjustments for map */
@media (max-width: 640px) {
  #interactiveMap {
    min-height: 280px;
  }
  
  .map-control-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  #selectedCoordinates {
    font-size: 0.625rem;
  }
  
  #distanceFromStore {
    font-size: 0.75rem;
  }
}
