/* ================================================
   PROFILES — listing /osoby
   assets/css/pages/profiles.css
   ================================================ */

/* ── Page header ── */
.profiles-hero {
  background: linear-gradient(135deg,#1A0533,#3B1278);
  padding: 2.25rem 0 2rem;
}
.profiles-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.profiles-hero__breadcrumb {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.profiles-hero__breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.profiles-hero__breadcrumb a:hover { color: #F472B6; }
.profiles-hero__breadcrumb span { color: rgba(255,255,255,.5); }
.profiles-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 .35rem;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.profiles-hero__title em {
  font-style: normal;
  color: #F472B6;
}
.profiles-hero__count {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
}
.profiles-hero__count strong { color: #fff; font-weight: 700; }

/* Search in hero */
.profiles-hero__search {
  position: relative;
  width: 340px;
  flex-shrink: 0;
}
.profiles-hero__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #AAAACC;
  pointer-events: none;
}
.profiles-hero__search input {
  width: 100%;
  padding: .85rem 1rem .85rem 2.85rem;
  border: 1.5px solid #E2E0F0;
  border-radius: 14px;
  background: #fff;
  color: #1A1A2E;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(100,60,220,.06);
}
.profiles-hero__search input::placeholder { color: #AAAACC; }
.profiles-hero__search input:focus {
  border-color: var(--color-primary, #7C3AED);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}

/* ── Filter bar ── */
.profiles-filters {
  background: #fff;
  border-bottom: 1px solid #EAE8F5;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.profiles-filters__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.profiles-filters__inner::-webkit-scrollbar { display: none; }

.profiles-filter-select {
  flex-shrink: 0;
  padding: .5rem .9rem;
  border: 1.5px solid #E2E0F0;
  border-radius: 8px;
  font-size: .855rem;
  font-family: inherit;
  color: #3D3D5C;
  background: #FAFAFA;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9ABA' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  padding-right: 2rem;
  min-width: 120px;
}
.profiles-filter-select:focus { border-color: var(--color-primary, #7C3AED); }
.profiles-filter-select.is-active {
  border-color: var(--color-primary, #7C3AED);
  background-color: #FAF5FF;
  color: var(--color-primary, #7C3AED);
  font-weight: 600;
}

.profiles-filters__availability {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border: 1.5px solid #E2E0F0;
  border-radius: 8px;
  font-size: .855rem;
  color: #3D3D5C;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
  user-select: none;
  background: #FAFAFA;
}
.profiles-filters__availability input { display: none; }
.profiles-filters__availability:has(input:checked) {
  border-color: #10B981;
  background: #ECFDF5;
  color: #065F46;
  font-weight: 600;
}
.profiles-filters__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E2E0F0;
  flex-shrink: 0;
}
.profiles-filters__availability:has(input:checked) .profiles-filters__dot {
  background: #10B981;
}

.profiles-filters__count {
  flex-shrink: 0;
  margin-left: auto;
  font-size: .82rem;
  color: #9A9ABA;
  white-space: nowrap;
}
.profiles-filters__count strong { color: #3D3D5C; }

/* Reset button */
.profiles-filters__reset {
  flex-shrink: 0;
  padding: .5rem .9rem;
  border: 1.5px solid #E2E0F0;
  border-radius: 8px;
  font-size: .82rem;
  color: #9A9ABA;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.profiles-filters__reset:hover { color: var(--color-primary, #7C3AED); border-color: var(--color-primary, #7C3AED); }

/* ── Login nudge banner (non-logged) ── */
.profiles-login-nudge {
  background: linear-gradient(135deg, #FAF5FF, #F5F3FF);
  border: 1px solid #DDD6FE;
  border-radius: 14px;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profiles-login-nudge__text {
  flex: 1;
  min-width: 200px;
  font-size: .9rem;
  color: #4C1D95;
}
.profiles-login-nudge__text strong { font-weight: 700; }
.profiles-login-nudge__actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}

/* ── Main layout ── */
.profiles-main {
  padding: 2.5rem 0 4rem;
  min-height: 50vh;
}
.profiles-main__inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ── Profile grid ── */
.profiles-grid-wrap { flex: 1; min-width: 0; }

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-bottom: 2.5rem;
  background: #DDDAED;
}

/* ── Profile card ── */
.pcard {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  transition: box-shadow .25s, transform .25s;
  position: relative;
}
.pcard:hover {
  box-shadow: 0 8px 32px rgba(50,30,120,.14);
  transform: translateY(-3px);
  z-index: 1;
}
.pcard--ghost {
  background: #fff;
  pointer-events: none;
}
.pcard--premium {
  border-color: #F5D68A;
  background: linear-gradient(to bottom, #FFFCF0 0%, #fff 60%);
}
.pcard--premium:hover {
  border-color: #EAC840;
}

/* Photo area */
.pcard__photo-link {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: #EEEDF6;
}
.pcard__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.pcard:hover .pcard__photo { transform: scale(1.05); }

/* Available now badge (green dot) */
.pcard__available-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: #fff;
  border-radius: 20px;
  padding: .2rem .55rem .2rem .35rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 700;
  color: #065F46;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  z-index: 2;
}
.pcard__available-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(1.3); }
}

/* Premium crown badge */
.pcard__premium-badge {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D97706, #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  z-index: 2;
}

/* Verification bottom bar on photo */
.pcard__verify-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .5rem .75rem;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: .4rem;
  z-index: 2;
}
.pcard__verify-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .5rem;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.pcard__verify-pill--premium {
  background: rgba(245,158,11,.9);
  color: #fff;
}
.pcard__verify-pill--verified {
  background: rgba(16,185,129,.9);
  color: #fff;
}

/* Card body */
.pcard__body {
  padding: .9rem 1rem 1rem;
}
.pcard__name {
  font-size: .97rem;
  font-weight: 800;
  color: #1A1A2E;
  margin: 0 0 .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
}
.pcard__name a {
  color: inherit;
  text-decoration: none;
}
.pcard__name a:hover { color: var(--color-primary, #7C3AED); }

/* Profession tags */
.pcard__professions {
  display: flex;
  gap: .3rem;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-bottom: .45rem;
}
.pcard__profession-tag {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
  background: #EDE9FE;
  color: #5B21B6;
  border: 1px solid transparent;
}

/* Location */
.pcard__location {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: #9A9ABA;
  margin-bottom: .6rem;
}
.pcard__location svg { flex-shrink: 0; }

/* Tagline */
.pcard__tagline {
  font-size: .8rem;
  color: #6B6B8A;
  line-height: 1.45;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.pcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
}
.pcard__cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem .9rem;
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}
.pcard__cta:hover {
  opacity: .92;
  transform: translateY(-1px);
}

/* ── Empty state ── */
.profiles-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: #9A9ABA;
}
.profiles-empty__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #F0EEF8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.profiles-empty__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3D3D5C;
  margin: 0 0 .5rem;
}
.profiles-empty__desc {
  font-size: .9rem;
  color: #9A9ABA;
  margin: 0 0 1.5rem;
}

/* ── Pagination ── */
.profiles-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.pagi-link,
.pagi-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  border: 1.5px solid #EAE8F5;
  color: #3D3D5C;
  background: #fff;
}
.pagi-link:hover,
.pagi-num:hover {
  background: #F0EEF8;
  border-color: #C4B5FD;
  color: var(--color-primary, #7C3AED);
}
.pagi-num--active {
  background: var(--color-primary, #7C3AED);
  border-color: var(--color-primary, #7C3AED);
  color: #fff;
  cursor: default;
}
.pagi-ellipsis {
  color: #C5C5DC;
  font-size: .875rem;
  padding: 0 .25rem;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
  .profiles-grid { grid-template-columns: repeat(4, 1fr); }
  .pcard--ghost { display: none; }
}
@media (max-width: 900px) {
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }
  .pcard--ghost { display: none; }
  .profiles-hero__search { width: 100%; }
  .profiles-hero__inner { align-items: flex-start; }
}
@media (max-width: 540px) {
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }
  .profiles-hero { padding: 2rem 0 1.5rem; }
  .profiles-hero__title { font-size: 1.65rem; }
}
@media (max-width: 380px) {
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Scroll Gate ── */
.scroll-gate{position:fixed;inset:0;z-index:9990;background:rgba(10,2,26,.7);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:1.5rem}
.scroll-gate[hidden]{display:none}
.scroll-gate__card{background:#fff;border-radius:20px;padding:2.5rem 2rem;max-width:400px;width:100%;text-align:center;box-shadow:0 24px 64px rgba(0,0,0,.3);position:relative}
.scroll-gate__x{position:absolute;top:-14px;right:-14px;width:36px;height:36px;border-radius:50%;background:#e5e5e5;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.1rem;line-height:1;color:#555;transition:background .15s,color .15s}
.scroll-gate__x:hover{background:#ccc;color:#222}
.scroll-gate__logo{font-size:1rem;font-weight:900;letter-spacing:.1em;background:linear-gradient(135deg,#7C3AED,#DB2777);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:1.25rem}
.scroll-gate__logo span{-webkit-text-fill-color:#F472B6}
.scroll-gate__title{font-size:1.3rem;font-weight:800;color:#1A1A2E;margin:0 0 .5rem;line-height:1.25}
.scroll-gate__sub{font-size:.875rem;color:#666;margin:0 0 1.75rem;line-height:1.55}
.scroll-gate__btns{display:flex;flex-direction:column;gap:.6rem;margin-bottom:.75rem}
.scroll-gate__login{display:block;text-align:center;padding:.8rem 1.5rem;font-size:.95rem}
.scroll-gate__register{font-size:.85rem;color:#7C3AED;text-decoration:none;font-weight:600;padding:.4rem;border-radius:8px;transition:background .15s}
.scroll-gate__register:hover{background:#F3F0FF}
.scroll-gate__close{display:block;width:100%;background:none;border:none;color:#bbb;font-size:.8rem;cursor:pointer;padding:.6rem;border-radius:8px;margin-top:.25rem;transition:color .15s}
.scroll-gate__close:hover{color:#555}
