/* Global styles for Lucimart website */

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  /* Overall background is now white */
}

/* Custom styles for loading indicator */
.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #2563eb;
  /* Blue-700 for spinner, matching brand */
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: none;
  /* Hidden by default */
}

.loading-spinner.active {
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

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

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

/* Max width for content inside full-width sections */
.content-container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; /* 16px mobile padding */
  padding-right: 1rem; /* 16px mobile padding */
}

/* Remove padding on larger screens */
@media (min-width: 768px) {
  .content-container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Style for details/summary (FAQ collapsible) */
details {
  background-color: #f8fafc;
  /* light blue-gray */
  border: 1px solid #e2e8f0;
  /* light gray border */
  border-radius: 0.375rem;
  /* rounded-md */
  margin-bottom: 0.75rem;
  /* mb-3 */
  padding: 1rem 1.25rem;
  /* p-4 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* shadow-sm */
  transition: all 0.2s ease-in-out;
}

details[open] {
  background-color: #e0f2fe;
  /* very light blue when open */
  border-color: #93c5fd;
  /* blue-300 */
}

summary {
  font-weight: 600;
  /* font-semibold */
  cursor: pointer;
  outline: none;
  color: #1e40af;
  /* blue-800 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
  /* Hide default arrow */
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 0.5rem;
  transition: transform 0.2s ease-in-out;
}

details[open] summary::after {
  content: '-';
  transform: rotate(0deg);
}

details p {
  margin-top: 0.75rem;
  /* mt-3 */
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  /* light gray border */
  color: #4b5563;
  /* gray-700 */
}

/* Contact form enhancements */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  transition: all 0.3s ease;
}

/* Notification system styles */
.notification-toast {
  transform: translateX(100%);
  animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Enhanced button hover effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

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

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Form validation styles */
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-field.success input,
.form-field.success select,
.form-field.success textarea {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Gradient backgrounds */
.gradient-bg-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 50%, #f0f9ff 100%);
}

.gradient-bg-contact {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

/* Mobile navigation scrollable menu */
@media (max-width: 767px) {
  .mobile-nav-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding-bottom: 2px; /* Prevent cut-off */
  }
  
  .mobile-nav-container::-webkit-scrollbar {
    display: none; /* WebKit */
  }
  
  .mobile-nav-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    white-space: nowrap;
    padding: 0.25rem 0;
    min-width: max-content; /* Ensure full width for content */
  }
  
  .mobile-nav-item {
    flex-shrink: 0;
    flex-grow: 0;
    min-width: max-content; /* Allow items to be as wide as needed */
    padding: 0.375rem 0.875rem !important;
    text-align: center;
    white-space: nowrap;
    font-size: 0.875rem; /* Ensure consistent text size */
    border-radius: 0.375rem;
  }
}

/* Language switcher active state effects */
.lang-btn {
  opacity: 0.5; /* Default inactive state */
  transition: all 0.3s ease;
}

.lang-btn.active {
  opacity: 1 !important; /* Full opacity for active */
  color: #fbbf24 !important; /* text-yellow-400 */
  transform: scale(1.05); /* slight scale effect */
}

.lang-btn.active img {
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.6)); /* glow effect for flag */
  transform: scale(1.1); /* slightly larger flag */
}

.lang-btn:not(.active):hover {
  opacity: 0.8; /* Slightly more visible on hover for inactive */
  transform: scale(1.02); /* subtle hover scale for inactive */
}

.lang-btn.active:hover {
  opacity: 1; /* Keep full opacity on hover for active */
}
