/* ==========================================================================
   SPRYTNA PACZKA - UX ENHANCEMENTS
   Mobile sticky bar, calculator improvements, navigation
   ========================================================================== */

/* ==========================================================================
   MOBILE STICKY BOTTOM BAR
   ========================================================================== */

.sp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  display: none;
  gap: 10px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

@media (max-width: 1023px) {
  .sp-sticky-bar {
    display: flex;
  }
  
  /* Add padding to body to prevent content being hidden */
  body {
    padding-bottom: 80px;
  }
}

.sp-sticky-bar.hidden {
  transform: translateY(100%);
}

.sp-sticky-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.15s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.sp-sticky-btn--primary {
  background: #FFD000;
  color: #0A0A0A;
  border-color: #FFD000;
}

.sp-sticky-btn--primary:hover,
.sp-sticky-btn--primary:active {
  background: #FFE033;
  border-color: #FFE033;
}

.sp-sticky-btn--secondary {
  background: #0A0A0A;
  color: white;
  border-color: #0A0A0A;
}

.sp-sticky-btn--secondary:hover,
.sp-sticky-btn--secondary:active {
  background: #1A1A1A;
  border-color: #1A1A1A;
}

.sp-sticky-btn--phone {
  flex: 0 0 52px;
  width: 52px;
  padding: 14px;
  background: white;
  border-color: #e5e5e5;
  color: #0A0A0A;
}

.sp-sticky-btn--phone:hover {
  border-color: #FFD000;
  background: #FFFDF7;
}

.sp-sticky-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   CALCULATOR RESULT BOX
   ========================================================================== */

.sp-calc-result {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #FFFDF7 0%, #FFF9E6 100%);
  border: 2px solid #FFD000;
  border-radius: 16px;
  animation: slideUp 0.3s ease;
}

.sp-calc-result.visible {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-calc-result__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 208, 0, 0.3);
}

.sp-calc-result__icon {
  width: 48px;
  height: 48px;
  background: #FFD000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-calc-result__icon svg {
  width: 24px;
  height: 24px;
  color: #0A0A0A;
}

.sp-calc-result__title {
  font-size: 14px;
  font-weight: 600;
  color: #525252;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sp-calc-result__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.sp-calc-result__price-box {
  flex: 1;
  min-width: 140px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.sp-calc-result__price-label {
  font-size: 12px;
  color: #737373;
  margin-bottom: 4px;
}

.sp-calc-result__price-value {
  font-size: 32px;
  font-weight: 800;
  color: #0A0A0A;
  line-height: 1;
}

.sp-calc-result__price-value small {
  font-size: 18px;
  font-weight: 600;
}

.sp-calc-result__price-note {
  font-size: 11px;
  color: #A3A3A3;
  margin-top: 4px;
}

.sp-calc-result__includes {
  margin-bottom: 20px;
}

.sp-calc-result__includes-title {
  font-size: 13px;
  font-weight: 700;
  color: #0A0A0A;
  margin-bottom: 10px;
}

.sp-calc-result__includes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-calc-result__includes-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border-radius: 20px;
  font-size: 13px;
  color: #404040;
  border: 1px solid #e5e5e5;
}

.sp-calc-result__includes-item svg {
  width: 14px;
  height: 14px;
  color: #22C55E;
}

.sp-calc-result__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .sp-calc-result__cta {
    flex-direction: row;
  }
}

.sp-calc-result__disclaimer {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-size: 12px;
  color: #737373;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sp-calc-result__disclaimer svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #A3A3A3;
}

/* ==========================================================================
   CENNIK - QUICK NAVIGATION
   ========================================================================== */

.sp-cennik-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px;
  background: #FFFDF7;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.sp-cennik-nav__title {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.sp-cennik-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #404040;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sp-cennik-nav__item:hover {
  border-color: #FFD000;
  background: #FFF9E6;
  color: #0A0A0A;
}

.sp-cennik-nav__item--popular {
  background: #FFD000;
  border-color: #FFD000;
  color: #0A0A0A;
}

/* ==========================================================================
   TRACKING - HELP SECTION
   ========================================================================== */

.sp-tracking-help {
  margin-top: 32px;
  padding: 24px;
  background: #FFFDF7;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
}

.sp-tracking-help__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #0A0A0A;
  margin-bottom: 16px;
}

.sp-tracking-help__title svg {
  width: 20px;
  height: 20px;
  color: #FFD000;
}

.sp-tracking-help__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-tracking-help__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
}

.sp-tracking-help__item-icon {
  width: 32px;
  height: 32px;
  background: #FFF9E6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-tracking-help__item-icon svg {
  width: 16px;
  height: 16px;
  color: #0A0A0A;
}

.sp-tracking-help__item-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
  margin-bottom: 2px;
}

.sp-tracking-help__item-content p {
  font-size: 13px;
  color: #737373;
  line-height: 1.5;
}

/* ==========================================================================
   ACCESSIBILITY & MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .sp-calc-result,
  .sp-sticky-bar {
    animation: none;
    transition: none;
  }
}

/* Hide on desktop for sticky bar */
@media (min-width: 1024px) {
  .sp-sticky-bar {
    display: none !important;
  }
  
  body {
    padding-bottom: 0 !important;
  }
}

/* ==========================================================================
   MISSING TAILWIND CLASSES FOR HEADER
   ========================================================================== */

/* Height */
.h-36 { height: 9rem; }

/* Border colors */
.border-gray-100 { border-color: #f3f4f6; }

/* Text colors */
.text-gray-700 { color: #374151; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }

/* Background colors */
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }

/* Hover states */
@media (hover: hover) {
  .hover\:text-black:hover { color: #000; }
  .hover\:bg-gray-50:hover { background-color: #f9fafb; }
  .hover\:bg-gray-100:hover { background-color: #f3f4f6; }
  .hover\:bg-amber-50:hover { background-color: #fffbeb; }
  .group-hover\:rotate-180:is(:where(.group):hover *) { transform: rotate(180deg); }
}

/* Amber colors for dropdown */
.text-amber-500 { color: #f59e0b; }
.bg-amber-50 { background-color: #fffbeb; }

/* Shadow */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Border radius */
.rounded-xl { border-radius: 0.75rem; }

/* Max width for header container */
.max-w-7xl { max-width: 80rem; }

/* Gap */
.ml-0\.5 { margin-left: 0.125rem; }
