/* ==========================================================================
   footer.css - Styles for the Elegant Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-primary-dark); /* Rich deep magenta/wine */
  color: var(--color-bg-alt);
  margin-top: var(--space-12);
  position: relative;
}

/* Decorative Gradient Bar using logo accent colors */
.footer-decoration {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--color-primary-light) 0%,
    var(--color-accent-yellow) 33%,
    var(--color-accent-blue) 66%,
    var(--color-primary-light) 100%
  );
}

.footer-content {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography Overrides for Dark Background */
.footer-heading {
  color: var(--color-white);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-2);
}

/* Elegant tiny underline for headings */
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent-yellow);
}

.footer-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-loose);
}

.brand-name-footer {
  font-size: var(--font-size-2xl);
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Footer Navigation Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
  transition:
    color var(--transition-fast),
    padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: var(--space-1); /* Subtle indent on hover */
}

/* Social Icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--color-accent-yellow);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Newsletter Input Group (Innovative nested design) */
.input-group {
  display: flex;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--color-accent-yellow);
  background: rgba(255, 255, 255, 0.15);
}

.input-group input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--color-white);
  padding-left: var(--space-4);
  box-shadow: none; /* Override defaults */
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
  box-shadow: none;
}

.btn-subscribe {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  padding: var(--space-2) var(--space-5);
  margin: 0;
}

.btn-subscribe:hover {
  background-color: var(--color-accent-yellow);
  color: var(--color-primary-dark);
}

/* Footer Bottom (Copyright & Legal) */
.footer-bottom {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
}

.legal-links a {
  color: rgba(255, 255, 255, 0.5);
}

.legal-links a:hover {
  color: var(--color-white);
}

/* Desktop Flex Override for Bottom Bar */
@media (min-width: 768px) {
  .md-flex-row {
    flex-direction: row;
  }
}

/* ==========================================================================
   Mobile Bottom Navigation (App Style)
   ========================================================================== */

/* Hidden by default on Desktop */
.bottom-nav {
  display: none;
}

/* Show only when the mobile hamburger toggle appears (991px and below) */
@media (max-width: 991px) {
  /* 1. Hide the Footer on Mobile */
  .site-footer {
    display: none !important;
  }

  /* 2. Add bottom padding to the body so the very last content 
          doesn't hide behind the fixed navigation bar */
  body {
    padding-bottom: 75px;
  }

  /* 3. Bottom Nav Bar Styling */
  /* ==========================================================================
   Bottom Navigation CSS
   ========================================================================== */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); /* Supports iPhone notch area */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
    z-index: 1000;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--color-text-light, #888); /* Inactive color */
    flex: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .bottom-nav-item i {
    font-size: 1.3rem;
    transition:
      transform 0.3s ease,
      color 0.3s ease;
  }

  .bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  /* --- THE ACTIVE STATE --- */
  .bottom-nav-item.active {
    color: var(--color-primary, #bc2865); /* Your brand color */
  }

  .bottom-nav-item.active i {
    color: var(--color-primary, #bc2865);
    transform: translateY(-2px) scale(1.15); /* Slight "pop up" effect */
  }

  .bottom-nav-item.active span {
    color: var(--color-primary-dark, #8a1d4a);
    font-weight: 700;
  }

  /* Cart Badge Container */
  .bottom-nav-icon-wrap {
    position: relative;
    display: flex;
  }

  /* Tiny precise badge for the bottom nav */
  .bottom-cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: var(--color-accent-yellow);
    color: var(--color-black);
    font-size: 0.55rem;
    font-weight: var(--font-weight-bold);
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
  }
}
