/**
 * Fe no Bicho - Footer Styles
 * Arquivo centralizado com todos os estilos do footer
 * Modern design with trust badges and floating WhatsApp
 */

/* ========================================
   FOOTER BASE
   ======================================== */

.footer {
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, #f8f9fa 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ========================================
   FOOTER GRID
   ======================================== */

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

/* ========================================
   BRAND COLUMN
   ======================================== */

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.footer__logo-link {
  display: inline-block;
  width: fit-content;
  transition: transform 0.2s;
}

.footer__logo-link:hover {
  transform: scale(1.02);
}

.footer__logo-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.footer__logo {
  height: 52px;
  width: auto;
}

.footer__description {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 320px;
}

.footer__description strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* ========================================
   SOCIAL LINKS
   ======================================== */

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
  color: var(--color-text-secondary);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.footer__social-link .icon {
  width: 22px;
  height: 22px;
}

.footer__social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.footer__social-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.footer__social-link--whatsapp:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.footer__social-link--telegram:hover {
  background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.35);
}

.footer__social-link--instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.35);
}

/* ========================================
   CONTACT LINK
   ======================================== */

.footer__contact {
  font-style: normal;
  margin-top: var(--spacing-sm);
}

.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.footer__contact-link:hover {
  color: var(--color-primary);
}

.footer__contact-link .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ========================================
   FOOTER COLUMNS
   ======================================== */

.footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  list-style: none;
}

.footer__link {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: all 0.2s;
  padding: var(--spacing-xs) 0;
  position: relative;
}

.footer__link::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid var(--color-primary);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0;
  transition: all 0.2s;
}

.footer__link:hover,
.footer__link:focus {
  color: var(--color-primary);
  padding-left: 16px;
}

.footer__link:hover::before,
.footer__link:focus::before {
  opacity: 1;
  left: 0;
}

.footer__link:focus {
  outline: none;
}

/* ========================================
   TRUST SECTION
   ======================================== */

.footer__trust {
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(90deg, rgba(27, 158, 27, 0.02) 0%, rgba(27, 158, 27, 0.05) 50%, rgba(27, 158, 27, 0.02) 100%);
  border-radius: 10px;
}

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

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.trust__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.trust__icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust__icon-wrapper--green {
  background: linear-gradient(135deg, rgba(27, 158, 27, 0.15) 0%, rgba(27, 158, 27, 0.08) 100%);
  color: var(--color-primary);
}

.trust__icon-wrapper--teal {
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.15) 0%, rgba(0, 150, 136, 0.08) 100%);
  color: #009688;
}

.trust__icon-wrapper--blue {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.08) 100%);
  color: #2196F3;
}

.trust__icon-wrapper--purple {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, rgba(156, 39, 176, 0.08) 100%);
  color: #9C27B0;
}

.trust__icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.trust__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.trust__sublabel {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ========================================
   RESPONSIBLE GAMING
   ======================================== */

.footer__responsible {
  background: rgba(211, 47, 47, 0.05);
  border: 1px solid rgba(211, 47, 47, 0.2);
  border-radius: var(--radius-lg);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.responsible__card {
  background: linear-gradient(145deg, #fff 0%, #fefefe 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(220, 53, 69, 0.15);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.06);
}

.responsible__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.03) 100%);
  border-bottom: 1px solid rgba(220, 53, 69, 0.1);
}

.responsible__badge {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.responsible__age {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.responsible__header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.responsible__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #B91C1C;
  margin: 0;
}

.responsible__subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.responsible__body {
  padding: var(--spacing-lg);
}

.responsible__text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.responsible__link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.responsible__link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.responsible__link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.responsible__help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.responsible__help-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.responsible__help-links {
  display: flex;
  gap: var(--spacing-sm);
}

.responsible__help-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.8125rem;
  color: var(--color-text-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(145deg, #f8f9fa 0%, #f0f0f0 100%);
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.responsible__help-link .icon {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.responsible__help-link:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 158, 27, 0.25);
}

.responsible__help-link:hover .icon {
  stroke: #fff;
}

.responsible__help-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer__copyright strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.footer__badges {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer__badge .icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.footer__badge--age {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.footer__badge--ssl {
  background: linear-gradient(135deg, #1B9E1B 0%, #158A15 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 158, 27, 0.25);
}

/* ========================================
   FLOATING WHATSAPP
   ======================================== */

.floating-whatsapp {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 90;
}

.floating-whatsapp__icon {
  width: 30px;
  height: 30px;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.floating-whatsapp__pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: pulse-whatsapp 2s infinite;
  z-index: -1;
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ========================================
   FLOATING INSTAGRAM
   ======================================== */

.instagram-fab {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 90;
}

/* Quando o FAB de WhatsApp existe, sobe o Instagram pra empilhar acima dele.
   Sem WhatsApp, o seletor não casa e o Instagram fica no rodapé sozinho. */
.floating-whatsapp ~ .instagram-fab {
  bottom: calc(var(--spacing-xl) + 76px);
}

.instagram-fab__icon {
  width: 30px;
  height: 30px;
}

.instagram-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 39, 67, 0.5);
}

.instagram-fab:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1199px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }

  .footer__description {
    max-width: 480px;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__link::before {
    display: none;
  }

  .footer__link:hover,
  .footer__link:focus {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__column {
    align-items: center;
  }

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

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

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

  .responsible__help {
    flex-direction: column;
    align-items: center;
  }

  .responsible__help-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }

  .floating-whatsapp__icon {
    width: 26px;
    height: 26px;
  }

  .instagram-fab {
    width: 54px;
    height: 54px;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }

  .floating-whatsapp ~ .instagram-fab {
    bottom: calc(var(--spacing-md) + 66px);
  }

  .instagram-fab__icon {
    width: 26px;
    height: 26px;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp,
  .instagram-fab,
  .footer__social-link,
  .footer__link,
  .responsible__help-link,
  .trust__item,
  .footer__logo-link {
    transition: none;
  }

  .floating-whatsapp__pulse {
    animation: none;
    display: none;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .footer {
    display: none;
  }

  .floating-whatsapp,
  .instagram-fab {
    display: none;
  }
}
