/* ============================================
   CLUB-TYPE-TEMPLATE_STYLE.CSS — Club category listing
   Requires: common.css loaded first
   ============================================ */

/* ── Anti-jitter ── */
html {
    overflow-x: hidden;
    overflow-y: scroll;
}
body {
    overflow-x: clip;
}
#particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
body::before, body::after {
    will-change: transform;
}

/* ── Particles Container ── */
#particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* ── Tab Buttons ── */
.tab-buttons {
    display: flex;
    justify-content: center;
    margin: 24px auto 22px;
    max-width: 960px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 5px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    animation: fadeInUp .4s var(--ease-fluid) both;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 0;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all .25s var(--ease-fluid);
    text-align: center;
    font-weight: 500;
}
.tab-button.active {
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}
.tab-button:hover {
    background: rgba(255,255,255,.7);
    color: var(--text-primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Grid ── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 16px;
    animation: fadeInUp .45s var(--ease-fluid) .05s both;
}

/* ── Cards ── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .3s var(--ease-fluid), box-shadow .3s var(--ease-fluid);
    border: 1px solid var(--border-light);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}
.card-content {
    padding: 18px;
}
.card h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ── Card Button (override shared .button for this page) ── */
.card .button {
    margin-top: 8px;
    padding: 8px 18px;
    background: var(--primary-bg);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--primary-border);
    box-shadow: none;
}
.card .button:hover {
    background: rgba(14,165,233,.14);
    color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tab-buttons {
        margin: 16px;
        flex-direction: column;
        gap: 4px;
    }
    .tab-button { margin: 0; }
    .grid {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }
}
