/* /css/index.css */

/* Sekcja hero na stronie głównej */
.hero{
  width:100%;
  padding:34px 16px;
  background-image: url('/img/logo/index.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius:18px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-content{
  max-width:1000px;
  margin:0 auto;
  background: transparent;
  padding:28px;
}
.hero-chip,
.hero-bubble{
  background: rgba(var(--cream-rgb), .50);
  border: 1px solid rgba(var(--cream-rgb), .55);
  border-radius: 12px;
  padding: 6px 10px;
  color:white;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero h2{ margin: 0 0 10px; }
.hero h2 .hero-chip{ display:inline-block; }
.hero p{ margin: 0 0 16px; }
.hero p .hero-bubble{
  display:inline-block;
  max-width: min(100%, 72ch);
}
html.anim-load .hero .hero-content{
  animation: fadeUp var(--intro-2) ease-out both;
}

/* Mapa zaginionych na stronie głównej */
#lost-map.map-frame{
  height:60vh;
  min-height:420px;
}

/* =========================================================
   HOME: Profesjonalny search-form (override global.css)
   ========================================================= */
#lista .search-form{
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,247,237,.92));
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}
#lista .search-form-grid{
  display:grid;
  grid-template-columns: 1fr 220px 160px;
  gap:10px;
  align-items:center;
}
@media (max-width: 720px){
  #lista .search-form-grid{ grid-template-columns:1fr; }
}
#lista .search-field{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 0 12px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 16px rgba(15,23,42,.05);
}
#lista .search-ico{ color: rgba(15,23,42,.55); }
#lista #search{
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 12px 0 !important;
  background: transparent !important;
  color: var(--text);
  font-size: 1rem;
  width: 100%;
}
#lista #search::placeholder{ color: rgba(15,23,42,.45); }
#lista .filter-select{
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.96);
  box-shadow: 0 6px 16px rgba(15,23,42,.05);
}
#lista .filter-select:focus{
  border-color: rgba(249,115,22,.65);
  box-shadow: 0 0 0 4px rgba(249,115,22,.14);
}

/* =========================================================
   HOME: AKTUALNE ZBIÓRKI (slider)
   ========================================================= */
.fundraisers-section{
  --fr-visible: 5;
  --fr-gaps: 4;
  --fr-gap: 14px;

  /* stała wysokość viewportu (żeby strona nie "skakała") */
  --fr-vh: 320px;

  /* miejsce na strzałki wewnątrz viewportu */
  --fr-arrow-space: 66px;
}
@media (max-width: 1100px){
  .fundraisers-section{ --fr-visible: 3; --fr-gaps: 2; --fr-vh: 400px; }
}
@media (max-width: 720px){
  .fundraisers-section{ --fr-visible: 2; --fr-gaps: 1; --fr-vh: 380px; }
}
@media (max-width: 460px){
  .fundraisers-section{ --fr-visible: 1; --fr-gaps: 0; --fr-vh: 360px; }
}


.fr-cats{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  margin: 4px 0 8px;
}
.fr-cat{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,247,237,.92));
  box-shadow: 0 12px 26px rgba(15,23,42,.06);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.fr-cat:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
  border-color: rgba(249,115,22,.35);
}
.fr-cat.is-active{
  border-color: rgba(249,115,22,.65);
  box-shadow: 0 18px 40px rgba(249,115,22,.14);
}
.fr-cat-icon{ font-size: 1.0rem; line-height: 1; }

.fr-slider{ width: 100%; }

.fr-viewport{
  position: relative;
  width: 100%;
  height: var(--fr-vh);

  overflow: hidden;
  border-radius: 22px;

  padding: 10px var(--fr-arrow-space);
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,247,237,.65));
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 14px 34px rgba(15,23,42,.05);
}

.fr-track{
  height: 100%;
  display:flex;
  align-items: stretch;
  gap: var(--fr-gap);
  will-change: transform;
  transform: translate3d(0,0,0);
  transition: transform .48s cubic-bezier(.22,.61,.36,1);
}

.fr-item{
  flex: 0 0 calc((100% - (var(--fr-gap) * var(--fr-gaps))) / var(--fr-visible));
  height: 100%;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
  position: relative;
  cursor:pointer;
  user-select:none;
  display:flex;
  flex-direction:column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  outline: none;
}
.fr-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(15,23,42,.12);
  border-color: rgba(249,115,22,.25);
}
.fr-item:focus-visible{
  box-shadow: 0 0 0 4px rgba(249,115,22,.18), 0 22px 52px rgba(15,23,42,.12);
}

.fr-media{
  position: relative;
  flex: 0 0 62%;
  background: #f3f4f6;
  overflow:hidden;
}
.fr-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1);
  transition: transform .22s ease, opacity .14s ease;
}
.fr-item:hover .fr-img{ transform: scale(1.02); }

.fr-img-nav{
  position:absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index: 6;
  font-size: 1.25rem;
  font-weight: 900;
  color: rgba(15,23,42,.88);
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
  opacity: .92;
}
.fr-img-nav:active{ transform: translateY(-50%) scale(.98); }
.fr-img-nav.prev{ left: 10px; }
.fr-img-nav.next{ right: 10px; }

.fr-dots{
  position:absolute;
  left:0;
  right:0;
  bottom: 10px;
  display:flex;
  justify-content:center;
  gap:6px;
  z-index: 6;
  pointer-events:none;
}
.fr-dots i{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 18px rgba(15,23,42,.22);
  opacity: .85;
}
.fr-dots i.active{
  background: rgba(249,115,22,.95);
  opacity: 1;
  transform: scale(1.12);
}

/* owner chip (avatar jak w ogłoszeniach) */
.fr-owner-chip{
  position:absolute;
  left: 10px;
  bottom: 10px;
  z-index: 7;
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px) saturate(1.1);
  box-shadow: 0 14px 30px rgba(15,23,42,.18);
}
.fr-owner-avatar{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow:hidden;
  flex: 0 0 auto;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  background: #fff;
}
.fr-owner-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.fr-owner-fallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-size: .78rem;
  font-weight: 900;
  color:#fff;
  background: radial-gradient(circle at 30% 30%, #fed7aa, #ea580c);
  text-transform: uppercase;
}
.fr-owner-name{
  font-size: .78rem;
  font-weight: 900;
  color: rgba(15,23,42,.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fr-pill{
  position:absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 30px rgba(15,23,42,.18);
  cursor:pointer;
}
.fr-pill-label{
  font-size: .72rem;
  font-weight: 900;
  color: rgba(20,83,45,.95);
}
.fr-pill-live{
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.95);
  color: #fff;
  text-transform: uppercase;
}

/* footer */
.fr-footer{
  flex: 1 1 auto;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,237,.94));
  border-top: 1px solid rgba(15,23,42,.06);
}
.fr-animal-name{
  font-weight: 900;
  font-size: .96rem;
  color: rgba(15,23,42,.90);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.fr-mini-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.06);
}
.fr-mini-bar > span{
  display:block;
  height: 100%;
  width: var(--p, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,197,94,.95), rgba(22,163,74,.95));
}
.fr-mini-stats{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  margin-top: 8px;
  font-size: .74rem;
  color: rgba(15,23,42,.62);
}
.fr-mini-pct{ color: rgba(15,23,42,.86); }

/* STRZAŁKI — przezroczyste i wewnątrz viewportu */
.fr-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;

  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 0;
  background: transparent;

  font-size: 3.0rem;
  line-height: 1;
  font-weight: 900;
  color: rgba(15,23,42,.85);

  cursor:pointer;
  display:grid;
  place-items:center;

  text-shadow: 0 10px 26px rgba(0,0,0,.18);
  transition: transform .12s ease, opacity .12s ease, filter .12s ease;
}
.fr-arrow--left{ left: 8px; }
.fr-arrow--right{ right: 8px; }

.fr-arrow:hover{
  filter: brightness(1.02);
  transform: translateY(-50%) scale(1.04);
}
.fr-arrow:active{
  transform: translateY(-50%) scale(.98);
}
.fr-arrow:disabled{
  opacity: .25;
  cursor: default;
  transform: translateY(-50%);
  filter: none;
}

/* Overlay – pokazuje się TYLKO gdy JS doda klasę (hover na footer/pill) albo mobile toggle */
.fr-overlay{
  position:absolute;
  inset: 0;
  z-index: 30;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.fr-overlay::before{
  content:"";
  position:absolute;
  inset: 0;
  background: rgba(2,6,23,.52);
  backdrop-filter: blur(2px) saturate(1.05);
}

.fr-item.fr-hover-open .fr-overlay,
.fr-item.fr-open .fr-overlay{
  opacity: 1;
  pointer-events: auto;
}

.fr-overlay-card{
  position: relative;
  width: min(340px, 100%);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 24px 58px rgba(0,0,0,.28);
  padding: 12px 12px 11px;
  color: #0f172a;
  transform: translateY(6px);
  transition: transform .16s ease;
}
.fr-item.fr-hover-open .fr-overlay-card,
.fr-item.fr-open .fr-overlay-card{
  transform: translateY(0);
}
.fr-ov-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.fr-ov-title{
  font-weight: 900;
  font-size: .94rem;
  line-height: 1.2;
  max-width: 220px;
}
.fr-ov-badge{
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34,197,94,.95);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.fr-ov-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(2,6,23,.08);
  overflow:hidden;
  border: 1px solid rgba(2,6,23,.06);
  margin-bottom: 8px;
}
.fr-ov-bar > span{
  display:block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, rgba(34,197,94,.95), rgba(22,163,74,.95));
  border-radius: 999px;
}
.fr-ov-stats{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 8px;
  font-size: .60rem;
  color: rgba(15,23,42,.72);
  margin-bottom: 8px;
}
.fr-ov-stats strong{ color: rgba(15,23,42,.92); }
.fr-ov-desc{
  margin: 0 0 10px;
  font-size: .80rem;
  color: rgba(15,23,42,.72);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.fr-ov-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(22,163,74,.95));
  color: #fff;
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .2px;
  box-shadow: 0 14px 30px rgba(34,197,94,.22);
}

/* Empty — w środku viewportu */
.fr-empty{
  position:absolute;
  inset: 0;
  display:none;
  place-items: center;
  text-align:center;
  padding: 16px;
  z-index: 60;
}
.fr-empty.is-visible{
  display:grid;
}
.fr-empty::before{
  content:"";
  position:absolute;
  inset: 0;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(1px);
}
.fr-empty > *{
  position: relative;
  z-index: 1;
}
.fr-empty{
  color: rgba(15,23,42,.70);
  font-weight: 800;
}
