:root{
  --bg:#f3f0ff;
  --text:#666;
  --title:#222;
  --purple1:#6a11cb;
  --purple2:#8e2de2;
  --card:#fff;
  --line: rgba(0,0,0,.08);
  --shadow:0 12px 30px rgba(0,0,0,.06);
  --shadow-hover:0 22px 45px rgba(106,17,203,.18);
  --radius:22px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   NAVBAR
   ========================= */

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 90px;
  height:80px;
  background:linear-gradient(90deg, #6a11cb, #8e2de2);
}

.logo img{
  height:40px;
  display:block;
}

.nav-links{
  display:flex;
  gap:35px;
  align-items:center;
}

.nav-links a{
  color:white;
  text-decoration:none;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
  position:relative;
  transition:0.25s ease;
}

.nav-links a:hover{
  opacity:0.82;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-8px;
  width:0;
  height:3px;
  border-radius:99px;
  background:rgba(255,255,255,0.88);
  transform:translateX(-50%);
  transition:width 0.25s ease;
}

.nav-links a:hover::after{
  width:22px;
}

.nav-links a.active::after{
  width:34px;
}

.nav-icons{
  display:flex;
  gap:20px;
}

.icon-circle{
  width:42px;
  height:42px;
  border:2px solid white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  cursor:pointer;
  transition:0.25s ease;
}

.icon-circle:hover{
  background:white;
  color:#8e2de2;
}

/* =========================
   LAYOUT
   ========================= */

.container{
  display:flex;
  padding:34px 40px 40px;
  gap:34px;
  align-items:flex-start;
}

.profiles{
  width:100%;
}

.profiles-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px;
}

.profiles h1{
  margin:0;
  color:var(--title);
  font-size:36px;
  line-height:1.1;
}

.profiles-subtitle{
  margin:8px 0 0;
  color:#7a7a7a;
  font-size:15px;
}

.shown{
  color:var(--text);
  background:#fff;
  padding:10px 14px;
  border-radius:999px;
  box-shadow:var(--shadow);
  white-space:nowrap;
}

.shown b{
  color:var(--title);
}

/* =========================
   FILTER
   ========================= */

.filter-box{
  width:280px;
  background:var(--card);
  padding:22px;
  border-radius:20px;
  box-shadow:var(--shadow);
  height:fit-content;
  align-self:flex-start;
  position:sticky;
  top:100px;
}

.filter-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:6px;
}

.filter-box h2{
  margin:0;
  color:var(--title);
  font-size:26px;
}

.filter-box label{
  display:block;
  margin-top:16px;
  font-weight:bold;
  color:var(--title);
  font-size:14px;
}

.filter-box select,
.filter-box input{
  width:100%;
  padding:12px 12px;
  margin-top:7px;
  border-radius:12px;
  border:1px solid #ddd;
  background:#fff;
  font-size:14px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.filter-box select:focus,
.filter-box input:focus{
  border-color:#a855f7;
  box-shadow:0 0 0 4px rgba(168,85,247,.12);
}

.age-row{
  display:flex;
  gap:10px;
}

.reset-btn{
  margin-top:22px;
  width:100%;
  padding:13px;
  border:none;
  border-radius:14px;
  background:linear-gradient(90deg, var(--purple1), var(--purple2));
  color:#fff;
  font-weight:bold;
  cursor:pointer;
  transition:all 0.25s ease;
}

.reset-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(142, 45, 226, 0.24);
}

/* =========================
   GRID
   ========================= */

   .profiles-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, (320px, 320px));
    gap:24px;
    align-items:start;
    justify-content:flex-start;
  }

/* =========================
   CARD
   ========================= */

.profile-card{
  background:transparent;
  border-radius:24px;
  overflow:visible; /* přebíjí overflow:hidden z style.css – jinak by ořezal zelený glow dítěte */
  transition:transform .28s ease, box-shadow .28s ease;
}

.profile-card:hover{
  transform:translateY(-6px);
}

.photo-link{
  position:relative;
  display:block;
  height:360px;
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
  text-decoration:none;
  background:#ddd;
}

/* Zelený neon jen kolem fotky (photo-link), tlačítka nejsou zahrnutá.
   overflow:visible na .profile-card zajišťuje, že glow z photo-link není ořezán rodičem. */
.profile-card.online-card .photo-link{
  border:2px solid rgba(57, 255, 20, 0.80) !important;
  box-shadow:
    0 0 0 2px rgba(57, 255, 20, 0.20),
    0 0 12px rgba(57, 255, 20, 0.55),
    0 0 24px rgba(57, 255, 20, 0.28) !important;
}

.profile-card.online-card:hover .photo-link{
  box-shadow:
    0 0 0 3px rgba(57, 255, 20, 0.28),
    0 0 18px rgba(57, 255, 20, 0.70),
    0 0 36px rgba(57, 255, 20, 0.38) !important;
}

.profile-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 0.45s ease;
}

.profile-card:hover img{
  transform:scale(1.07);
}

.photo-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(16, 7, 31, 0.92) 0%,
    rgba(16, 7, 31, 0.45) 28%,
    rgba(16, 7, 31, 0.08) 58%,
    rgba(16, 7, 31, 0.02) 100%
  );
}

.card-top-badge{
  position:absolute;
  top:14px;
  left:14px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:#222;
  font-size:13px;
  font-weight:700;
  backdrop-filter:blur(6px);
  box-shadow:0 10px 20px rgba(0,0,0,.12);
}

.online-dot{
  position:absolute;
  top:12px;
  left:12px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#39ff14;
  border:2px solid #ffffff;
  box-shadow:
    0 0 0 4px rgba(57, 255, 20, 0.5),
    0 0 12px rgba(57, 255, 20, 1),
    0 0 25px rgba(57, 255, 20, 0.9);
  z-index:3;
}

.card-bottom{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  color:#fff;
  z-index:2;
}

.profile-name-link{
  text-decoration:none;
  color:#fff;
}

.profile-name-link strong{
  display:block;
  font-size:26px;
  line-height:1.1;
  font-weight:800;
  margin-bottom:6px;
  text-shadow:0 4px 12px rgba(0,0,0,.24);
}

.card-bottom span{
  display:block;
  font-size:14px;
  color:rgba(255,255,255,.9);
  text-shadow:0 3px 10px rgba(0,0,0,.2);
}

/* =========================
   CARD ACTIONS
   ========================= */

.profile-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}

.profile-btn,
.chat-btn{
  flex:1;
  border:none;
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
  cursor:pointer;
  transition:all .22s ease;
}

.profile-btn{
  background:#fff;
  color:#5b21b6;
  box-shadow:var(--shadow);
}

.chat-btn{
  background:linear-gradient(90deg, var(--purple1), var(--purple2));
  color:#fff;
  box-shadow:var(--shadow);
}

.profile-btn:hover,
.chat-btn:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-hover);
}

/* =========================
   EMPTY
   ========================= */

.empty{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  border:1px dashed rgba(0,0,0,.18);
  background:#fff;
  box-shadow:var(--shadow);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px){
  .navbar{
    padding:0 28px;
  }

  .container{
    padding:28px;
    gap:24px;
  }

  .profiles-grid{
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 1024px){
  .container{
    flex-direction:column;
  }

  .filter-box{
    width:100%;
    position:static;
  }

  .profiles-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .navbar{
    padding:14px 18px;
    gap:12px;
    height:auto;
    flex-wrap:wrap;
  }

  .nav-links{
    gap:16px;
    flex-wrap:wrap;
    flex-basis:100%;
    order:3;
    justify-content:center;
  }

  .nav-icons{
    margin-left:auto;
  }

  .profiles h1{
    font-size:32px;
  }
}

@media (max-width: 640px){
  .container{
    padding:18px;
  }

  .profiles-grid{
    grid-template-columns:1fr;
  }

  .photo-link{
    height:420px;
  }

  .profile-name-link strong{
    font-size:22px;
  }

  .profile-actions{
    flex-direction:column;
  }
}

/* =========================================
   MOBILNÍ ROZŠÍŘENÍ 320 – 611 px
   ========================================= */

@media (max-width: 611px) {

  .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: sticky !important;
    top: 0 !important;
    padding: 0 108px 0 0 !important;
    height: auto !important;
    min-height: 52px !important;
  }

  .logo {
    flex: 0 0 auto !important;
    position: static !important;
    transform: none !important;
  }

  .logo img {
    height: 32px !important;
    max-width: 140px !important;
    display: block !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-icons {
    position: absolute !important;
    right: 12px !important;
    top: 7px !important;
    transform: none !important;
    gap: 12px !important;
    display: flex !important;
  }

  .icon-circle {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  .container {
    padding: 10px !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .filter-box {
    width: 100% !important;
    padding: 14px !important;
    border-radius: 14px !important;
    position: static !important;
  }

  .filter-box h2 {
    font-size: 20px !important;
  }

  .filter-box label {
    font-size: 13px !important;
  }

  .filter-box select,
  .filter-box input {
    padding: 10px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }

  .reset-btn {
    padding: 11px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  .profiles h1 {
    font-size: 22px !important;
    line-height: 1.1 !important;
  }

  .profiles-subtitle {
    font-size: 13px !important;
    margin-top: 4px !important;
  }

  .profiles-head {
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    align-items: flex-start !important;
  }

  .shown {
    font-size: 13px !important;
    padding: 7px 12px !important;
  }

  .profiles-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .photo-link {
    height: 420px !important;
    border-radius: 18px !important;
  }

  .profile-name-link strong {
    font-size: 20px !important;
  }

  .card-bottom span {
    font-size: 13px !important;
  }

  .profile-actions {
    flex-direction: column !important;
    gap: 7px !important;
    margin-top: 8px !important;
  }

  .profile-btn,
  .chat-btn {
    padding: 10px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  .card-top-badge {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
}

/* ============================================================
   DARK PREMIUM THEME – SEZNAMKA (≤ 768 px)
   ============================================================ */
@media (max-width: 768px) {
  body {
    background: #0f0f0f !important;
    color: rgba(255,255,255,0.82) !important;
  }

  /* Filter box */
  .filter-box {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: none !important;
  }

  .filter-box h2 {
    color: #ffffff !important;
  }

  .filter-box label {
    color: rgba(255,255,255,0.72) !important;
  }

  .filter-box select,
  .filter-box input {
    background: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
  }

  .reset-btn {
    background: linear-gradient(135deg, #ff3b7a, #d6005a) !important;
    box-shadow: 0 4px 18px rgba(255,59,122,0.35) !important;
  }

  /* Heading */
  .profiles h1 {
    color: #ffffff !important;
  }

  .profiles-subtitle {
    color: rgba(255,255,255,0.50) !important;
  }

  .shown {
    background: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.72) !important;
    box-shadow: none !important;
  }

  .shown b {
    color: #ffffff !important;
  }

  /* Logo – stejná velikost jako na všech ostatních stránkách */
  .logo img {
    height: 32px !important;
    max-width: 140px !important;
  }

  .navbar {
    min-height: 52px !important;
  }

  /* Card buttons – vedle sebe, premium outline vs. solid pink */
  .profile-actions {
    flex-direction: row !important;
    gap: 12px !important;
    margin-top: 10px !important;
  }

  /* Vyšší specificita (.profile-actions .profile-btn = 0-2-0)
     přebije style.css pravidlo (.profile-actions button = 0-1-1) */
  .profile-actions .profile-btn {
    background: transparent !important;
    background-color: transparent !important;
    color: #ff2b86 !important;
    border: 1.5px solid #ff2b86 !important;
    box-shadow: none !important;
    padding: 11px 12px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
  }

  .profile-actions .profile-btn:hover,
  .profile-actions .profile-btn:active {
    background: rgba(255,43,134,0.10) !important;
    background-color: rgba(255,43,134,0.10) !important;
  }

  .profile-actions .chat-btn {
    background: linear-gradient(135deg, #ff2b86, #d4006a) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(255,43,134,0.40) !important;
    padding: 11px 12px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
  }

  .profile-actions .chat-btn:hover,
  .profile-actions .chat-btn:active {
    background: linear-gradient(135deg, #ff4fa0, #e0006e) !important;
    box-shadow: 0 6px 24px rgba(255,43,134,0.55) !important;
  }

  /* Empty state */
  .empty {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: rgba(255,255,255,0.52) !important;
    box-shadow: none !important;
  }
}

/* =============================================
   PROFILES SCROLL WRAP + SCROLL ARROWS
   Desktop reels-like scroll (≥ 981 px)
   ============================================= */

/* Mobil: wrapper je neviditelný (průhledný obal) */
.profiles-scroll-wrap {
  display: contents;
}

/* Scroll tlačítka skrytá všude kromě desktopu */
.scroll-arrows {
  display: none;
}

@media (min-width: 1025px) {

  /* Container dostane pevnou výšku = viewport minus navbar − 24px buffer.
     24px pod containerem = body pozadí (#0f0f12) – na dark theme neviditelné.
     padding-bottom: 0 – jinak spodní padding propustí tmavé body pozadí.
     padding-top: 18px – jemně zmenšena horní mezera (base je 34px). */
  .container {
    height: calc(100vh - 104px);
    overflow: hidden;
    align-items: stretch;
    padding-top: 18px;
    padding-bottom: 0;
  }

  /* Filtr se nestáhne s align:stretch – zůstane nahoře vlevo */
  .filter-box {
    align-self: flex-start;
  }

  /* Scroll wrap = flex kontejner pro main + tlačítka.
     overflow: hidden – skryje horizontal overflow a drží flex layout v pořádku.
     24px buffer (calc(100vh-104px)) zajišťuje, že scrollbar/šipky nenarážejí
     na absolutní pixel-edge viewportu. */
  .profiles-scroll-wrap {
    display: flex;
    position: relative;
    flex: 1;
    overflow: hidden;
    min-width: 0;
  }

  /* Profiles area – vlastní scroll, celá výška.
     padding-bottom: 12px – minimální vzduch pod poslední kartou, odstraňuje černou lištu.
     Scrollbar lišta skrytá – ovládání přes šipky nebo kolečko myši. */
  .profiles {
    overflow-y: auto;
    height: 100%;
    flex: 1;
    min-width: 0;
    padding-right: 68px;    /* prostor pro tlačítka */
    padding-bottom: 12px;   /* minimální vzduch pod poslední kartou */
    /* Skrýt scrollbar lištu (scroll funkčnost zůstává) */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .profiles::-webkit-scrollbar {
    display: none;
  }

  /* Scroll arrow kontejner – absolutně uprostřed vpravo */
  .scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }
}

/* Scroll arrow tlačítko – neon pink, glow */
.scroll-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff2b86, #c9005e);
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 2px rgba(255, 43, 134, 0.18),
    0 0 14px rgba(255, 43, 134, 0.58),
    0 4px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.20s ease, box-shadow 0.20s ease, opacity 0.20s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.scroll-arrow-btn:hover {
  transform: scale(1.13);
  box-shadow:
    0 0 0 3px rgba(255, 43, 134, 0.28),
    0 0 24px rgba(255, 43, 134, 0.75),
    0 6px 22px rgba(0, 0, 0, 0.28);
}

.scroll-arrow-btn:active {
  transform: scale(0.95);
  box-shadow:
    0 0 0 2px rgba(255, 43, 134, 0.18),
    0 0 10px rgba(255, 43, 134, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.18);
}

/* Disabled stav – na konci / začátku scroll */
.scroll-arrow-btn:disabled {
  opacity: 0.30;
  cursor: default;
  transform: none !important;
  box-shadow: 0 0 0 2px rgba(255, 43, 134, 0.10) !important;
}
