/* =========================================================
   Kulüpler Birliği — üye topluluklar (topluluklar.html)
   Kartlar style.css'teki thb-club-* bileşenini kullanır.
   ========================================================= */
.tp {
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ms {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* ---------- Hero ---------- */
.tp-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--thb-header-h, 62px) + 72px) 0 72px;
    background: #02102a;
    color: #fff;
    isolation: isolate;
}

.tp-hero::before {
    content: '';
    position: absolute;
    right: -180px;
    top: -220px;
    width: 640px;
    height: 640px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.02), 0 0 0 160px rgba(255, 255, 255, 0.015);
    z-index: -1;
}

.tp-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: end;
    gap: 48px;
}

.tp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.tp-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: currentColor;
}

.tp-hero h1 {
    margin: 0;
    font-family: 'Poppins', 'Lexend Deca', sans-serif;
    font-size: clamp(34px, 4.6vw, 60px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.tp-hero h1 span {
    color: rgba(255, 255, 255, 0.5);
}

.tp-hero-lead {
    max-width: 580px;
    margin: 22px 0 0;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.tp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.tp-stats div {
    padding: 4px 0 4px 22px;
}

.tp-stats dt {
    font-family: 'Poppins', 'Lexend Deca', sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.tp-stats dd {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Liste ---------- */
.tp-list {
    padding-top: 48px;
}

.tp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tp-search {
    position: relative;
    flex: 1 1 320px;
    max-width: 420px;
}

.tp-search > .ms {
    position: absolute;
    left: 16px;
    top: 50%;
    color: #8a92a2;
    transform: translateY(-50%);
    pointer-events: none;
}

.tp-search input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 46px;
    border: 1px solid #e3e7ee;
    border-radius: 14px;
    background: #f6f7f9;
    font: 500 14.5px 'Lexend Deca', sans-serif;
    color: #02102a;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tp-search input::placeholder {
    color: #8a92a2;
}

.tp-search input:focus {
    border-color: #02102a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(2, 16, 42, 0.07);
}

.tp-search input::-webkit-search-cancel-button {
    display: none;
}

.tp-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7383;
    cursor: pointer;
    transform: translateY(-50%);
}

.tp-clear:hover {
    background: #e9ecf1;
}

.tp-result {
    font-size: 13.5px;
    color: #6b7383;
}

.tp-list .thb-tabs {
    justify-content: flex-start;
    margin-top: 28px;
    margin-bottom: 32px;
}

.tp-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef1f5;
    font-size: 11.5px;
    font-weight: 600;
    color: #5f6878;
}

.thb-tab.is-active .tp-count {
    background: #02102a;
    color: #fff;
}

.thb-club-logo > span {
    font-family: 'Poppins', 'Lexend Deca', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #02102a;
}

.tp-uni {
    margin: -4px 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7383;
}

.tp-list .thb-club-card[hidden] {
    display: none;
}

.tp-empty {
    padding: 64px 20px;
    border: 1px dashed #d8dde5;
    border-radius: 18px;
    text-align: center;
    color: #6b7383;
}

.tp-empty .ms {
    font-size: 36px;
    color: #a3aab6;
}

.tp-empty strong {
    display: block;
    margin: 10px 0 4px;
    font-size: 16px;
    color: #02102a;
}

.tp-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #e3e7ee;
    border-radius: 14px;
    background: #f6f7f9;
    font-size: 13.5px;
    line-height: 1.55;
    color: #4a5263;
}

.tp-note[hidden] {
    display: none;
}

.tp-note .ms {
    flex: none;
    color: #02102a;
}

.tp-note code {
    padding: 1px 6px;
    border-radius: 6px;
    background: #e9ecf1;
    font-size: 12.5px;
}

@media (max-width: 900px) {
    .tp-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .tp-stats {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .tp-stats div {
        padding: 20px 0 0;
    }
}

@media (max-width: 600px) {
    .tp-hero {
        padding: calc(var(--thb-header-h, 54px) + 44px) 0 56px;
    }

    .tp-hero-lead {
        font-size: 15.5px;
    }

    .tp-stats dt {
        font-size: 28px;
    }

    .tp-search {
        max-width: none;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tp-clear[hidden],
.tp-empty[hidden] {
    display: none;
}

/* ---------- Kart: yaklaşan etkinlik bağlantısı ---------- */
.tp-card-ev {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 4px 0 14px;
    padding: 6px 10px 6px 8px;
    border: 0;
    border-radius: 8px;
    background: #eef1f6;
    font: 600 12.5px 'Lexend Deca', sans-serif;
    color: #02102a;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tp-card-ev .ms {
    font-size: 16px;
}

.tp-card-ev .ms:last-child {
    font-size: 14px;
    opacity: 0.6;
    transition: transform 0.25s ease;
}

.tp-card-ev:hover {
    background: #02102a;
    color: #fff;
}

.tp-card-ev:hover .ms:last-child {
    transform: translateY(2px);
    opacity: 1;
}

/* ---------- Yaklaşan etkinlikler ---------- */
.tp-events {
    padding: 88px 0 104px;
    background: #f6f7f9;
    scroll-margin-top: calc(var(--thb-header-h, 62px) + 12px);
}

.tp-eyebrow.is-dark {
    color: #6b7383;
}

.tp-ev-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tp-ev-head h2 {
    margin: 0;
    font-family: 'Poppins', 'Lexend Deca', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #02102a;
}

.tp-ev-lead {
    max-width: 560px;
    margin: 12px 0 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: #5f6878;
}

.tp-ev-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 6px 0 16px;
    border-radius: 999px;
    background: #02102a;
    color: #fff;
    font-size: 14px;
    animation: tpPop 0.25s ease;
}

.tp-ev-filter[hidden] {
    display: none;
}

.tp-ev-filter-label {
    color: rgba(255, 255, 255, 0.6);
}

.tp-ev-filter strong {
    font-weight: 600;
}

.tp-ev-filter button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.tp-ev-filter button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.tp-ev-filter button .ms {
    font-size: 18px;
}

@keyframes tpPop {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

