/* =============================================
   PORADNIK.CSS — SimDelivery Guide Styles
   Rozszerzenie design systemu z style.css
   Korzysta z CSS variables zdefiniowanych w style.css
   ============================================= */

/* Nadpisz scroll-padding dla dwóch warstw sticky nav */
html {
  scroll-padding-top: 130px;
}

body.guide-page {
  background-color: var(--bg-main);
  color: var(--text-primary);
}

.guide-page .top-nav {
  background: rgba(11, 15, 25, 0.85);
  border-bottom: 1px solid var(--border-color);
}

.guide-page .site-footer {
  background: #06090F;
  border-top: 1px solid var(--border-color);
}

.guide-page .footer-bottom {
  border-top-color: rgba(255,255,255,0.05);
}

/* Layout wrapper sekcji poradnika */
.guide-main {
  padding: 0 20px;
  max-width: 860px;
  margin: 0 auto;
}

/* =============================================
   HERO SEKCJA PORADNIKA
   ============================================= */

.guide-hero {
  padding: 110px 0 52px;
  text-align: center;
}

.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 0, 0.08);
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-heading);
}

.guide-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  background: linear-gradient(135deg, #fff, #a0b0c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}

.guide-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.guide-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.83rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.guide-meta-item i {
  color: var(--accent-primary);
}

.guide-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 18px;
}

.guide-reassurance {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 26px;
  background: rgba(22, 163, 74, 0.07);
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-left: 3px solid #16a34a;
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  text-align: left;
  line-height: 1.6;
}

/* Box "Gdy coś nie działa" */
.help-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 90, 0, 0.07);
  border: 1px solid rgba(255, 90, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  max-width: 340px;
  width: 100%;
  text-align: left;
}

.guide-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.guide-nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.guide-nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-primary);
  transition: var(--transition-smooth);
}

.guide-nav-links a:hover {
  color: var(--accent-primary);
}

.guide-nav-links a:hover::after {
  width: 100%;
}

.help-box p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.help-box strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-heading);
}

.help-box a {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.87rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.help-box a:hover {
  color: var(--accent-hover);
}

/* =============================================
   QUICK NAV — sticky pasek nawigacji sekcji
   ============================================= */

.quick-nav-wrapper {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: rgba(11, 15, 25, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  transition: box-shadow 0.3s ease;
}

.quick-nav-wrapper.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.quick-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.quick-nav-inner::-webkit-scrollbar {
  display: none;
}

.quick-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 5px 11px 5px 6px;
  border-radius: 20px;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  scroll-snap-align: start;
  text-decoration: none;
  flex-shrink: 0;
}

.quick-nav-item:hover,
.quick-nav-item.active {
  color: var(--text-primary);
  background: rgba(255, 90, 0, 0.09);
  border-color: rgba(255, 90, 0, 0.33);
}

.nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   BLOK SEKCJI INSTRUKCJI
   ============================================= */

.guide-section {
  margin: 40px 0;
  scroll-margin-top: 130px;
}

.guide-section-card {
  background: var(--bg-secondary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.guide-section-card:hover {
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Nagłówek sekcji */
.section-header {
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px var(--glow-primary);
  margin-top: 2px;
}

.section-header-text {
  flex: 1;
}

.section-header-text h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-intro {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* Treść sekcji */
.section-body {
  padding: 22px 26px 26px;
}

.guide-overview {
  margin: 24px 0 26px;
}

.guide-overview h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.guide-overview p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.section-aside {
  position: sticky;
  top: 148px;
}

/* =============================================
   GALERIA ZDJĘĆ W SEKCJI
   ============================================= */

.section-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 11px;
  margin-bottom: 22px;
}

.section-gallery.single {
  grid-template-columns: 1fr;
  max-width: 400px;
}

.gallery-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.guide-image-frame {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
}

.guide-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

/* Placeholder zdjęcia — do podmiany */
.photo-placeholder {
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.025);
  border: 2px dashed rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.photo-placeholder:hover {
  border-color: rgba(255, 90, 0, 0.22);
  background: rgba(255, 90, 0, 0.025);
}

.photo-placeholder i {
  font-size: 1.9rem;
  opacity: 0.22;
}

.ph-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.45;
  font-family: var(--font-heading);
}

.ph-desc {
  font-size: 0.74rem;
  opacity: 0.4;
  line-height: 1.4;
}

.photo-caption {
  padding: 7px 2px 2px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.photo-caption strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.79rem;
  margin-bottom: 1px;
}

.photo-meta {
  display: block;
  margin-top: 3px;
}

.marker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 90, 0, 0.08);
  color: var(--accent-primary);
  font-size: 0.72rem;
  font-weight: 600;
}

.marker-pill i {
  font-size: 0.72rem;
}

/* =============================================
   OPIS I LISTA KROKÓW
   ============================================= */

.section-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
}

.steps-list {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.9rem;
  line-height: 1.55;
  transition: var(--transition-smooth);
  color: var(--text-primary);
}

.steps-list li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(255, 90, 0, 0.13);
  border: 1px solid rgba(255, 90, 0, 0.26);
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================
   BOXY INFORMACYJNE — TIP / WARNING / MISTAKE
   ============================================= */

.callout {
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  margin-bottom: 9px;
  font-size: 0.87rem;
  line-height: 1.62;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}

.callout i {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.callout-content strong {
  display: block;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  font-family: var(--font-heading);
  opacity: 0.7;
}

/* Tip */
.callout-tip {
  background: rgba(22, 163, 74, 0.07);
  border-color: rgba(22, 163, 74, 0.18);
  border-left: 3px solid #16a34a;
  color: #d1fae5;
}
.callout-tip i { color: #22c55e; }
.callout-tip .callout-content strong { color: #22c55e; opacity: 1; }

/* Ostrzeżenie */
.callout-warning {
  background: rgba(255, 90, 0, 0.07);
  border-color: rgba(255, 90, 0, 0.16);
  border-left: 3px solid var(--accent-primary);
  color: #fed7aa;
}
.callout-warning i { color: var(--accent-primary); }
.callout-warning .callout-content strong { color: var(--accent-primary); opacity: 1; }

/* Najczęstszy błąd */
.callout-mistake {
  background: rgba(202, 138, 4, 0.07);
  border-color: rgba(202, 138, 4, 0.18);
  border-left: 3px solid #ca8a04;
  color: #fef3c7;
}
.callout-mistake i { color: #eab308; }
.callout-mistake .callout-content strong { color: #eab308; opacity: 1; }

/* =============================================
   FAQ ACCORDION
   ============================================= */

.section-faq {
  margin-top: 18px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.faq-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  margin-bottom: 9px;
  font-family: var(--font-heading);
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 5px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 10px 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  line-height: 1.4;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-primary);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
  flex-shrink: 0;
  font-size: 0.78rem;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 13px 12px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--border-color);
}

.faq-item.open .faq-answer {
  display: block;
}

/* =============================================
   SEKCJA KOŃCOWA
   ============================================= */

.guide-end {
  margin: 48px 0 0;
}

.guide-end-card {
  border-top: 3px solid var(--accent-primary);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 13px 0 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.89rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.4;
}

.checklist li:last-child { border-bottom: none; }

.checklist li i {
  color: var(--accent-primary);
  font-size: 0.92rem;
  flex-shrink: 0;
}

.guide-cta {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.guide-cta p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 13px;
}

.contact-links-guide {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-links-guide a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.link-phone {
  background: var(--accent-primary);
  color: #fff !important;
  box-shadow: 0 4px 12px var(--glow-primary);
}

.link-phone:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--glow-primary);
}

.link-email {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary) !important;
}

.link-email:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE — MOBILE FIRST
   ============================================= */

@media (max-width: 600px) {
  .guide-hero {
    padding: 96px 0 42px;
  }

  .guide-hero h1 {
    font-size: 1.65rem;
  }

  .guide-reassurance {
    text-align: left;
  }

  .help-box {
    max-width: 100%;
  }

  .section-header {
    padding: 16px 16px 13px;
    gap: 11px;
  }

  .section-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.95rem;
  }

  .section-header-text h2 {
    font-size: 1.08rem;
  }

  .section-body {
    padding: 16px 16px 20px;
  }

  .section-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .section-gallery.single {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .steps-list li {
    font-size: 0.86rem;
    padding: 9px 11px;
  }

  .callout {
    font-size: 0.84rem;
    padding: 10px 12px;
  }

  .guide-main {
    padding: 0 14px;
  }

  .guide-nav-links {
    gap: 10px;
    justify-content: flex-end;
  }

  .guide-nav-links a {
    font-size: 0.86rem;
  }

  .guide-meta {
    justify-content: flex-start;
  }

  .guide-meta-item {
    font-size: 0.78rem;
  }

  .guide-end-card {
    padding: 20px 16px 22px;
  }

  .section-layout {
    grid-template-columns: 1fr;
  }

  .section-aside {
    position: static;
  }
}
