/* ==========================================================
   ANEBE – seznam profilů (od nuly)
   Dark + "bubliny" + přehledné karty podle screenshotu
   ========================================================== */

:root{
  --bg0:#070B12;
  --bg1:#0A1020;
  --card:#0B1324cc;
  --stroke:#ffffff1a;
  --stroke2:#ffffff26;
  --text:#f8fafc;
  --muted:#cbd5e1cc;
  --accent:#93c5fd;
  --accent2:#a7f3d0;
  --shadow: 0 24px 60px rgba(0,0,0,.55);
  --radius: 22px;
  --radius2: 18px;
  --max: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(147,197,253,.14), transparent 55%),
    radial-gradient(1100px 760px at 85% 18%, rgba(167,243,208,.10), transparent 58%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow-x:hidden;
}

/* ===== HERO ===== */
.hero{
  position:relative;
  height: 310px;
  overflow:hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.01);
}
.hero__bg{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.70));
}
.hero__overlay{
  position:absolute; inset:0;
  display:flex;
  align-items:flex-end;
}
.hero__inner{
  width:100%;
  max-width: var(--max);
  margin:0 auto;
  padding: 18px 16px 18px;
  display:flex;
  gap:16px;
  align-items:flex-end;
  justify-content:space-between;
}
.brand{
  display:flex; align-items:center; gap:12px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
  padding: 10px 12px;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
.brand__mark{
  width:40px; height:40px; border-radius:16px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(147,197,253,.18), rgba(167,243,208,.16));
  border:1px solid rgba(255,255,255,.12);
  font-size:20px;
}
.brand__title{ font-weight: 950; letter-spacing:.2px; }
.brand__sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.search{
  display:flex; align-items:center; gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
}
.search__icon{ opacity:.9; font-weight: 900; }
.search input{
  width: 220px;
  background: transparent;
  border:0; outline:0;
  color: var(--text);
  font-size: 14px;
}
.select{
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.30);
  color: var(--text);
  outline:0;
  backdrop-filter: blur(10px);
}

/* ===== CONTENT ===== */
.wrap{
  max-width: var(--max);
  margin:0 auto;
  padding: 18px 16px 70px;
}

.h1{
  margin: 14px 0 6px;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: .2px;
}
.hint{
  display:flex;
  gap:10px;
  align-items:center;
  color: rgba(248,250,252,.78);
  margin-bottom: 14px;
}
.countPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  font-weight: 850;
  color: rgba(191,219,254,.95);
}

/* ===== GRID / CARDS ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.card{
  text-decoration:none;
  color: inherit;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  overflow:hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 26px 70px rgba(0,0,0,.46);
}

.card__photo{
  position:relative;
  height: 160px;
  background: linear-gradient(135deg, rgba(147,197,253,.14), rgba(167,243,208,.12));
}
.card__photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.card__photo::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.62));
}

.card__body{
  padding: 12px 14px 14px;
}
.card__name{
  font-weight: 950;
  font-size: 18px;
  letter-spacing:.2px;
}
.card__dates{
  margin-top: 4px;
  color: rgba(248,250,252,.76);
  font-size: 13px;
}
.card__btn{
  margin-top: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(147,197,253,.40);
  background: rgba(147,197,253,.12);
  color: rgba(219,234,254,.96);
  font-weight: 900;
  font-size: 13px;
}

/* ===== FOOTER ===== */
.footer{
  margin-top: 22px;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding: 14px 16px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(248,250,252,.72);
}
.footer a{
  color: rgba(191,219,254,.95);
  text-decoration:none;
  font-weight: 850;
}
.footer a:hover{ text-decoration:underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1050px){
  .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero{ height: 280px; }
  .hero__inner{ flex-direction:column; align-items:flex-start; }
  .toolbar{ width:100%; justify-content:flex-start; }
  .search input{ width: 200px; }
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
  .h1{ font-size: 28px; }
  .hint{ flex-direction:column; align-items:flex-start; }
  .search{ width:100%; }
  .search input{ width:100%; }
  .select{ width:100%; }
}



/* ===== CONTROLS (pod bannerem) ===== */
.controls{
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
.controls__row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(167,243,208,.38);
  background: rgba(167,243,208,.12);
  color: rgba(236,253,245,.96);
  font-weight: 950;
  text-decoration:none;
  white-space:nowrap;
}
.cta:hover{
  border-color: rgba(167,243,208,.62);
  background: rgba(167,243,208,.16);
}

/* Hero už nemá toolbar, jen značku */
.hero__inner{
  justify-content:flex-start;
}

@media (max-width: 520px){
  .controls__row{ width:100%; }
  .cta{ width:100%; }
}
