/**
 * Footer Cookies CSS - Stopka z zarządzaniem cookies
 * Bazuje na .app-footer z main.css
 * Mobile breakpoint: 1350px (jak w main.css)
 */

/* ===== PODSTAWOWA STOPKA Z COOKIE MANAGEMENT ===== */
.help-footer {
  background-color: #322D29; /* var(--primary-dark) z main.css */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px; /* var(--spacing-lg) */
  font-size: 12px; /* Zmniejszone o 20% z 14px na 11px */
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Montserrat', sans-serif;
  
  /* Desktop - fixed na dole */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 100;
}

.help-footer .footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}

.help-footer .copyright-line {
  font-size: 12px; /* Zmniejszone o 20% z 13px na 10px */
}

/* Stylizacja linku e-mail w copyright */
.help-footer .footer-copyright a {
  color: white;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.help-footer .footer-copyright a:hover {
  color: #D1C7BD; /* var(--primary-light) */
  text-decoration: underline;
}

.help-footer .footer-links {
  display: flex;
  gap: 24px; /* var(--spacing-lg) */
  align-items: center;
}

/* Kontener dla linków polityk - domyślnie obok siebie */
.help-footer .policy-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.help-footer .footer-link {
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.help-footer .footer-link:hover {
  text-decoration: underline;
  color: white;
  transform: translateY(-1px);
}

/* Specjalny styl dla cookie management link */
.help-footer .cookie-manage-link {
  background: rgba(138, 70, 75, 0.3); /* rgba(primary-light, 0.3) */
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(138, 70, 75, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
}

.help-footer .cookie-manage-link:hover {
  background: rgba(138, 70, 75, 0.5);
  border-color: rgba(138, 70, 75, 0.8);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(138, 70, 75, 0.2);
}

/* Dodaj przestrzeń na dole dla stron z fixed footer */
.help-content {
  padding-bottom: 80px; /* 60px footer + 20px margines */
}

/* ===== RESPONSIVE - MOBILE 1350px (jak w main.css) ===== */
@media (max-width: 1350px) {
  .help-footer {
    /* Mobile - relative positioning, nie fixed */
    position: relative;
    height: auto;
    padding: 16px; /* var(--spacing-md) */
    flex-direction: column;
    gap: 12px; /* var(--spacing-md) */
    text-align: center;
    background-color: #322D29; /* Zachowaj ten sam kolor co desktop */
  }

  .help-footer .footer-copyright {
    text-align: center;
    order: 1; /* Copyright na górze */
  }

  .help-footer .footer-links {
    /* POPRAWKA: Linki polityk obok siebie, nie pod sobą */
    flex-direction: row;
    gap: 16px;
    width: 100%;
    order: 2; /* Linki polityk w środku */
    justify-content: center;
    flex-wrap: wrap;
  }

  /* POPRAWKA: Separatory widoczne i stylizowane */
  .help-footer .footer-links .separator {
    display: inline;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
  }

  /* POPRAWKA: Wyodrębnij cookie management do osobnej linii */
  .help-footer .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Kontener dla linków polityk - obok siebie */
  .help-footer .policy-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
  }

  /* Cookie management link na mobile - pełna szerokość w osobnej linii */
  .help-footer .cookie-manage-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 4px;
  }

  /* Usuń padding-bottom na mobile - stopka nie jest fixed */
  .help-content {
    padding-bottom: 20px; /* Tylko podstawowy margines */
  }
}

/* ===== DODATKOWE STYLE DLA LEPSZEGO UX ===== */

/* Animacja dla cookie management button */
@keyframes cookiePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.help-footer .cookie-manage-link.highlight {
  animation: cookiePulse 2s infinite;
  background: rgba(138, 70, 75, 0.3); /* var(--secondary-color) */
  border-color: rgba(138, 70, 75, 0.5);
}

.help-footer .cookie-manage-link.highlight:hover {
  background: rgba(138, 70, 75, 0.5);
  border-color: rgba(138, 70, 75, 0.8);
}

/* Style dla separatorów w linkach */
.help-footer .footer-links .separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
  user-select: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .help-footer {
    background-color: #0f1419;
    border-top: 1px solid #2a3441;
  }
  
  .help-footer .cookie-manage-link {
    background: rgba(138, 70, 75, 0.4);
    border-color: rgba(138, 70, 75, 0.6);
  }
  
  .help-footer .cookie-manage-link:hover {
    background: rgba(138, 70, 75, 0.6);
    border-color: rgba(138, 70, 75, 1);
  }
}

/* ===== ACCESSIBILITY ===== */
.help-footer .footer-link:focus,
.help-footer .cookie-manage-link:focus {
  outline: 2px solid rgba(138, 70, 75, 0.8);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .help-footer .footer-link,
  .help-footer .cookie-manage-link {
    transition: none;
  }
  
  .help-footer .cookie-manage-link.highlight {
    animation: none;
  }
}