/* =============================================
   COMPLETE FOOTER COMPONENT STYLES
   Version: 3.0 | Updated: [Current Date]
   Features:
   - Fixed black dot rendering issues
   - Properly structured CSS variables
   - Comprehensive commenting
   - Multiple style variations
   - Responsive behavior
   ============================================= */

/**
 * BASE FOOTER CONTAINER
 * Fixed position at bottom of viewport
 * Includes shadow and transition effects
 */
.footer-nav-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 62px; /* Standard mobile footer height */
  z-index: 1000; /* Ensure footer stays above content */
  background-color: var(--white);
  box-shadow: -1px 1px 6px rgba(0, 0, 0, 0.1);
  transition: all 400ms ease;
}

/**
 * FOOTER NAVIGATION WRAPPER
 * Contains all navigation elements
 */
.footer-nav {
  width: 100%;
  height: 100%;
  /* Explicit background with fallback */
  background-color: #ffffff; /* Solid white fallback */
  background-color: var(--white, #ffffff); /* Uses CSS variable if defined */}

/* NAVIGATION LIST STRUCTURE */
.footer-nav ul {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
}

/* INDIVIDUAL NAV ITEMS */
.footer-nav ul li {
  position: relative;
  flex: 1 1 0; /* Equal width items */
  display: flex;
  align-items: center;
  justify-content: center;
}

/**
 * NAVIGATION LINKS
 * Includes icon and text styling
 */
.footer-nav ul li a {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  text-align: center;
  text-decoration: none;
  color: var(--primary-950);
  font-size: 10px;
  font-weight: 600;
  text-transform: capitalize;
  transition: all 400ms ease;
}

/* ICON STYLING */
.footer-nav ul li a i {
  display: block;
  font-size: 1rem;
  transition: inherit;
}

/* TEXT LABEL */
.footer-nav ul li a span {
  display: block;
  margin-top: 0.4rem;
  text-transform: uppercase;
  transition: inherit;
}

/**
 * INTERACTIVE STATES
 * Applies to hover, focus, and active items
 */
.footer-nav ul li.active a,
.footer-nav ul li a:hover,
.footer-nav ul li a:focus {
  color: var(--primary-950);
}

.footer-nav ul li.active a span,
.footer-nav ul li a:hover span,
.footer-nav ul li a:focus span {
  color: var(--primary-950);
}

/* =============================================
   FOOTER STYLE VARIATIONS
   ============================================= */

/**
 * STYLE TWO - CIRCULAR ACTIVE ITEM
 * Features a prominent circular active state
 */
.footer-nav.footer-style-two li.active a {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  margin: -25px auto 0;
  border-radius: 50%;
  color: var(--white);
  background-color: var(--primary-200);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner circle effect */
.footer-nav.footer-style-two li.active a::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  right: 10%;
  z-index: -1;
  border-radius: 50%;
  background-color: var(--primary-500);
}

/**
 * STYLE THREE - CIRCULAR BUTTONS
 * All items appear as circular buttons
 */
.footer-nav.footer-style-three ul li a {
  width: 2.625rem;
  height: 2.625rem;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Active state */
.footer-nav.footer-style-three ul li.active a {
  background-color: var(--primary-500);
  color: var(--white);
}

/**
 * STYLE FIVE - BOTTOM INDICATOR
 * Shows a bottom bar for active/hover states
 */
.footer-nav.footer-style-five ul li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2rem;
  height: 3px;
  background-color: var(--primary-950);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.footer-nav.footer-style-five ul li.active::after,
.footer-nav.footer-style-five ul li:hover::after {
  opacity: 1;
}

/**
 * STYLE SEVEN - DOT INDICATOR
 * Shows a small dot for active/hover states
 */
.footer-nav.footer-style-seven ul li::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 7px;
  height: 7px;
  background-color: var(--success-500);
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 400ms ease;
}

.footer-nav.footer-style-seven ul li.active::after,
.footer-nav.footer-style-seven ul li:hover::after {
  opacity: 1;
}

/* =============================================
   UTILITY CLASSES & MODIFIERS
   ============================================= */

/**
 * HORIZONTAL SCROLLING FOOTER
 * For footers with many items requiring scrolling
 */
.horizontal-scroll.footer-nav ul {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll.footer-nav ul li {
  flex: 0 0 auto;
  padding: 0 1rem;
}

/**
 * COLOR VARIATIONS
 * For different contextual backgrounds
 */
.bg-success .footer-nav ul li a,
.bg-primary .footer-nav ul li a,
.bg-secondary .footer-nav ul li a,
.bg-dark .footer-nav ul li a,
.bg-danger .footer-nav ul li a,
.bg-info .footer-nav ul li a,
.bg-warning .footer-nav ul li a {
  color: rgba(255, 255, 255, 0.6);
}

/* Active/hover states for colored backgrounds */
.bg-success .footer-nav ul li.active a,
.bg-primary .footer-nav ul li.active a,
.bg-secondary .footer-nav ul li.active a,
.bg-dark .footer-nav ul li.active a,
.bg-danger .footer-nav ul li.active a,
.bg-info .footer-nav ul li.active a,
.bg-warning .footer-nav ul li.active a,
.bg-success .footer-nav ul li a:hover,
.bg-primary .footer-nav ul li a:hover,
.bg-secondary .footer-nav ul li a:hover,
.bg-dark .footer-nav ul li a:hover,
.bg-danger .footer-nav ul li a:hover,
.bg-info .footer-nav ul li a:hover,
.bg-warning .footer-nav ul li a:hover {
  color: var(--white);
}

/**
 * BLACK DOT FIX
 * Ensures no unintended pseudo-elements appear
 */
.social-info-wrap a::after {
  content: none !important;
}

/* =============================================
   END OF FOOTER STYLES
   ============================================= */