/* ═══════════════════════════════════════════════════════════════════
   BIDPOTS FOOTER & ACCESSIBILITY v4.0
   Rich premium footer + WCAG 2.1 AA compliance
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Kill old footer styles ─────────────────────────────────────── */
footer.bp-footer { background-color: transparent; margin: 0; color: inherit; padding: 0; }
footer.bp-footer .f_menu, footer.bp-footer .copyright { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER WRAPPER
   ═══════════════════════════════════════════════════════════════════ */
.bp-footer {
  background: linear-gradient(160deg, #060d1f 0%, #0d1b3e 35%, #0f3460 70%, #0d1b3e 100%);
  color: #cbd5e1;
  padding: 0;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

/* Animated rainbow top border */
.bp-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #e94560, #f59e0b, #10b981, #8b5cf6, #3b82f6);
  background-size: 400% 100%;
  animation: bp-footer-shimmer 10s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes bp-footer-shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 400% 0%; }
}

/* Decorative background glow blobs */
.bp-footer::after {
  content: '';
  position: absolute;
  top: -80px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.bp-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 32px 0;
  position: relative;
  z-index: 1;
}

/* ─── Stats bar ──────────────────────────────────────────────────── */
.bp-footer-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  margin-bottom: 48px;
  overflow: hidden;
}

.bp-footer-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
  min-width: 0;
}

.bp-footer-stat:last-child { border-right: none; }
.bp-footer-stat:hover { background: rgba(255,255,255,0.05); }

.bp-footer-stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bp-footer-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Footer Grid ────────────────────────────────────────────────── */
.bp-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ─── Brand Column ───────────────────────────────────────────────── */
.bp-footer-brand { max-width: 300px; }

.bp-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.bp-footer-logo:hover { opacity: 0.85; }

.bp-footer-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.bp-footer-tagline {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 22px;
}

/* Contact info */
.bp-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.bp-footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.bp-footer-contact a:hover { color: #60a5fa; }
.bp-footer-contact a i { width: 14px; color: #475569; font-size: 13px; }

/* Social links */
.bp-footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bp-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.22s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.bp-social-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.bp-social-link.fb:hover  { background: #1877f2; border-color: #1877f2; }
.bp-social-link.tw:hover  { background: #1da1f2; border-color: #1da1f2; }
.bp-social-link.ig:hover  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #e6683c; }
.bp-social-link.li:hover  { background: #0077b5; border-color: #0077b5; }
.bp-social-link.yt:hover  { background: #ff0000; border-color: #ff0000; }

/* ─── Nav Columns ────────────────────────────────────────────────── */
.bp-footer-nav { min-width: 0; }

.bp-footer-heading {
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-footer-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.bp-footer-nav ul {
  list-style: none;
  margin: 0; padding: 0;
}

.bp-footer-nav ul li { margin-bottom: 9px; }

.bp-footer-nav ul li a {
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
}

.bp-footer-nav ul li a:hover {
  color: #e2e8f0;
  padding-left: 5px;
}

.bp-footer-nav ul li a i {
  font-size: 10px;
  color: #334155;
  transition: color 0.2s, transform 0.2s;
}

.bp-footer-nav ul li a:hover i {
  color: #60a5fa;
  transform: translateX(2px);
}

/* Newsletter column */
.bp-footer-newsletter-col { min-width: 0; }

.bp-footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.bp-footer-newsletter-desc {
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.bp-footer-newsletter-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.bp-footer-newsletter-input::placeholder { color: #475569; }
.bp-footer-newsletter-input:focus {
  border-color: #3b82f6;
  background: rgba(255,255,255,0.08);
}

.bp-footer-newsletter-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 3px 10px rgba(59,130,246,0.3);
}

.bp-footer-newsletter-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(59,130,246,0.4);
}

/* ─── Footer Bottom Bar ──────────────────────────────────────────── */
.bp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0 28px;
}

.bp-footer-apps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bp-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
}

.bp-app-badge:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.bp-app-badge i { font-size: 17px; }

.bp-footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.bp-footer-legal {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bp-footer-legal a {
  color: #475569;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.bp-footer-legal a:hover { color: #94a3b8; }

.bp-copyright {
  color: #334155;
  font-size: 12px;
  margin: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .bp-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .bp-footer-newsletter-col { grid-column: 1 / -1; }
  .bp-footer-newsletter-form { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 1024px) {
  .bp-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .bp-footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .bp-footer-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .bp-footer { border-radius: 0; margin-top: 32px; }
  .bp-footer-inner { padding: 36px 18px 0; }
  .bp-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bp-footer-brand { grid-column: 1 / -1; }
  .bp-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .bp-footer-apps { justify-content: center; }
  .bp-footer-bottom-right { align-items: center; }
  .bp-footer-legal { justify-content: center; }
  .bp-footer-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .bp-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .bp-footer-inner { padding: 28px 14px 0; }
  .bp-footer-stats { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   WCAG 2.1 AA — ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════ */

/* Skip link */
.bp-skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: #1e40af;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 14px; font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: top 0.2s ease;
}
.bp-skip-link:focus { top: 0; outline: none; }

/* Focus rings */
*:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}
.navbar-top *:focus-visible,
.bp-footer *:focus-visible {
  outline-color: #60a5fa !important;
}
:focus:not(:focus-visible) { outline: none !important; }

/* Min touch targets */
.bp-main-nav > li > a,
.bp-mobile-nav ul li a,
.bp-footer-nav ul li a,
.btn, .bp-btn,
.bp-sell-btn, .bp-nav-icon-btn,
.bp-mobile-post-btn, .navbar-toggle { min-height: 44px; }

p a, li a, span a, td a,
.bp-footer-nav a, .dropdown-menu a { min-height: auto; min-width: auto; }

/* Color contrast fixes */
::placeholder { color: #6b7280 !important; opacity: 1; }
.text-muted, .small, small { color: #6b7280 !important; }
.f_menu a, .bid li strong, .top-ttls h4 { color: #b45309 !important; }
.link_green, .status.online { color: #047857 !important; }
.link_red { color: #b91c1c !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bp-footer::before { animation: none !important; }
  .bp-social-link:hover,
  .bp-app-badge:hover { transform: none !important; }
}

/* High contrast */
@media (forced-colors: active) {
  .bp-footer, .bp-social-link, .bp-app-badge { border: 1px solid CanvasText; }
  .btn, .bp-btn { border: 1px solid ButtonText; }
}

/* Screen reader only */
.sr-only, .visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Form accessibility */
.form-control[aria-invalid="true"], .form-control.input-validation-error {
  border-color: #dc2626 !important; border-width: 2px !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}
[role="alert"], .field-validation-error, .validation-summary-errors {
  color: #b91c1c !important; font-size: 13px; font-weight: 500;
  padding: 6px 10px; background: #fef2f2; border-radius: 6px;
  border-left: 3px solid #dc2626; margin-top: 4px;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────── */
.bp-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 12px 0; margin-bottom: 16px; font-size: 13px; list-style: none;
}
.bp-breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.bp-breadcrumb li + li::before { content: '/'; color: #9ca3af; margin: 0 4px; }
.bp-breadcrumb a { color: #2563eb; text-decoration: none; font-weight: 500; transition: color 0.15s; }
.bp-breadcrumb a:hover { color: #1d4ed8; text-decoration: underline; }
.bp-breadcrumb .active { color: #6b7280; font-weight: 400; }

/* ─── Active nav indicator ───────────────────────────────────────── */
.bp-main-nav > li > a.active, .bp-main-nav > li.active > a {
  color: #ffffff !important; border-bottom-color: #e94560 !important; font-weight: 700;
}

/* ─── CTA link ───────────────────────────────────────────────────── */
.bp-cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #2563eb; font-weight: 600; font-size: 14px; text-decoration: none; transition: all 0.2s;
}
.bp-cta-link::after { content: '→'; transition: transform 0.2s; }
.bp-cta-link:hover { color: #1d4ed8; gap: 10px; }
.bp-cta-link:hover::after { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════════
   CLICK-BLOCKING PREVENTION
   ═══════════════════════════════════════════════════════════════════ */
#loginModel, #logout,
#loginModel_background, #logout_background, .popup_background {
  pointer-events: none !important; z-index: -1 !important;
  display: none !important; position: absolute !important;
  left: -9999px !important; top: -9999px !important;
  width: 0 !important; height: 0 !important; overflow: hidden !important;
}

.navbar-side {
  display: none !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}
/* NOTE: .navbar-side * selector removed — too broad, kills all pointer events */

div#messages:not(.active) { pointer-events: none; }
div#messages.active { pointer-events: auto; }

#page-wrapper, .page-content, .bp-main-nav, .nav-top,
.navbar-header, .navbar-top, .bp-footer, .bp-footer *,
.bp-footer-nav, .bp-footer-nav a, .bp-footer-nav ul li a,
.bp-mobile-nav, .bp-mobile-nav a, .bp-mobile-menu.open,
.bp-mobile-menu.open a, .bp-auth-btns, .bp-auth-btns a,
.bp-login-btn, .bp-register-btn, .bp-login-signup-nav,
.bp-login-signup-nav a,
/* Nav dropdown menus */
.bp-main-nav > li, .bp-main-nav > li > a,
.dropdown-menu, .dropdown-menu li, .dropdown-menu li a,
.bp-dropdown-menu, .bp-dropdown-menu li, .bp-dropdown-menu li a,
/* Nav icon buttons */
.bp-nav-icon-btn, .bp-nav-avatar,
.bp-sell-btn, .bp-sell-btn-wrapper a,
/* Hamburger */
#bpHamburger, .navbar-toggle,
#bpMobileMenuClose,
/* Misc interactive */
button, a, input, select, textarea,
.btn, .bp-btn, .bp-fab-post { pointer-events: auto; }

/* ─── Print ──────────────────────────────────────────────────────── */
@media print {
  .bp-footer { background: #fff !important; color: #000 !important; border-top: 2px solid #000; }
  .bp-footer-social, .bp-footer-apps, .bp-footer::before,
  .bp-footer-stats, .bp-footer-newsletter-form { display: none !important; }
  .bp-footer-heading, .bp-footer-brand, .bp-footer-nav ul li a { color: #000 !important; }
  .bp-skip-link, .bp-mobile-nav, .bp-fab-post { display: none !important; }
}
