/* ========================================
   PetrolPartner — Custom Styles
   ======================================== */

/* --- Floating Blobs --- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  animation: blobFloat 20s ease-in-out infinite;
}
.blob-orange {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #F97316, transparent 70%);
  top: -10%;
  right: -5%;
}
.blob-teal {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0D9488, transparent 70%);
  bottom: -10%;
  left: -5%;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 30px) scale(1.03); }
}

/* --- Navbar Scroll State --- */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#navbar.scrolled .nav-link {
  color: #374151;
}
#navbar.scrolled .nav-brand-text {
  color: #111827;
}
#navbar.scrolled .hamburger-lines span {
  background-color: #111827;
}

/* --- Mobile Menu Animation --- */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hamburger Active State --- */
.hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}
.hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Search Card Glow --- */
.search-card {
  position: relative;
}
.search-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(249,115,22,0.3), rgba(13,148,136,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Company Pills Hover --- */
.company-pill:hover {
  transform: translateY(-2px);
}

/* --- Filter Pill Active --- */
.filter-pill.active {
  background: #F97316;
  color: white;
  border-color: #F97316;
}

/* --- FAQ Accordion --- */
.faq-item {
  background: white;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(249,115,22,0.2);
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-content {
  max-height: 300px;
}

/* --- Smooth Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAFAF7;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* --- Selection Color --- */
::selection {
  background: rgba(249,115,22,0.2);
  color: #111827;
}

/* --- Date Input Fix --- */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

/* --- Ride Card Hover Line --- */
.ride-card {
  position: relative;
  overflow: hidden;
}
.ride-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #F97316, #0D9488);
  transition: width 0.5s ease;
}
.ride-card:hover::after {
  width: 100%;
}

/* --- Responsive Tweaks --- */
@media (max-width: 640px) {
  .blob { display: none; }
  .blob-orange, .blob-teal { display: block; width: 250px; height: 250px; }
}
