/**
 * Premium Footer Styles
 * Using WordPress theme.json design system variables
 *
 * @package Kosmetix
 */

/* ============================================
   FOOTER MAIN CONTAINER
   ============================================ */
.kosmetix-footer {
  background: var(--wp--preset--color--charcoal);
  color: rgba(255, 255, 255, 0.85) !important; /* Force high visibility */
  font-size: var(--wp--preset--font-size--sm);
  line-height: var(--wp--custom--line-height--relaxed);
}

.kosmetix-footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--wp--preset--spacing--md);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.footer-newsletter {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  padding: var(--wp--preset--spacing--xl) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--lg);
  flex-wrap: wrap;
}

.footer-newsletter__icon {
  font-size: var(--wp--preset--font-size--4xl);
  color: var(--wp--preset--color--rose-gold);
  background: rgba(183, 110, 121, 0.1);
  padding: var(--wp--preset--spacing--sm);
  border-radius: var(--wp--custom--radius--pill);
}

.footer-newsletter__text {
  text-align: left;
}

.footer-newsletter__title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--xl);
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
  color: var(--wp--preset--color--white) !important;
  margin: 0 0 var(--wp--preset--spacing--3xs);
}

.footer-newsletter__desc {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-newsletter__form {
  display: flex;
  gap: var(--wp--preset--spacing--2xs);
  max-width: 400px;
  flex: 1;
}

.footer-newsletter__form input[type='email'] {
  flex: 1;
  padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--wp--custom--radius--md);
  color: var(--wp--preset--color--white);
  font-size: var(--wp--preset--font-size--base);
  transition: all var(--wp--custom--transition--fast);
}

.footer-newsletter__form input[type='email']::placeholder {
  color: var(--wp--preset--color--slate);
}

.footer-newsletter__form input[type='email']:focus {
  outline: none;
  border-color: var(--wp--preset--color--rose-gold);
  background: rgba(255, 255, 255, 0.12);
}

.footer-newsletter__btn {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--2xs);
  padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md);
  background: var(--wp--preset--gradient--rose-gold-shimmer);
  border: none;
  border-radius: var(--wp--custom--radius--md);
  color: var(--wp--preset--color--white);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--wp--custom--transition--normal);
  white-space: nowrap;
}

.footer-newsletter__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--wp--custom--shadow--glow);
}

.footer-newsletter__btn .material-symbols-outlined {
  font-size: var(--wp--preset--font-size--lg);
}

.footer-newsletter__privacy {
  text-align: center;
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--slate);
  margin-top: var(--wp--preset--spacing--sm);
}

.footer-newsletter__privacy a {
  color: var(--wp--preset--color--rose-gold-light);
  text-decoration: underline;
}

/* ============================================
   TRUST BADGES SECTION
   ============================================ */
.footer-trust {
  padding: var(--wp--preset--spacing--lg) 0;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wp--preset--spacing--lg);
}

.footer-trust__item {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--sm);
  justify-content: center;
}

.footer-trust__item .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--wp--preset--color--rose-gold);
}

.footer-trust__text {
  text-align: left;
}

.footer-trust__text strong {
  display: block;
  color: var(--wp--preset--color--white);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
}

.footer-trust__text span {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--wp--preset--font-size--xs);
}

/* ============================================
   MAIN FOOTER LINKS (SITEMAP)
   ============================================ */
.footer-main {
  padding: var(--wp--preset--spacing--2xl) 0 var(--wp--preset--spacing--xl);
}

.footer-main__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wp--preset--spacing--xl);
}

.footer-main__title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 var(--wp--preset--spacing--md);
  padding-bottom: var(--wp--preset--spacing--xs);
  border-bottom: 2px solid var(--wp--preset--color--rose-gold);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: var(--wp--custom--letter-spacing--wider);
}

.footer-main__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-main__list li {
  margin-bottom: var(--wp--preset--spacing--xs);
}

.footer-main__list a {
  color: var(--wp--preset--color--mist) !important;
  text-decoration: none;
  transition: all var(--wp--custom--transition--fast);
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--3xs);
}

.footer-main__list a:hover {
  color: var(--wp--preset--color--rose-gold-light) !important;
}

.footer-main__link--all {
  color: var(--wp--preset--color--rose-gold) !important;
  font-weight: 600;
  margin-top: var(--wp--preset--spacing--2xs);
}

.footer-main__link--all .material-symbols-outlined {
  font-size: var(--wp--preset--font-size--base);
  transition: transform var(--wp--custom--transition--fast);
}

.footer-main__link--all:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* Contact List with Icons */
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--xs);
  color: var(--wp--preset--color--mist);
}

.footer-contact-list .material-symbols-outlined {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--rose-gold);
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.footer-social {
  display: flex;
  gap: var(--wp--preset--spacing--xs);
  margin-top: var(--wp--preset--spacing--md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--wp--custom--radius--pill);
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--wp--custom--transition--normal);
}

.footer-social a:hover {
  background: var(--wp--preset--color--rose-gold);
  border-color: var(--wp--preset--color--rose-gold);
  color: var(--wp--preset--color--white);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================
   BOTTOM BAR
   ============================================ */
.footer-bottom {
  padding: var(--wp--preset--spacing--md) 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--md);
}

.footer-bottom__payments {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--sm);
}

.footer-bottom__label {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--wp--preset--font-size--xs);
}

.footer-payment-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-payment-icons img {
  height: 28px;
  width: auto;
  filter: brightness(1.2);
  opacity: 0.9;
  transition: all var(--wp--custom--transition--normal);
}

.footer-payment-icons img:hover {
  filter: none;
  opacity: 1;
}

.footer-bottom__copyright {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--wp--preset--font-size--xs);
}

.footer-bottom__copyright p {
  margin: 0;
}

.footer-bottom__legal {
  display: flex;
  gap: var(--wp--preset--spacing--md);
}

.footer-bottom__legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: var(--wp--preset--font-size--xs);
  transition: color var(--wp--custom--transition--fast);
}

.footer-bottom__legal a:hover {
  color: var(--wp--preset--color--rose-gold-light);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--wp--preset--color--rose-gold);
  color: var(--wp--preset--color--white);
  border: none;
  border-radius: var(--wp--custom--radius--md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--wp--custom--transition--normal);
  box-shadow: var(--wp--custom--shadow--sm);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--wp--preset--color--rose-gold-dark);
  box-shadow: var(--wp--custom--shadow--glow);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
  box-shadow: var(--wp--custom--shadow--xs);
}

.back-to-top .material-symbols-outlined {
  font-size: 24px;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 991px) {
  .footer-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--preset--spacing--lg);
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 767px) {
  .footer-newsletter__content {
    flex-direction: column;
    text-align: center;
  }

  .footer-newsletter__text {
    text-align: center;
  }

  .footer-newsletter__form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .footer-trust__grid {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--md);
  }

  .footer-trust__item {
    justify-content: flex-start;
  }

  .footer-main__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--wp--preset--spacing--lg);
  }

  .footer-main__title {
    display: block;
  }

  .footer-main__list a:hover {
    padding-left: 0;
  }

  .footer-contact-list li {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom__grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom__payments {
    flex-direction: column;
  }

  .footer-bottom__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--wp--preset--spacing--sm);
  }

  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ============================================
   HIDE DEFAULT STOREFRONT FOOTER
   ============================================ */
.site-footer:not(.kosmetix-footer) {
  display: none !important;
}
