/* Volkin Reborn — Components: Windows, Buttons, Popups, Shop */

/* ========================================
   4. OKNA GŁÓWNE (main-window)
   Duże kontenery sekcji
   ======================================== */
.main-window {
  position: relative;
  background: var(--main-window-bg);
  backdrop-filter: blur(var(--main-window-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--main-window-blur)) saturate(180%);
  border: 1px solid var(--main-window-border);
  border-radius: var(--main-window-radius);
  box-shadow: var(--main-window-shadow);
  padding: var(--main-window-padding);
  overflow: hidden;
  z-index: 1;

  transition:
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);

  /* Magnetic effect data */
  --magnetic-strength: var(--magnetic-main-window);
}

.main-window:hover {
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    var(--hover-glow-lg);
  border-color: var(--hover-border-lg);
}

/* Wariant: Hero - pełna szerokość, bez ramki */
.main-window--hero {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  padding-top: 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Klasy pomocnicze - eliminacja inline styles */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hero-title { font-size: 3.5rem; }
.hero-subtitle { font-size: 1.25rem; opacity: 0.8; max-width: 600px; margin: 0 auto; }
.hero-subtitle--spaced { margin-bottom: 2.5rem; }
.pos-relative { position: relative; }
.z-1 { position: relative; z-index: 1; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 1rem; }

/* Statystyki */
.stat-value { font-size: 2.5rem; font-weight: 800; }
.stat-label { font-size: 0.875rem; color: #6b7280; }

/* Stat modifiers for shop cards (dark backgrounds) */
.stat-value--allegro { color: #f97316; }
.stat-label--on-dark { color: rgba(255, 255, 255, 0.6); }

/* Section variants */
.section--overflow-hidden { overflow: hidden; }
.section--shop { overflow: visible; padding-bottom: 6rem; }

/* Section header pattern */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header--sm { text-align: center; margin-bottom: 2rem; }

/* Hero stats grid */
.hero-stats { max-width: 800px; margin: 4rem auto 0; }

/* Hero button min-width */
.btn--hero { min-width: 140px; }

/* Shop card backgrounds */
.shop-card--allegro { background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%); }
.shop-card--sklep { background: linear-gradient(135deg, #1a1a2e 0%, #0f1b33 100%); }

/* Shop card icon boxes */
.shop-card__icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Inter', sans-serif;
}
.shop-card__icon-box--allegro { background: #ff5a00; }
.shop-card__icon-box--volkin { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); }

/* Shop card logo colors */
.shop-card__logo--allegro { color: #ff5a00; }

/* Contact section inline style replacements */
.contact-content { color: white; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-padding { padding: 4rem; }
.rodo-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4b5563;
}
.dark .rodo-label { color: #9ca3af; }
.btn--submit {
  width: 195px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px auto 0;
}
.btn__icon-right {
  position: absolute;
  right: 20px;
}
.text-nowrap { white-space: nowrap; }

/* Footer single column */
.footer__grid--single { grid-template-columns: 1fr; }

/* Opinie / Testimonials — patrz sekcja ALLEGRO OPINIONS niżej */

/* Feature cards */
.feature-card { display: flex; gap: 1rem; align-items: center; }
.feature-title { font-weight: 700; margin-bottom: 0.25rem; font-size: 1rem; }
.feature-desc { font-size: 0.875rem; color: #6b7280; margin: 0; }

/* Allegro sekcja - okienka na ciemnym tle */
.inner-window.inner-window--dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.inner-window.inner-window--dark:hover {
  background: rgba(255,255,255,0.10);
}

/* ========================================
   SHOP SECTION - Dots + Cards
   ======================================== */

/* Pagination Dots */
.shop-dots-container {
  margin-top: -2rem;
}

.shop-dots {
  display: inline-flex;
  gap: 0.75rem;
  padding: 0.5rem;
}

.shop-dots__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-dots__dot:hover {
  transform: scale(1.2);
  background: rgba(0, 0, 0, 0.4);
}

.shop-dots__dot--active {
  transform: scale(1.3);
}

/* Kolory kropek dla różnych kart */
.shop-dots[data-active="allegro"] .shop-dots__dot--active {
  background: linear-gradient(135deg, #f97316, #fb923c);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.5);
}

.shop-dots[data-active="b2b"] .shop-dots__dot--active {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}

.shop-dots[data-active="sklep"] .shop-dots__dot--active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 2px 8px rgba(68, 136, 239, 0.5);
}

/* Cards Container - full width, wychodzi poza kontener */
.shop-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Padding dla cieni i centrowania */
  padding: 3.5rem 0 4rem;
  padding-left: calc((100% - min(100% - 3rem, 1200px)) / 2);
  padding-right: calc((100% - min(100% - 3rem, 1200px)) / 2);
  padding-left: calc((100dvw - min(100dvw - 3rem, 1200px)) / 2);
  padding-right: calc((100dvw - min(100dvw - 3rem, 1200px)) / 2);
}

.shop-cards::-webkit-scrollbar {
  display: none;
}

/* Shop Card - szerokość = container (1200px - 3rem padding) */
.shop-card.main-window {
  flex: 0 0 auto;
  width: calc(100% - 3rem);
  width: calc(100dvw - 3rem);
  max-width: calc(1200px - 3rem);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: var(--main-window-padding);
  border-radius: var(--main-window-radius);
}

/* Desktop: szerokość karty = container */
@media (min-width: 1248px) {
  .shop-cards {
    padding-left: calc((100% - (1200px - 3rem)) / 2);
    padding-right: calc((100% - (1200px - 3rem)) / 2);
    padding-left: calc((100dvw - (1200px - 3rem)) / 2);
    padding-right: calc((100dvw - (1200px - 3rem)) / 2);
  }

  .shop-card.main-window {
    width: calc(1200px - 3rem);
  }
}

.shop-card__content {
  text-align: center;
  padding: 2rem 1rem;
}

.shop-card__logo {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.shop-card__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.shop-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Ujednolicone okienka statystyk w kartach */
.shop-card__stats .inner-window--stat {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1rem;
}

.shop-card__stats .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.shop-card__stats .stat-label {
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
}

.shop-card__cta {
  color: white;
  border: none;
}

/* Badge'e statusów na kartach — grid 3-kolumnowy jak statystyki */
.shop-card__badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.shop-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--inner-window-radius, 16px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.shop-badge--gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.2));
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.shop-badge--smart {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.2));
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.shop-badge--verified {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.2));
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.shop-badge--brand {
  background: linear-gradient(135deg, rgba(68, 136, 239, 0.15), rgba(38, 86, 220, 0.2));
  color: #A8C4FF;
  border: 1px solid rgba(68, 136, 239, 0.3);
}

/* Responsywność - na większych ekranach */
@media (min-width: 768px) {
  .shop-card__content {
    padding: 3rem 2rem;
  }
}

/* Dark mode dla nowych klas */
.dark .stat-label { color: #9ca3af; }
.dark .feature-desc { color: #9ca3af; }

.main-window--hero:hover,
.dark .main-window--hero:hover {
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Hero nie ma tła/ramki — glow jest zbędny */
.main-window--hero .glow-effect {
  display: none;
}


/* Wariant: Sekcja z gradientem */
.main-window--gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  backdrop-filter: none;
  border: none;
  box-shadow:
    0 12px 50px rgba(68, 136, 239, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.main-window--gradient:hover {
  box-shadow:
    0 16px 60px rgba(68, 136, 239, 0.4),
    0 6px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Cursor glow - subtelna poświata */
.main-window .glow-effect {
  position: absolute;
  width: var(--cursor-glow-size);
  height: var(--cursor-glow-size);
  background: radial-gradient(circle, var(--cursor-glow-color) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(20px);
}

/* .main-window:hover .glow-effect — kontrolowane przez JS (CursorGlow) */


/* ========================================
   5. OKIENKA WEWNĘTRZNE (inner-window)
   Karty, boxy, mniejsze kontenery
   ======================================== */
.inner-window {
  position: relative;
  background: var(--inner-window-bg);
  backdrop-filter: blur(var(--inner-window-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--inner-window-blur)) saturate(180%);
  border: 1px solid var(--inner-window-border);
  border-radius: var(--inner-window-radius);
  box-shadow: var(--inner-window-shadow);
  padding: var(--inner-window-padding);
  overflow: hidden;

  transition:
    background var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-magnetic);

  /* Magnetic effect data */
  --magnetic-strength: var(--magnetic-inner-window);
}

.inner-window:hover {
  background: var(--inner-window-bg-hover);
  border-color: var(--hover-border-sm);
  box-shadow: var(--inner-window-shadow-hover);
}

/* Warianty */
.inner-window--stat {
  padding: 1.5rem 2rem;
  text-align: center;
}

.inner-window--testimonial {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.inner-window--form {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
}

/* Cursor glow - subtelna poświata */
.inner-window .glow-effect {
  position: absolute;
  width: var(--cursor-glow-size);
  height: var(--cursor-glow-size);
  background: radial-gradient(circle, rgba(68, 136, 239, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(30px);
}

/* .inner-window:hover .glow-effect — kontrolowane przez JS (CursorGlow) */


/* ========================================
   6. PRZYCISKI (btn)
   ======================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-padding);

  background: var(--btn-bg);
  backdrop-filter: blur(var(--btn-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--btn-blur)) saturate(180%);
  border: 1px solid var(--btn-border);
  border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow);

  font-weight: 600;
  font-size: 0.875rem;
  color: #1a1a2e;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-magnetic);

  /* Magnetic effect data */
  --magnetic-strength: var(--magnetic-btn);
}

.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  box-shadow: var(--btn-shadow-hover);
}

.btn:active {
  transform: scale(0.98);
}

/* Wariant: Primary */
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: white;
  box-shadow:
    0 4px 20px rgba(68, 136, 239, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  /* Zachowaj gradient - nie pozwól ogólnemu .btn:hover nadpisać */
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
  color: white;
  box-shadow:
    0 8px 32px rgba(68, 136, 239, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 40px rgba(68, 136, 239, 0.3);
}

/* Wariant: Secondary/Ghost */

/* Wariant: Allegro (pomarańczowy) */
.btn--allegro {
  background: linear-gradient(135deg, #FF5A00, #FF8C00);
  border: none;
  color: white;
  box-shadow:
    0 4px 20px rgba(255, 90, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--allegro:hover {
  background: linear-gradient(135deg, #E55000, #FF7800);
  color: white;
  box-shadow:
    0 8px 32px rgba(255, 90, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 90, 0, 0.3);
}

.btn--allegro .glow-effect {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

/* Wariant: Temu (coming soon — wygaszony) */
.btn--temu {
  background: linear-gradient(135deg, rgba(224, 67, 23, 0.25), rgba(255, 100, 50, 0.18));
  border: 1.5px dashed rgba(224, 67, 23, 0.4);
  color: rgba(224, 67, 23, 0.55);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  position: relative;
  overflow: visible;
}

.btn--temu .glow-effect {
  display: none;
}

.btn--temu .btn-coming-soon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #E04317, #FF6432);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(224, 67, 23, 0.4);
  animation: temu-pulse 2.5s ease-in-out infinite;
}

@keyframes temu-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.dark .btn--temu {
  background: linear-gradient(135deg, rgba(224, 67, 23, 0.15), rgba(255, 100, 50, 0.1));
  border-color: rgba(224, 67, 23, 0.3);
  color: rgba(224, 67, 23, 0.45);
}

/* Wariant: B2B (niebieski) */
.btn--b2b {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border: none;
  color: white;
  box-shadow:
    0 4px 20px rgba(59, 130, 246, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--b2b:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  box-shadow:
    0 8px 32px rgba(59, 130, 246, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 40px rgba(59, 130, 246, 0.3);
}

.btn--b2b .glow-effect {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

/* Wariant: Pill (zaokrąglony) */
.btn--pill {
  border-radius: var(--btn-radius-pill);
}

/* Wariant: Large */
.btn--lg {
  padding: var(--btn-padding-lg);
  font-size: 0.9375rem;
}

/* Cursor glow - subtelna poświata */
.btn .glow-effect {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(15px);
}

/* .btn:hover .glow-effect — kontrolowane przez JS (CursorGlow) */

.btn--primary .glow-effect {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}


/* ========================================
   7. POPUPY PRZYCISKÓW (btn-popup)
   Dropdown, tooltip, menu
   ======================================== */

