﻿
/* ---------- هدر ---------- */
.page-header {
    max-width: 1300px;
    margin: 0 auto 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 0.9rem;
    position: relative;
    margin-bottom: 0.85rem;
    letter-spacing: -0.5px;
}

    .page-title i {
        color: var(--gold);
        font-size: 2.1rem;
        filter: drop-shadow(0 6px 14px var(--gold-glow));
        animation: pulse 3s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.page-title span {
    background: linear-gradient(135deg, var(--ink) 20%, var(--gold) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--ink), var(--gold), transparent);
    border-radius: 4px;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--ink-soft);
    font-weight: 500;
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- ابزار: آمار و جستجو ---------- */
.toolbar {
    max-width: 1300px;
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.stat-box {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    border: 1.5px solid var(--gold);
    border-radius: 60px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(212, 175, 55, 0.1);
}

    .stat-box i {
        color: var(--gold);
        font-size: 1.35rem;
        filter: drop-shadow(0 0 8px var(--gold-glow));
    }

.stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

    .stat-text small {
        color: rgba(212, 175, 55, 0.75);
        font-size: 0.72rem;
        font-weight: 600;
    }

    .stat-text strong {
        color: var(--gold);
        font-size: 1.15rem;
        font-weight: 800;
    }

.search-box {
    position: relative;
    flex: 1 1 320px;
    max-width: 460px;
}

    .search-box i {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gold);
        font-size: 1.05rem;
        pointer-events: none;
    }

    .search-box input {
        width: 100%;
        padding: 0.9rem 3.2rem 0.9rem 1.2rem;
        font-family: inherit;
        font-size: 0.95rem;
        color: var(--ink);
        background: var(--white);
        border: 2px solid var(--ink);
        border-radius: 60px;
        outline: none;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-sm);
    }

        .search-box input::placeholder {
            color: var(--ink-muted);
        }

        .search-box input:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18), var(--shadow-md);
        }

/* ---------- فیلتر شهرها ---------- */
.city-filter {
    max-width: 1300px;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    box-shadow: var(--shadow-sm);
}

.city-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.15rem;
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: var(--white);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
}

    .city-chip .chip-count {
        font-size: 0.72rem;
        background: var(--gold-soft);
        color: var(--gold-dark);
        padding: 0.1rem 0.5rem;
        border-radius: 20px;
        font-weight: 800;
        transition: all 0.3s ease;
    }

    .city-chip i {
        font-size: 0.85rem;
        color: var(--gold);
    }

    .city-chip:hover {
        border-color: var(--gold);
        color: var(--ink);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .city-chip.active {
        background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
        color: var(--gold);
        border-color: var(--gold);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

        .city-chip.active i {
            color: var(--gold);
        }

        .city-chip.active .chip-count {
            background: var(--gold);
            color: var(--ink);
        }

/* ---------- گرید باشگاه‌ها ---------- */
.clubs-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* ---------- کارت باشگاه ---------- */
.club-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    animation: cardIn 0.55s cubic-bezier(0.2, 0.9, 0.4, 1) backwards;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.club-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.club-card::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    pointer-events: none;
}

.club-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

    .club-card:hover::after {
        transform: scale(1.5);
        bottom: -40px;
        left: -40px;
    }

/* هدر کارت */
.club-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.club-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.4s ease;
}

.club-card:hover .club-icon {
    transform: rotate(-5deg) scale(1.05);
}

.club-icon::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--gold), transparent);
    opacity: 0.3;
    z-index: -1;
    filter: blur(6px);
}

.club-icon i {
    color: var(--gold);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.club-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.15rem;
}

.club-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.5;
}

.club-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-muted);
    background: #f5f5f5;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid #e8e8e8;
}

    .club-id-badge i {
        color: var(--gold-dark);
        font-size: 0.7rem;
    }

/* اطلاعات شهر */
.club-location {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.location-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    background: var(--gold-soft);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--gold);
    transition: all 0.3s ease;
}

    .location-row:hover {
        background: #fff4d1;
        transform: translateX(-4px);
    }

    .location-row i {
        color: var(--gold-dark);
        font-size: 1.15rem;
        flex-shrink: 0;
    }

.location-content {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex: 1;
}

.location-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.3px;
}

.location-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

/* فوتر کارت */
.club-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.85rem;
    margin-top: 0.15rem;
    border-top: 1.5px dashed rgba(212, 175, 55, 0.4);
    position: relative;
    z-index: 1;
}

.badge-city {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 40px;
    border: 1.5px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .badge-city i {
        color: var(--gold);
        font-size: 0.8rem;
    }

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    background: var(--gold-soft);
    color: var(--gold-dark);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 40px;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-view:hover {
        background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
        color: var(--white);
        border-color: var(--gold-dark);
        transform: translateX(-3px);
        box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    }

    .btn-view i {
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .btn-view:hover i {
        transform: translateX(-3px);
    }

/* ---------- حالت خالی ---------- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius);
    border: 1.5px dashed rgba(212, 175, 55, 0.5);
}

    .empty-state i {
        font-size: 4rem;
        color: var(--gold);
        display: block;
        margin-bottom: 1rem;
        opacity: 0.6;
    }

    .empty-state h3 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        color: var(--ink-muted);
        font-size: 0.95rem;
    }

/* ---------- رسپانسیو ---------- */
@media (max-width: 900px) {
    .page-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 1.75rem 1rem 3rem;
    }

    .page-title {
        font-size: 1.6rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

        .page-title i {
            font-size: 1.4rem;
        }

    .toolbar {
        gap: 0.75rem;
    }

    .stat-box {
        padding: 0.7rem 1.1rem;
        width: 100%;
        justify-content: center;
    }

    .city-filter {
        border-radius: 22px;
        padding: 0.85rem;
        gap: 0.5rem;
    }

    .city-chip {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    .clubs-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .club-card {
        padding: 1.4rem 1.25rem 1.25rem;
    }

    .club-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-view {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .club-header {
        gap: 0.75rem;
    }

    .club-icon {
        width: 52px;
        height: 52px;
    }

        .club-icon i {
            font-size: 1.5rem;
        }
}
