/**
 * Lekki design system (witryna publiczna): tokeny odstępów i typografii,
 * rytm sekcji, filtry wyszukiwarki pod markę (złoto), motion pod prefers-reduced-motion.
 */
:root {
  --mm-space-xs: 0.5rem;
  --mm-space-sm: 1rem;
  --mm-space-md: 1.75rem;
  --mm-space-lg: 3rem;
  --mm-space-xl: 4.5rem;
  --mm-section-y: clamp(2.5rem, 5vw, var(--mm-space-xl));
  --mm-type-h1: clamp(1.85rem, 4vw, 3.25rem);
  --mm-type-h2: clamp(1.5rem, 3.2vw, 2.75rem);
  --mm-type-h3: clamp(1.2rem, 2.4vw, 1.65rem);
  --mm-type-lead: clamp(1rem, 1.15vw, 1.2rem);
  --mm-type-body: 1rem;
  --mm-type-hint: 0.875rem;
  --mm-accent: #c9a54a;
  --mm-accent-deep: #a8832a;
  --mm-line-subtle: rgba(201, 165, 74, 0.45);
}

[data-mm-theme="dark"] {
  --mm-accent: #e8c96a;
  --mm-accent-deep: #f3d38a;
  --mm-line-subtle: rgba(232, 201, 106, 0.4);
}

/* --- Sekcje: nagłówek → lead → treść (homepage + landingi) --- */
.mm-section {
  padding-top: var(--mm-section-y);
  padding-bottom: var(--mm-section-y);
}

.mm-section--tight {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.mm-section__head {
  text-align: center;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--mm-space-md);
}

.mm-section__title {
  font-size: var(--mm-type-h2);
  line-height: 1.15;
  margin-bottom: var(--mm-space-sm);
}

.mm-section__lead {
  font-size: var(--mm-type-lead);
  line-height: 1.55;
  opacity: 0.82;
  margin-bottom: 0;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.mm-section__rule {
  width: 60px;
  height: 2px;
  margin: var(--mm-space-sm) auto var(--mm-space-md);
  border: 0;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--mm-accent), transparent);
}

.mm-section--landing .page-header-modern h1 {
  font-size: var(--mm-type-h1);
  line-height: 1.2;
}

.mm-section--landing .page-header-modern .lead {
  font-size: var(--mm-type-lead);
  line-height: 1.5;
  max-width: 36rem;
}

/* --- Homepage: hero motion (przeniesione z inline + reduced-motion) --- */
@media (max-width: 991.98px) {
  .hero-bg-animate {
    animation: none !important;
    transform: none !important;
  }
  .hero-ken-burns .hero-intro-blur {
    backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-animate {
    animation: none !important;
    transform: none !important;
  }
  .hero-ken-burns .hero-intro-blur {
    backdrop-filter: none !important;
  }
}

/* --- Certyfikaty: układ bez inline flex --- */
.mm-home-cert-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.mm-home-cert-btn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.mm-home-cert-img {
  height: 140px;
  width: auto;
  max-width: 100%;
  display: block;
}

.mm-home-cert-divider {
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 300px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
}

/* --- Kafel bloga na głównej: stabilna wysokość --- */
.mm-home-blog-tile {
  min-height: 400px;
  border-radius: 15px;
}

@media (min-width: 992px) {
  .mm-home-blog-grid .col-lg-4 {
    display: flex;
  }
  .mm-home-blog-grid .col-lg-4 > a {
    display: flex;
    width: 100%;
  }
}

/* --- Charity / konkurencja o uwagę: mniejsza animacja przy reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .glass-card .fa-heart,
  .mm-home-charity-heart {
    animation: none !important;
  }
  .animate-pulse {
    animation: none !important;
  }
  .atrakcje-tile:hover .tile-bg {
    transform: none !important;
  }
}

/* --- Filtry wyników wyszukiwania (złoto zamiast domyślnego niebieskiego) --- */
.mm-search-filters {
  gap: 0.5rem;
}

@media (max-width: 575.98px) {
  .mm-search-filters--scroll {
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }
}

.mm-search-filters .btn-sm {
  border-radius: 2rem;
  padding-inline: 0.85rem;
}

[data-mm-theme="light"] .mm-search-filters .btn-outline-primary {
  color: var(--mm-accent-deep);
  border-color: rgba(168, 131, 42, 0.55);
  background: transparent;
}

[data-mm-theme="light"] .mm-search-filters .btn-outline-primary:hover {
  color: #fff;
  background: var(--mm-accent-deep);
  border-color: var(--mm-accent-deep);
}

[data-mm-theme="dark"] .mm-search-filters .btn-outline-primary {
  color: var(--mm-accent);
  border-color: rgba(232, 201, 106, 0.45);
  background: transparent;
}

[data-mm-theme="dark"] .mm-search-filters .btn-outline-primary:hover {
  color: #1a1814;
  background: var(--mm-accent);
  border-color: var(--mm-accent);
}

.mm-search-filters .btn-primary {
  border: none;
  background: linear-gradient(180deg, #e8cf8a 0%, #c9a54a 38%, #a8832a 100%);
  color: #fff;
}

[data-mm-theme="dark"] .mm-search-filters .btn-primary {
  background: linear-gradient(180deg, #f3d38a 0%, #e8c96a 40%, #c9a54a 100%);
  color: #1a1814;
}

/* Pusty stan wyszukiwania */
.mm-search-empty {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  padding: var(--mm-space-lg) var(--mm-space-sm);
}

.mm-search-empty__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--mm-space-sm);
  margin-top: var(--mm-space-md);
}

.mm-search-empty .btn-primary {
  border: none;
  background: linear-gradient(180deg, #e8cf8a 0%, #c9a54a 38%, #a8832a 100%);
  color: #fff;
}

[data-mm-theme="dark"] .mm-search-empty .btn-primary {
  background: linear-gradient(180deg, #f3d38a 0%, #e8c96a 40%, #c9a54a 100%);
  color: #1a1814;
}

.mm-search-empty .btn-outline-primary {
  color: var(--mm-accent-deep);
  border-color: rgba(168, 131, 42, 0.55);
  background: transparent;
}

[data-mm-theme="dark"] .mm-search-empty .btn-outline-primary {
  color: var(--mm-accent);
  border-color: rgba(232, 201, 106, 0.45);
}

.mm-search-empty .btn-outline-primary:hover {
  color: #fff;
  background: var(--mm-accent-deep);
  border-color: var(--mm-accent-deep);
}

[data-mm-theme="dark"] .mm-search-empty .btn-outline-primary:hover {
  color: #1a1814;
  background: var(--mm-accent);
  border-color: var(--mm-accent);
}

@media (min-width: 576px) {
  .mm-search-empty__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Modal logowania — lead jak na stronie /logowanie */
.mm-auth-modal-lead {
  line-height: 1.5;
}

/* Homepage „Więcej niż emocje” — bez niebieskiegodividera, bez inline letter-spacing */
.mm-home-emocje-headline {
  letter-spacing: -0.04em;
}

.mm-home-emocje-headline .line-1,
.mm-home-emocje-headline .line-2 {
  display: block;
}

/* Serce w kafelku charytatywnym (animacja jak .glass-card .fa-heart, z obsługą reduced-motion wyżej) */
.mm-home-charity-heart .fa-heart {
  display: inline-block !important;
  animation: super-heartbeat 1s infinite !important;
}

@media (prefers-reduced-motion: reduce) {
  .mm-home-charity-heart .fa-heart {
    animation: none !important;
  }
}

.mm-home-charity-icon {
  font-size: 130px !important;
  line-height: 1;
}

.mm-home-badge-support {
  background: linear-gradient(180deg, #e8cf8a 0%, #c9a54a 42%, #a8832a 100%) !important;
  border: none !important;
}

.mm-home-blog-cta-link {
  color: #c9a54a !important;
}

[data-mm-theme="dark"] .mm-home-blog-cta-link {
  color: #f3d38a !important;
}

/* --- Globalny branding witryny publicznej: primary -> złoto --- */
.main .btn-primary,
.main .bg-primary,
.main .badge.bg-primary {
  border-color: var(--mm-accent-deep) !important;
  background: linear-gradient(180deg, #e8cf8a 0%, #c9a54a 40%, #a8832a 100%) !important;
  color: #fff !important;
}

[data-mm-theme="dark"] .main .btn-primary,
[data-mm-theme="dark"] .main .bg-primary,
[data-mm-theme="dark"] .main .badge.bg-primary {
  border-color: var(--mm-accent) !important;
  background: linear-gradient(180deg, #f3d38a 0%, #e8c96a 45%, #c9a54a 100%) !important;
  color: #1a1814 !important;
}

.main .btn-outline-primary {
  color: var(--mm-accent-deep) !important;
  border-color: rgba(168, 131, 42, 0.55) !important;
}

.main .btn-outline-primary:hover,
.main .btn-outline-primary:focus-visible {
  color: #fff !important;
  background: var(--mm-accent-deep) !important;
  border-color: var(--mm-accent-deep) !important;
}

[data-mm-theme="dark"] .main .btn-outline-primary {
  color: var(--mm-accent) !important;
  border-color: rgba(232, 201, 106, 0.45) !important;
}

[data-mm-theme="dark"] .main .btn-outline-primary:hover,
[data-mm-theme="dark"] .main .btn-outline-primary:focus-visible {
  color: #1a1814 !important;
  background: var(--mm-accent) !important;
  border-color: var(--mm-accent) !important;
}

.main .text-primary,
.main .text-color-primary {
  color: var(--mm-accent-deep) !important;
}

[data-mm-theme="dark"] .main .text-primary,
[data-mm-theme="dark"] .main .text-color-primary {
  color: var(--mm-accent) !important;
}

/* Skip link */
.mm-skip-link {
  position: absolute;
  left: 0.75rem;
  top: -48px;
  z-index: 100000;
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #14110c;
  color: #fff;
  text-decoration: none;
}

.mm-skip-link:focus {
  top: 0.75rem;
}

/* Search page helpers */
.mm-search-query {
  color: var(--mm-accent-deep);
}

[data-mm-theme="dark"] .mm-search-query {
  color: var(--mm-accent);
}

.mm-search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
