/*
Theme Name: PakistaniBano - National Trade & B2B Directory
Theme URI: https://pakistanibano.com/
Author: PakistaniBano Team
Author URI: https://pakistanibano.com/
Description: A modern, high-performance Justdial-style B2B and Hyperlocal trade directory theme for Pakistan. Features Justdial dual search, wobbling call buttons, floating edge tabs, 3 trade pillars (Industrial, Wholesale, Retail), lead auction engine, prepaid vendor wallet, and SMS OTP verification.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pakistanibano
Tags: directory, b2b, marketplace, justdial, e-commerce, custom-header, full-width-template
*/

/* Custom Base Utilities */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glass navigation blur */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

/* ================= JUSTDIAL REVERSE-ENGINEERED COMPONENT STYLES ================= */

/* 1. Green Call Button with Handset Wobble */
.greenfill_animate {
  background-color: #058a07;
  border: 1px solid #027c0a;
  color: #ffffff;
  transition: all 0.3s ease;
}
.greenfill_animate:hover {
  background-color: #007a0c;
  box-shadow: 0 2px 8px rgba(5, 138, 7, 0.35);
}

.wobble-hover:hover .phone-icon-wobble,
.group:hover .phone-icon-wobble {
  animation: jd_wobble 1.8s infinite;
}

@keyframes jd_wobble {
  0% { transform: scale(1) rotate(0deg); }
  5% { transform: scale(1.1) rotate(-15deg); }
  10% { transform: scale(1.1) rotate(20deg); }
  15% { transform: scale(1.1) rotate(-15deg); }
  20% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* 2. Shimmering Light Flare on "Get Best Price" button */
.button_flare_box {
  position: relative;
  overflow: hidden;
}
.button_flare {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: jd_flare 3.5s infinite;
}

@keyframes jd_flare {
  0% { left: -120%; }
  30% { left: 160%; }
  100% { left: 160%; }
}

/* 3. Justdial Rating Box */
.totalratebox {
  background-color: #058a07;
  color: #fff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-weight: 700;
  font-size: 11px;
}

/* 4. Justdial "My Business" Pill Header (#345b9e) */
.headnav_mybusiness {
  background-color: #345b9e;
  border: 1px solid #2b4b83;
  color: #ffffff;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.headnav_mybusiness:hover {
  background-color: #2b4b83;
  box-shadow: 0 2px 6px rgba(52, 91, 158, 0.35);
}

/* 5. Live Pulsing Red Leads Badge */
.leads-live-pulse {
  position: relative;
}
.leads-live-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  background-color: #e52626;
  border-radius: 9999px;
  box-shadow: 0 0 0 2px #fff;
  animation: jd_pulse 1.5s infinite;
}

@keyframes jd_pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 38, 38, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(229, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 38, 38, 0); }
}

/* 6. Justdial Floating Edge Box (Pinned Right) */
.jd_floatbox {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jd_floatbox .floatbutton {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  cursor: pointer;
  box-shadow: -2px 0 10px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}
.jd_floatbox .floatbutton:hover {
  transform: rotate(180deg) translateX(4px);
}
