/* Custom CSS for Spicy Hub Website */

/* Modern Font Family */
* {
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", "Poppins", Georgia, serif;
  font-weight: 600;
}

/* Consistent Color Palette - Spicy Hub */
:root {
  /* Primary Brand Color (from logo) */
  --primary: #f4a300;
  --primary-light: #f5b800;
  --primary-lighter: #ffc933;
  --primary-dark: #e8950f;
  --primary-darker: #cc7a00;

  /* Custom Theme Colors */
  --theme-gray: #545454;
  --theme-gray-light: #666666;
  --theme-gray-dark: #424242;

  /* Grayscale Palette */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #000000;

  /* Semantic Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-theme: var(--theme-gray);
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-theme: var(--theme-gray);
  --border-color: #e5e7eb;

  /* Legacy support */
  --saffron: #f4a300;
  --primary-orange: #f56d15;
  --primary-red: #d32f2f;
  --deep-orange: #e65100;
  --warm-yellow: #fbc02d;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}

/* Custom utilities */
.text-primary-orange {
  color: var(--primary-orange) !important;
}
.text-primary-red {
  color: var(--primary-red);
}
.text-saffron {
  color: var(--saffron);
}
.bg-primary-orange {
  background-color: var(--primary-orange) !important;
}
.bg-primary-red {
  background-color: var(--primary-red);
}
.bg-saffron {
  background-color: var(--saffron);
}
.bg-deep-orange {
  background-color: var(--deep-orange);
}

.bg-deep-orange {
  background-color: var(--deep-orange);
}

/* Custom Gradient Classes for Tailwind Compatibility */
.bg-gradient-to-r.from-primary-orange.to-primary-red {
  background: linear-gradient(
    to right,
    var(--primary-orange),
    var(--primary-red)
  ) !important;
}

.bg-gradient-to-r.from-primary-orange.to-saffron {
  background: linear-gradient(
    to right,
    var(--primary-orange),
    var(--saffron)
  ) !important;
}

.bg-gradient-to-r.from-saffron.to-primary-orange {
  background: linear-gradient(
    to right,
    var(--saffron),
    var(--primary-orange)
  ) !important;
}

/* Custom hover effects */
.hover-scale:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  transition: box-shadow 0.3s ease;
}

/* Menu item styling */
.menu-item {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.menu-item:hover {
  border-left-color: var(--primary-orange);
  background-color: rgba(255, 107, 53, 0.05);
  transform: translateX(8px);
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--primary-red)
  );
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-red), var(--deep-orange));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
}

/* Navigation styling */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu animation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#announcement-modal {
  z-index: 1010 !important;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Logo styling */
.logo-white {
  height: 65px;
  width: auto;
  transition: all 0.3s ease;
}

.logo-white:hover {
  transform: scale(1.05);
}

/* Sticky Left Sidebar Navigation */
.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  backdrop-filter: blur(20px);
  z-index: 1005;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Sidebar Header with Logo */
.sidebar-header {
  padding: 0.3rem;
  text-align: center;
  background: var(--bg-primary);
  margin: 0 auto;
}

.sidebar-header .logo-dark {
  height: 95px;
  display: block;
}

.sidebar-header .logo-white {
  height: 95px;
  width: auto;
  display: none;
}

/* Navigation Items */
.sidebar-nav-list {
  flex: 1;
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
}

.sidebar-nav-item {
  margin-bottom: 0.25rem;
  padding: 0 1rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-nav-link:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.sidebar-nav-link.active {
  background: var(--theme-gray);
  color: var(--white);
  font-weight: 500;
}

.sidebar-nav-link i {
  margin-right: 10px;
  font-size: 1rem;
  width: 16px;
  color: var(--text-muted);
}

.sidebar-nav-link:hover i {
  color: var(--primary);
}

.sidebar-nav-link.active i {
  color: var(--white);
}

/* CTA Buttons in Sidebar */
.sidebar-cta-section {
  padding: 1rem 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.sidebar-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.sidebar-cta-primary {
  background: var(--theme-gray);
  color: var(--white);
  border: none;
}

.sidebar-cta-primary:hover {
  background: var(--theme-gray-dark);
  color: var(--white);
}

.sidebar-cta-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--gray-300);
}

.sidebar-cta-secondary:hover {
  background: var(--gray-100);
  color: var(--text-primary);
  border-color: var(--gray-400);
}

.sidebar-cta-tertiary {
  background: var(--gray-100);
  color: var(--text-secondary);
  border: 1px solid var(--gray-200);
}

.sidebar-cta-tertiary:hover {
  background: var(--gray-200);
  color: var(--text-primary);
}

/* Main Content Adjustment */
.main-content {
  margin-left: 300px;
  min-height: 100vh;
}

/* Footer Alignment */
.footer-content {
  margin-left: 300px;
}

/* Mobile Navigation Elements */
.mobile-nav-elements {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1003;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--white), var(--gray-50));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--gray-200);
}

.mobile-logo-container {
  flex: 1;
}

.mobile-logo-main {
  height: 75px;
  width: auto;
}

.mobile-hamburger-btn {
  border: none;
  color: var(--theme-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.7rem;
  padding-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-hamburger-btn:hover {
  transform: translateY(-2px);
}

.mobile-hamburger-btn:active {
  transform: translateY(0);
}

/* Mobile Sidebar (slides in when toggled) */
.left-sidebar.mobile-hidden {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.left-sidebar.mobile-show {
  transform: translateX(0);
  transition: transform 0.3s ease;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Hero section with slideshow */
.hero-slideshow {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7),
    rgba(33, 33, 33, 0.8)
  );
}

/* Slideshow dots */
.slideshow-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--white);
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--primary);
}

/* Slideshow arrows */
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 1.25rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
  border-radius: 8px;
  min-width: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slideshow-arrow.prev {
  left: 2rem;
}

.slideshow-arrow.next {
  right: 2rem;
}

/* Modern hero overlay effects */
.hero-overlay {
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 70%
  );
}

/* Restaurant ambiance styling */
.restaurant-section {
  position: relative;
  overflow: hidden;
}

.restaurant-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(244, 163, 0, 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading animation for images */
.image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Modal animations */
.modal-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
}

.modal-content {
  transform: scale(0.8) translateY(-50px);
  transition: all 0.3s ease;
}

.modal-content.show {
  transform: scale(1) translateY(0);
}

/* Enhanced CTA button styling */
.border-3 {
  border-width: 3px;
}

/* Icon spacing */
.mr-2 {
  margin-right: 0.5rem;
}

/* Text color utilities */
.text-saffron {
  color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

/* Legacy color class mappings for consistency */

.border-primary-orange {
  border-color: var(--gray-300) !important;
}

.hover\:bg-primary-orange:hover {
  background-color: var(--gray-100) !important;
}

.bg-saffron {
  background-color: var(--gray-800) !important;
}

.hover\:text-saffron:hover {
  color: var(--primary) !important;
}

/* Locations page styling */
.location-card {
  transition: all 0.3s ease;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(245, 109, 21, 0.3);
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  /* Hide desktop sidebar and show mobile navigation */
  .left-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .left-sidebar.mobile-show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding-top: 80px;
  }

  .footer-content {
    margin-left: 0;
  }

  .contact-banner {
    margin-left: 0;
  }

  .mobile-nav-elements {
    display: flex !important;
  }

  /* Ensure sidebar is properly positioned on mobile */
  .left-sidebar {
    width: 280px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .sidebar-nav-item {
    margin-bottom: 0.5rem;
  }

  .sidebar-nav-link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .mobile-nav-header {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

  /* Slideshow adjustments */
  .slideshow-arrow {
    display: none;
  }

  .slideshow-dots {
    bottom: 100px;
  }

  .hero-slideshow h1 {
    font-size: 2.2rem !important;
    line-height: 1.2;
    font-weight: 800;
  }

  .hero-slideshow p {
    font-size: 1rem !important;
  }

  /* Enhanced CTA buttons on mobile */
  .hero-slideshow .bg-gradient-to-r {
    font-size: 1.1rem !important;
    padding: 1.2rem 2rem !important;
    box-shadow: 0 8px 30px rgba(244, 163, 0, 0.4);
  }

  .hero-slideshow .bg-transparent {
    font-size: 1.1rem !important;
    padding: 1.2rem 2rem !important;
    border-width: 3px;
  }
}

@media (max-width: 640px) {
  .text-6xl {
    font-size: 2rem;
  }
  .text-5xl {
    font-size: 1.75rem;
  }
  .text-4xl {
    font-size: 1.625rem;
  }

  .hero-slideshow h1 {
    font-size: 1.8rem !important;
    font-weight: 900;
  }

  .slideshow-dots {
    bottom: 120px;
  }

  .sidebar-nav {
    width: 260px;
    left: -260px;
  }

  /* More prominent CTA on small screens */
  .hero-slideshow .bg-gradient-to-r {
    font-size: 1rem !important;
    padding: 1rem 1.8rem !important;
  }

  .hero-slideshow .bg-transparent {
    font-size: 1rem !important;
    padding: 1rem 1.8rem !important;
  }
}

@media (max-width: 480px) {
  .slideshow-dots {
    bottom: 140px;
  }

  .hero-slideshow h1 {
    font-size: 1.6rem !important;
  }
}

/* Form element normalization for iOS */
select,
input[type="date"],
input[type="time"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px !important;
}

/* Date and time inputs specific styling */
input[type="date"],
input[type="time"] {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
}

/* Hide browser's native date/time picker icons */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Firefox date/time input styling */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-calendar-picker-indicator {
  opacity: 0;
}

/* Remove iOS specific styling for better consistency */
select:focus,
input[type="date"]:focus,
input[type="time"]:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 2px rgba(245, 109, 21, 0.2);
}

/* Ensure consistent height and padding */
select,
input[type="date"],
input[type="time"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  min-height: 48px;
  font-size: 16px; /* Prevents zoom on iOS */
}

/* iOS specific fixes for consistent height (Safari, Chrome, Firefox on iOS) */
@supports (-webkit-touch-callout: none) {
  /* Target iOS Safari specifically */
  select,
  input[type="date"],
  input[type="time"] {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 1.2 !important;
    padding: 12px 40px 12px 16px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
  }

  /* Ensure consistent padding for all form inputs on iOS */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"] {
    height: 48px !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
  }
}

/* Additional iOS Chrome/Firefox specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 2) and (max-device-width: 767px) {
  /* Target iOS devices specifically (iPhone/iPad) */
  select,
  input[type="date"],
  input[type="time"] {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 1.2 !important;
    padding: 12px 40px 12px 16px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"] {
    height: 48px !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-orange);
  border-radius: 4px;
}

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

/* Hide scrollbar for horizontal scroll containers */
.scrollbar-hide {
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/* Custom horizontal scrollbar for mobile menu tabs */
@media (max-width: 768px) {
  .menu-tabs-container::-webkit-scrollbar {
    height: 4px;
  }

  .menu-tabs-container::-webkit-scrollbar-track {
    background: transparent;
  }

  .menu-tabs-container::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 2px;
  }
}
