/* ============================================
   MOJA PRZYGODA — Shared Components
   Przyciski, karty, badge, typografia
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Typografia ── */
.heading-display {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-sans {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-body {
  font-size: var(--text-base);
  color: var(--text-mid);
  line-height: 1.6;
}

.text-small {
  font-size: var(--text-sm);
  color: var(--text-mid);
}

.text-tiny {
  font-size: var(--text-xs);
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Gradient text — zielony */
.text-gradient-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-x);
}

.section {
  padding: var(--section-y) 0;
}

/* ── Przyciski ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — zielony */
.btn-primary {
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  font-size: var(--text-base);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--green-light);
  box-shadow: 0 6px 24px rgba(61, 107, 79, 0.3);
}

/* Primary large */
.btn-primary-lg {
  background: var(--green);
  color: var(--white);
  padding: 16px 40px;
  font-size: 1rem;
  box-shadow: var(--shadow-btn);
}

.btn-primary-lg:hover {
  background: var(--green-light);
}

/* Gold — final CTA */
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  padding: 16px 40px;
  font-size: 1rem;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: #d4b35a;
}

/* Full width */
.btn-full {
  width: 100%;
}

/* Secondary / ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  padding: 12px 24px;
  font-size: var(--text-sm);
  border: 1px solid var(--border-mid);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Small — navbar mobile */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
  border-radius: var(--radius-lg);
}

/* ── Badge / Tag ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-gold {
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  color: var(--gold);
}

.badge-green {
  background: var(--green-pale);
  color: var(--green);
}

/* ── Karta ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

/* ── Sekcja — ciemne tło ── */
.section-dark {
  background: var(--dark-bg);
  color: var(--white);
}

/* ── Stars (oceny) ── */
.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 16px;
  height: 16px;
}

/* ── SVG ikony wspólne ── */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-sm {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--green-pale);
}

.icon-box-md {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green-pale);
}

.icon-box-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
}

/* ── Gold accent dot ── */
.gold-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
}

.gold-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Separatory ── */
.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-light);
  display: inline-block;
}

/* ── Scroll fade-in animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsywność — helpers ── */
@media (min-width: 768px) {
  .btn-primary {
    padding: 16px 40px;
    font-size: 1rem;
  }
}
