/* ==========================================================================
   Foxco Footer & Nav Widget  |  v1.0.0  |  foxco.net
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Property Defaults (Foxco Brand)
   -------------------------------------------------------------------------- */
.foxco-footer {
  --ff-bg:         #1a1a2e;
  --ff-bg-sub:     #12121f;
  --ff-text:       #d8d8e8;
  --ff-heading:    #df6737;
  --ff-accent:     #df6737;
  --ff-link:       #c8cce8;
  --ff-link-hover: #df6737;
  --ff-border:     rgba(255,255,255,0.10);
  --ff-badge-bg:   rgba(255,255,255,0.07);
  --ff-badge-icon: #df6737;
  --ff-font:       inherit;
  --ff-radius:     0px;
}

/* --------------------------------------------------------------------------
   Presets
   -------------------------------------------------------------------------- */

/* Dr Guberman */
.foxco-footer[data-preset="dr-guberman"] {
  --ff-bg:         #2670c0;
  --ff-bg-sub:     #1d5ca8;
  --ff-text:       #ffffff;
  --ff-heading:    #f0b429;
  --ff-accent:     #f0b429;
  --ff-link:       #ddeeff;
  --ff-link-hover: #f0b429;
  --ff-border:     rgba(255,255,255,0.22);
  --ff-badge-bg:   rgba(255,255,255,0.15);
  --ff-badge-icon: #f0b429;
}

/* Saleen */
.foxco-footer[data-preset="saleen"] {
  --ff-bg:         #0a0a0a;
  --ff-bg-sub:     #000000;
  --ff-text:       #cccccc;
  --ff-heading:    #e41c23;
  --ff-accent:     #e41c23;
  --ff-link:       #c0c0c0;
  --ff-link-hover: #e41c23;
  --ff-border:     rgba(255,255,255,0.08);
  --ff-badge-bg:   rgba(255,255,255,0.06);
  --ff-badge-icon: #e41c23;
}

/* Modern Minimal */
.foxco-footer[data-preset="modern-minimal"] {
  --ff-bg:         #f5f5f5;
  --ff-bg-sub:     #e8e8e8;
  --ff-text:       #333333;
  --ff-heading:    #111111;
  --ff-accent:     #111111;
  --ff-link:       #444444;
  --ff-link-hover: #111111;
  --ff-border:     rgba(0,0,0,0.12);
  --ff-badge-bg:   rgba(0,0,0,0.06);
  --ff-badge-icon: #111111;
}

/* Artsy Esoteric */
.foxco-footer[data-preset="artsy-esoteric"] {
  --ff-bg:         #120920;
  --ff-bg-sub:     #0b061a;
  --ff-text:       #ddc8f5;
  --ff-heading:    #b388ff;
  --ff-accent:     #ff6b9d;
  --ff-link:       #d4b8ee;
  --ff-link-hover: #b388ff;
  --ff-border:     rgba(180,140,255,0.22);
  --ff-badge-bg:   rgba(180,140,255,0.12);
  --ff-badge-icon: #ff6b9d;
}

/* --------------------------------------------------------------------------
   Footer Base
   -------------------------------------------------------------------------- */
.foxco-footer {
  background-color: var(--ff-bg);
  color: var(--ff-text);
  font-family: var(--ff-font);
  font-size: 0.9rem;
  line-height: 1.7;
  width: 100%;
  box-sizing: border-box;
}

.foxco-footer *,
.foxco-footer *::before,
.foxco-footer *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Trust Badge Strip
   -------------------------------------------------------------------------- */
.foxco-footer__badges {
  background: var(--ff-bg-sub);
  border-bottom: 1px solid var(--ff-border);
  padding: 16px 40px;
}

.foxco-footer__badges-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.foxco-footer__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--ff-badge-bg);
  border: 1px solid var(--ff-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ff-text);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  min-width: 80px;
}

a.foxco-footer__badge:hover {
  background: var(--ff-border);
  border-color: var(--ff-accent);
  transform: translateY(-2px);
  color: var(--ff-text);
}

.foxco-footer__badge-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ff-badge-icon);
}

.foxco-footer__badge-icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

.foxco-footer__badge-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ff-text);
  white-space: nowrap;
}

/* Pill variation */
.foxco-footer__badges--pill .foxco-footer__badge {
  flex-direction: row;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 50px;
}

.foxco-footer__badges--pill .foxco-footer__badge-label {
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Icon-only variation */
.foxco-footer__badges--icon-only .foxco-footer__badge {
  min-width: 60px;
  padding: 10px 14px;
}

/* --------------------------------------------------------------------------
   Main Footer Area
   -------------------------------------------------------------------------- */
.foxco-footer__main {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.foxco-footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.foxco-footer__col {
  flex: 1 1 180px;
  min-width: 0;
}

.foxco-footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ff-heading);
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ff-accent);
  display: inline-block;
}

.foxco-footer__col-content {
  color: var(--ff-text);
}

.foxco-footer__col-content p {
  margin: 0 0 0.75em 0;
  font-size: 0.875rem;
}

/* Link list */
.foxco-footer__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foxco-footer__link-list li {
  margin: 0;
  padding: 0;
}

.foxco-footer .foxco-footer__link-list a {
  color: var(--ff-link) !important;
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  transition: color 0.2s, padding-left 0.2s;
}

.foxco-footer .foxco-footer__link-list a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--ff-accent);
  transition: width 0.2s;
  flex-shrink: 0;
}

.foxco-footer .foxco-footer__link-list a:hover {
  color: var(--ff-link-hover) !important;
  padding-left: 6px;
}

.foxco-footer .foxco-footer__link-list a:hover::before {
  width: 12px;
}

/* Nav Menu (WP output) */
.foxco-footer__nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foxco-footer__nav-menu li {
  margin: 0;
}

.foxco-footer .foxco-footer__nav-menu a {
  color: var(--ff-link) !important;
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
  padding: 3px 0;
  transition: color 0.2s;
}

.foxco-footer .foxco-footer__nav-menu a:hover {
  color: var(--ff-link-hover) !important;
}

.foxco-footer__no-menu {
  font-size: 0.8rem;
  opacity: 0.5;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Sub-footer Bar
   -------------------------------------------------------------------------- */
.foxco-footer__sub {
  background: var(--ff-bg-sub);
  border-top: 1px solid var(--ff-border);
}

.foxco-footer__sub-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foxco-footer__copyright {
  font-size: 0.78rem;
  color: var(--ff-text);
  margin: 0;
}

.foxco-footer__copyright a {
  color: var(--ff-accent);
  text-decoration: none;
}

.foxco-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foxco-footer .foxco-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ff-badge-bg);
  border: 1px solid var(--ff-border);
  color: var(--ff-text) !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.foxco-footer .foxco-footer__social-link:hover {
  background: var(--ff-accent);
  border-color: var(--ff-accent);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.foxco-footer__social-link svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Saleen: carbon fibre / racing feel overrides
   -------------------------------------------------------------------------- */
.foxco-footer[data-preset="saleen"] .foxco-footer__col-title {
  letter-spacing: 0.2em;
}

.foxco-footer[data-preset="saleen"] .foxco-footer__badges {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.02) 3px,
    rgba(255,255,255,0.02) 6px
  ), var(--ff-bg-sub);
}

/* Artsy: gradient background */
.foxco-footer[data-preset="artsy-esoteric"] {
  background: linear-gradient(160deg, #120920 0%, #1a0b35 50%, #0d1a30 100%);
}

.foxco-footer[data-preset="artsy-esoteric"] .foxco-footer__col-title {
  background: linear-gradient(90deg, #b388ff, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom-color: transparent;
  border-image: linear-gradient(90deg, #b388ff, #ff6b9d) 1;
}

/* Modern Minimal: clean underline only */
.foxco-footer[data-preset="modern-minimal"] .foxco-footer__social-link {
  border-radius: 4px;
}

.foxco-footer[data-preset="modern-minimal"] .foxco-footer__badge {
  border-radius: 6px;
}

/* ==========================================================================
   Bottom Nav
   ========================================================================== */

/* --- CSS Custom Property Defaults (Foxco Brand) --- */
.foxco-bottom-nav {
  --bn-bg:        #1a1a2e;
  --bn-text:      rgba(255,255,255,0.55);
  --bn-active:    #df6737;
  --bn-border:    rgba(255,255,255,0.08);
  --bn-badge-bg:  #df6737;
  --bn-badge-txt: #ffffff;
  --bn-height:    64px;
  --bn-icon-size: 22px;
  --bn-label-size: 11px;
}

/* --- Preset: Dr Guberman --- */
.foxco-bottom-nav[data-preset="dr-guberman"] {
  --bn-bg:       #2670c0;
  --bn-text:     #ddeeff;
  --bn-active:   #f0b429;
  --bn-border:   rgba(255,255,255,0.20);
  --bn-badge-bg: #f0b429;
  --bn-badge-txt: #1a1a1a;
}

/* --- Preset: Saleen --- */
.foxco-bottom-nav[data-preset="saleen"] {
  --bn-bg:       #0a0a0a;
  --bn-text:     #c0c0c0;
  --bn-active:   #e41c23;
  --bn-border:   rgba(255,255,255,0.08);
  --bn-badge-bg: #e41c23;
  --bn-badge-txt: #ffffff;
}

/* --- Preset: Modern Minimal --- */
.foxco-bottom-nav[data-preset="modern-minimal"] {
  --bn-bg:       #ffffff;
  --bn-text:     #555555;
  --bn-active:   #1a1a1a;
  --bn-border:   rgba(0,0,0,0.08);
  --bn-badge-bg: #1a1a1a;
  --bn-badge-txt: #ffffff;
  box-shadow: 0 -1px 0 var(--bn-border), 0 -4px 20px rgba(0,0,0,0.08);
}

/* --- Preset: Artsy Esoteric --- */
.foxco-bottom-nav[data-preset="artsy-esoteric"] {
  --bn-bg:       #120920;
  --bn-text:     #d4b8ee;
  --bn-active:   #b388ff;
  --bn-border:   rgba(180,140,255,0.20);
  --bn-badge-bg: #ff6b9d;
  --bn-badge-txt: #ffffff;
}

/* --- Base Styles --- */
.foxco-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: var(--bn-height);
  background: var(--bn-bg);
  border-top: 1px solid var(--bn-border);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.20);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.foxco-bottom-nav--mobile-only {
  display: none;
}

/* --- Nav Items --- */
.foxco-bottom-nav .foxco-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--bn-text) !important;
  text-decoration: none;
  font-size: var(--bn-label-size);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  padding: 8px 4px;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.foxco-bottom-nav .foxco-bottom-nav__item.active,
.foxco-bottom-nav .foxco-bottom-nav__item:hover {
  color: var(--bn-active) !important;
}

.foxco-bottom-nav .foxco-bottom-nav__item.active .foxco-bottom-nav__icon::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--bn-active);
  border-radius: 50%;
}

/* --- Icon --- */
.foxco-bottom-nav__icon {
  position: relative;
  font-size: var(--bn-icon-size);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foxco-bottom-nav__icon svg {
  width: var(--bn-icon-size);
  height: var(--bn-icon-size);
  fill: currentColor;
}

/* --- Label --- */
.foxco-bottom-nav__label {
  font-size: var(--bn-label-size);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* --- Cart Badge --- */
.foxco-bottom-nav__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--bn-badge-bg);
  color: var(--bn-badge-txt);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  white-space: nowrap;
  display: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Show mobile-only bottom nav */
  .foxco-bottom-nav--mobile-only {
    display: flex;
  }

  .foxco-footer__main {
    padding: 40px 24px;
  }

  .foxco-footer__badges {
    padding: 14px 24px;
  }

  .foxco-footer__badges-inner {
    gap: 8px 16px;
  }

  .foxco-footer__badge {
    min-width: 68px;
    padding: 8px 12px;
  }

  .foxco-footer__sub-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px;
  }
}

@media (max-width: 480px) {
  .foxco-footer__columns {
    flex-direction: column;
    gap: 32px;
  }

  .foxco-footer__col {
    flex: none;
    width: 100%;
  }

  .foxco-footer__main {
    padding: 32px 20px;
  }

  .foxco-footer__sub-inner {
    padding: 16px 20px;
  }

  .foxco-footer__badges {
    padding: 12px 20px;
  }

  .foxco-footer__badge-label {
    font-size: 0.6rem;
  }
}

@media (min-width: 768px) {
  /* Tablet: 2-column badges if 3+ badges */
  .foxco-footer__badges-inner {
    gap: 10px 32px;
  }
}
