﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

    /* هاله‌های رنگی پس‌زمینه */
    body::before,
    body::after {
        content: "";
        position: fixed;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        filter: blur(140px);
        opacity: .18;
        z-index: 0;
        pointer-events: none;
    }

    body::before {
        background: #6366f1;
        top: -180px;
        right: -180px;
    }

    body::after {
        background: #0ea5e9;
        bottom: -200px;
        left: -180px;
    }

/* همه محتوا بالای هاله‌ها */
header, .toolbar, .grid {
    position: relative;
    z-index: 1;
}

/* ===== هدر صفحه ===== */
.club-page-header {
    text-align: center;
    padding: 56px 20px 32px;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeUp .7s ease both;
}

    .club-page-header h1 {
        font-size: 32px;
        font-weight: 800;
        margin: 0 0 12px;
        letter-spacing: -.5px;
        background: linear-gradient(135deg, #a5b4fc, #f0abfc);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .club-page-header p {
        font-size: 15px;
        color: #94a3b8;
        margin: 0;
        line-height: 1.9;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== نوار جستجو و فیلتر ===== */
.toolbar {
    max-width: 1100px;
    margin: 0 auto 32px;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    animation: fadeUp .7s ease .1s both;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

    .search-box input {
        width: 100%;
        padding: 12px 16px 12px 42px;
        font-family: inherit;
        font-size: 14px;
        color: #e2e8f0;
        border: 1px solid #1e293b;
        border-radius: 12px;
        background: rgba(30, 41, 59, .6);
        outline: none;
        transition: border-color .25s, background .25s;
    }

        .search-box input::placeholder {
            color: #64748b;
        }

        .search-box input:focus {
            border-color: #6366f1;
            background: rgba(30, 41, 59, .9);
        }

    .search-box svg {
        position: absolute;
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: #64748b;
        pointer-events: none;
        transition: color .25s;
    }

    .search-box:focus-within svg {
        color: #a5b4fc;
    }

.filter-btn {
    padding: 12px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(30, 41, 59, .6);
    border: 1px solid #1e293b;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .25s, color .25s, background .25s;
}

    .filter-btn:hover {
        border-color: #6366f1;
        color: #a5b4fc;
        background: rgba(99,102,241,.12);
    }

/* ===== گرید کارت‌ها ===== */
.grid {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

/* ===== کارت کاربر ===== */
.user-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(30, 41, 59, .45);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 26px 18px 22px;
    text-align: center;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s ease, background .3s ease;
    animation: fadeUp .6s ease both;
}

    .user-card:hover {
        transform: translateY(-4px);
        border-color: #4f46e5;
        background: rgba(30, 41, 59, .75);
    }

/* آواتار */
.avatar-wrap {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1e293b;
    transition: border-color .3s ease;
}

.user-card:hover .avatar {
    border-color: #6366f1;
}

/* نشان تأیید */
.verified {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
}

    .verified svg {
        width: 11px;
        height: 11px;
        color: #fff;
    }

/* اطلاعات */
.user-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #f1f5f9;
}

.user-role {
    font-size: 12.5px;
    color: #a5b4fc;
    font-weight: 600;
    margin: 0 0 14px;
}

.user-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
    padding-top: 14px;
    border-top: 1px solid #1e293b;
    transition: border-color .3s;
}

.user-card:hover .user-meta {
    border-color: rgba(99,102,241,.35);
}

.user-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-meta svg {
    width: 13px;
    height: 13px;
    color: #64748b;
}

/* ===== موبایل ===== */
@media (max-width: 600px) {
    .club-page-header h1 {
        font-size: 23px;
    }

    .club-page-header {
        padding: 36px 16px 22px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
        padding: 0 14px;
    }

    .user-card {
        padding: 20px 12px 16px;
        border-radius: 14px;
    }

    .avatar-wrap {
        width: 72px;
        height: 72px;
        margin-bottom: 12px;
    }

    .user-name {
        font-size: 13.5px;
    }

    .user-role {
        font-size: 11.5px;
    }

    .user-meta {
        gap: 10px;
        font-size: 11px;
    }
}


/*#region Info
*/

/* ===== صفحه جزئیات کاربر ===== */

/* هدر پروفایل */
.profile-header {
    padding-top: 48px;
    animation: fadeUp .7s ease both;
}

.profile-avatar-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 22px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0f172a;
    box-shadow: 0 0 0 2px #4f46e5;
    transition: box-shadow .3s ease;
}

    .profile-avatar:hover {
        box-shadow: 0 0 0 3px #6366f1;
    }

.profile-verified {
    width: 30px;
    height: 30px;
    bottom: 4px;
    left: 4px;
    border-width: 3px;
}

    .profile-verified svg {
        width: 15px;
        height: 15px;
    }

.profile-role {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
    padding: 5px 16px;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 999px;
}

/* ===== اطلاعات کلی ===== */
.info-grid {
    max-width: 1100px;
    margin: 0 auto 56px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(30, 41, 59, .45);
    border: 1px solid #1e293b;
    border-radius: 12px;
    transition: border-color .3s ease, background .3s ease;
}

    .info-item:hover {
        border-color: #4f46e5;
        background: rgba(30, 41, 59, .7);
    }

    .info-item > svg {
        width: 20px;
        height: 20px;
        color: #a5b4fc;
        flex-shrink: 0;
    }

    .info-item > div {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

.info-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: .3px;
}

.info-value {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 600;
    word-break: break-word;
}

/* ===== بخش مهارت‌ها ===== */
.skills-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.section-title {
    font-size: 19px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 22px;
    padding-right: 14px;
    border-right: 3px solid #6366f1;
    line-height: 1.1;
}

.skill-card {
    background: rgba(30, 41, 59, .4);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 18px;
    transition: border-color .3s ease, background .3s ease;
}

    .skill-card:hover {
        border-color: rgba(99,102,241,.4);
        background: rgba(30, 41, 59, .6);
    }

.skill-head {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #1e293b;
}

.skill-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px;
}

.skill-desc {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.9;
    margin: 0;
}

/* ===== فایل‌ها ===== */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.file-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(15, 23, 42, .6);
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s ease;
}

    .file-card:hover {
        transform: translateY(-3px);
        border-color: #4f46e5;
    }

.file-poster {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1e293b;
    border-bottom: 1px solid #1e293b;
}

    .file-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s cubic-bezier(.2,.8,.2,1);
    }

.file-card:hover .file-poster img {
    transform: scale(1.05);
}

.file-body {
    padding: 14px 16px 16px;
}

    .file-body h4 {
        font-size: 14px;
        font-weight: 700;
        color: #f1f5f9;
        margin: 0 0 7px;
    }

    .file-body p {
        font-size: 12.5px;
        color: #94a3b8;
        line-height: 1.8;
        margin: 0 0 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.file-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.file-link {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    color: #a5b4fc;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.25);
    transition: background .25s;
}

.file-card:hover .file-link {
    background: rgba(99,102,241,.22);
}

.file-link-alt {
    color: #cbd5e1;
    background: rgba(148,163,184,.12);
    border-color: rgba(148,163,184,.25);
}

/* ===== موبایل ===== */
@media (max-width: 600px) {
    .profile-avatar-wrap {
        width: 108px;
        height: 108px;
    }

    .profile-verified {
        width: 26px;
        height: 26px;
    }

        .profile-verified svg {
            width: 13px;
            height: 13px;
        }

    .info-grid {
        grid-template-columns: 1fr;
        padding: 0 14px;
    }

    .skill-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .file-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 17px;
    }

    .skills-section {
        padding: 0 14px;
    }
}

/*#endregion */


/* ===== حالت خالی ===== */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
    max-width: 420px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 1;
}

    .empty-state.show {
        display: flex;
        animation: fadeUp .5s ease both;
    }

    .empty-state svg {
        width: 60px;
        height: 60px;
        color: #4f46e5;
        margin-bottom: 22px;
        opacity: .65;
    }

    .empty-state h3 {
        font-size: 17px;
        font-weight: 700;
        color: #f1f5f9;
        margin: 0 0 10px;
    }

    .empty-state p {
        font-size: 13.5px;
        color: #94a3b8;
        line-height: 1.9;
        margin: 0;
    }
