/**
 * Style CSS - Paczka 100 Nisz dla Amazon KDP
 * Autor: Damian Zajfert / Profity Online
 */

/* ==========================================================================
   Base & Reset
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* Offset for sticky header (88px) */
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ukrycie paska przewijania przy zachowaniu funkcjonalności */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f9ff;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Nawigacja & Sticky Header
   ========================================================================== */
header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 20px -2px rgba(16, 24, 40, 0.08), 0 2px 6px -1px rgba(16, 24, 40, 0.04) !important;
  border-bottom: 1px solid rgba(234, 236, 240, 0.8);
}

/* Animacja ikony hamburgera */
.hamburger-line {
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger-open .hamburger-line-1 {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-open .hamburger-line-2 {
  opacity: 0;
}

.hamburger-open .hamburger-line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menu mobilne */
#mobile-menu {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#mobile-menu.menu-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

#mobile-menu.menu-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Aktywny link w menu */
.nav-link.active {
  color: #fd7d15 !important;
  font-weight: 700 !important;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fd7d15;
  border-radius: 9999px;
}

/* ==========================================================================
   Animacje Fade-In (Intersection Observer)
   ========================================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Wyłączenie animacji w przypadku preferencji użytkownika */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Akordeon FAQ
   ========================================================================== */
.faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.faq-content {
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.3s ease;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Mikrointerakcje & Dostępność
   ========================================================================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #fd7d15;
  outline-offset: 3px;
}

.card-hover-effect {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-hover-effect:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   Wyrównanie kart cenowych na komputerze
   ========================================================================== */
@media (min-width: 1024px) {
  .pricing-card-header {
    display: flex;
    flex-direction: column;
    min-height: 220px;
  }
  .pricing-card-title {
    min-height: 72px;
  }
}

/* ==========================================================================
   Układ kart w sekcji bonusów (3 w pierwszym rzędzie, 2 wyśrodkowane w drugim)
   ========================================================================== */
.bonus-card {
  width: 100%;
}

@media (min-width: 768px) {
  .bonus-card {
    width: calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .bonus-card {
    width: calc(33.333% - 16px);
  }
}

/* ==========================================================================
   Modal powiększenia PDF (Lightbox)
   ========================================================================== */
#pdf-modal.modal-open {
  display: flex !important;
  animation: modalFadeIn 0.25s ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


