﻿@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&family=Outfit:wght@600;700;800;900&display=swap');
@import url('theme.css?v=6');
@import url('nav.css?v=9');

/* ── Design Tokens (mapa na theme.css, barvy spolků u karet dál přes --ac) ── */
:root {
    --bg: var(--pass-bg);
    --surface: var(--pass-surface);
    --surface-dim: var(--pass-surface-dim);
    --border: var(--pass-line);
    --border-strong: var(--pass-line-strong);
    --ink: var(--pass-ink);
    --ink-2: var(--pass-ink-2);
    --muted: var(--pass-muted);
    --muted-2: var(--pass-muted-2);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 20px -5px rgba(0,0,0,.07), 0 4px 8px -4px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 40px -10px rgba(0,0,0,.1);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}
html[data-theme="dark"] {
    --shadow-xs: 0 1px 2px rgba(0,0,0,.35);
    --shadow-sm: 0 2px 6px rgba(0,0,0,.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,.45);
    --shadow-lg: 0 12px 28px rgba(0,0,0,.5);
    --shadow-xl: 0 24px 50px rgba(0,0,0,.55);
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: 56px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
    overflow-x: hidden;
}

body::-webkit-scrollbar { display: none; }

.page-alert {
    max-width: 1000px;
    margin: 14px auto 0;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--pass-alert-bg);
    border: 1px solid var(--pass-alert-border);
    color: var(--pass-alert-ink);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-xs);
}

/* ── Shell ── */
.shell {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 0;
    flex: 1;
}

/* ── Hero ── */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 28px 0 24px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-h1 {
    margin: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.05;
    color: var(--ink);
}

.hero-p {
    margin: 8px 0 12px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.5;
    max-width: 500px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    flex-shrink: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.10);
    border: 1px solid rgba(255,255,255,.06);
}

.hero-stat-num {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.hero-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .5;
    margin-top: 4px;
}

/* ── Search ── */
.search-wrap { position: relative; margin-bottom: 32px; }

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted-2);
    pointer-events: none;
    transition: color .2s;
}

.search-wrap:focus-within .search-icon { color: var(--ink-2); }

.search-input {
    width: 100%;
    padding: 15px 18px 15px 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    box-shadow: var(--shadow-xs);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.search-input:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 4px rgba(100,116,139,.08), var(--shadow-sm);
}

.search-input::placeholder { color: var(--muted-2); }

/* ── Section ── */
.section { margin-bottom: 36px; }

.section-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-title {
    margin: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.section-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface-dim);
    padding: 2px 10px;
    border-radius: var(--radius-xs);
}

/* ── Grid ── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

/* ── Club Card ── */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cc {
    animation: cardIn .5s var(--ease) both;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-xs);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
    position: relative;
    overflow: hidden;
}

.cc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 6%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none;
}

.cc:hover::before { opacity: 1; }

.cc:hover {
    border-color: color-mix(in srgb, var(--ac) 35%, var(--border));
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.cc-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.cc-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: -.3px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
    overflow: hidden;
}

.cc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cc-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}

.cc-count {
    font-size: 11.5px;
    font-weight: 600;
    color: color-mix(in srgb, var(--ac) 80%, #333);
}

.cc-count-zero { color: var(--muted-2); }

.cc-socials {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sc-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background: var(--surface-dim);
    color: var(--muted);
    transition: background .2s var(--ease), color .2s var(--ease);
}

.sc-icon svg { width: 13px; height: 13px; }

.cc:hover .sc-icon {
    background: color-mix(in srgb, var(--ac) 12%, var(--surface-dim));
    color: var(--ac);
}

.cc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    position: relative;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--ac) 8%, var(--surface-dim));
    color: color-mix(in srgb, var(--ac) 75%, #333);
    letter-spacing: .01em;
    transition: background .2s var(--ease);
}

.cc:hover .tag {
    background: color-mix(in srgb, var(--ac) 14%, var(--surface-dim));
}

.cc-desc {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--muted);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.cc-avatar img.cc-avatar-img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}

.cc-avatar img.cc-avatar-img.pass-img--white {
    filter: brightness(0) invert(1);
}

/* ── Footer ── */
.foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 28px 0 36px;
    font-size: 12px;
    color: var(--muted-2);
    font-weight: 600;
}

.foot-sep {
    opacity: .4;
}

.footer-link {
    background: none;
    border: none;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .15s;
}

.footer-link:hover {
    text-decoration-color: currentColor;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .page-alert { margin: 12px 16px 0; padding: 11px 14px; }
    .hero { flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px 0 18px; }
    .hero-h1 { font-size: 28px; }
    .hero-stat { flex-direction: row; gap: 10px; padding: 12px 18px; }
    .hero-stat-num { font-size: 28px; }
    .grid { grid-template-columns: 1fr; }
    .search-input { padding: 13px 16px 13px 44px; font-size: 14px; }
    .section-title { font-size: 18px; }
}

@media (max-width: 380px) {
    .page-alert { margin-left: 12px; margin-right: 12px; }
    .shell { padding: 0 12px 0; }
    .cc { padding: 14px; }
    .cc-name { font-size: 14px; }
}

@media (min-width: 960px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}