/* Custom styles for EV Auto Parts Global B2B Platform */

:root {
  --primary: #0066FF;
  --primary-hover: #0052CC;
  --accent: #10B981;
  --dark-bg: #0B0F19;
  --card-bg: #111827;
  --border-color: #1F2937;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: #0B0F19;
  color: #E5E7EB;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism & High-tech Cards */
.glass-card {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.glass-card:hover {
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.12);
}

.glass-nav {
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dropdown Hover Bridge - Fixes hover gap issue */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-wrapper .dropdown-menu-container {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

/* Invisible hover bridge pseudo-element */
.nav-dropdown-wrapper .dropdown-menu-container::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  z-index: 40;
}

.nav-dropdown-wrapper:hover .dropdown-menu-container,
.nav-dropdown-wrapper .dropdown-menu-container:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Gradient accents */
.gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-btn {
  background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
  transition: all 0.2s ease;
}

.gradient-btn:hover {
  background: linear-gradient(135deg, #1A75FF 0%, #0066FF 100%);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
  transform: translateY(-1px);
}

/* Table styling for GEO extractability */
.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.geo-table th {
  background-color: #1F2937;
  color: #9CA3AF;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #374151;
}

.geo-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1F2937;
  color: #E5E7EB;
}

.geo-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Pulse animation for RFQ buttons */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 102, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
  }
}

.pulse-button {
  animation: pulse-glow 2s infinite;
}

/* Badge styles */
.badge-iatf {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-oem {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
