/* ============================
   صفحه لیست تیم‌های تولید محتوا
   تم بنفش (Accent)
   ============================ */

/* =============================================
   ۱. هدر صفحه
   ============================================= */
.hero-header {
    background: linear-gradient(135deg, #0f0c1f 0%, #1a1528 50%, #0d0a18 100%);
    border-bottom: 1px solid rgba(93, 60, 242, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 60, 242, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* =============================================
   ۲. کارت تیم
   ============================================= */
.team-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    cursor: pointer;
    animation: cardFloat 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
    opacity: 0;
}

/* افکت حاشیه درخشان */
.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, #5d3cf2, #8b74f5, #5d3cf2, #3a1fd1);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.team-card:hover::before {
    opacity: 1;
    animation: borderGlowPurple 3s ease infinite;
}

/* افکت نقطه‌های درخشان */
.team-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 60, 242, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.team-card:hover::after {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-0.75rem) scale(1.01);
    border-color: rgba(93, 60, 242, 0.4);
    box-shadow: 0 2rem 3rem -1rem rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(93, 60, 242, 0.2),
    0 0 2rem rgba(93, 60, 242, 0.1);
}

/* =============================================
   ۳. بدنه کارت (ساختار Flexbox)
   ============================================= */
.team-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem !important;
}

.team-card .card-body > * {
    margin-bottom: 0.75rem;
}

.team-card .card-body > *:last-child {
    margin-bottom: 0;
}

.team-card .flex-grow-1 {
    min-height: 0;
}

/* =============================================
   ۴. هدر کارت (آواتار + نام + اعضا + امتیاز)
   ============================================= */
.team-card-header {
    min-height: 100px;
    margin-bottom: 0.5rem;
}

.team-card-header .team-members-count {
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    background: rgba(93, 60, 242, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    color: #8b74f5;
    transition: all 0.3s ease;
}

.team-card:hover .team-card-header .team-members-count {
    background: rgba(93, 60, 242, 0.15);
    color: #a78bfa;
}

/* امتیاز ستاره‌ها در خط جدا */
.team-card-header .rating-stars {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.team-card-header .rating-stars i {
    font-size: 0.8rem;
    color: #fdbc31;
}

.team-card-header .rating-stars i.inactive {
    color: #454056;
}

.team-card-header .rating-count {
    font-size: 0.7rem;
    color: #9691a4;
    margin-right: 0.4rem;
    white-space: nowrap;
}

/* =============================================
   ۵. لوگو تیم
   ============================================= */
.team-logo-avatar {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    object-fit: cover;
    border: 2px solid rgba(93, 60, 242, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    background: linear-gradient(135deg, #2a2438, #1a1528);
    position: relative;
    z-index: 2;
}

.team-card:hover .team-logo-avatar {
    border-color: #5d3cf2;
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0.8rem 1.5rem rgba(93, 60, 242, 0.3);
}

/* حلقه دور آواتار در حالت هاور */
.team-logo-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, #5d3cf2, #8b74f5);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.team-card:hover .team-logo-avatar::after {
    opacity: 1;
}

/* =============================================
   ۶. نام تیم
   ============================================= */
.team-card h5 {
    transition: all 0.3s ease;
    display: inline-block;
}

.team-card:hover h5 {
    color: #8b74f5 !important;
    transform: translateX(-5px);
}

/* =============================================
   ۷. تگ‌های سرویس
   ============================================= */
.service-tag-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(93, 60, 242, 0.15), rgba(93, 60, 242, 0.05));
    border: 1px solid rgba(93, 60, 242, 0.2);
    border-radius: 2rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    color: #8b74f5;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.team-card:hover .service-tag-accent {
    background: rgba(93, 60, 242, 0.25);
    border-color: rgba(93, 60, 242, 0.4);
    color: #a78bfa;
    transform: translateY(-2px);
}

/* =============================================
   ۸. استاتس‌ها (امتیاز + سفارش موفق)
   ============================================= */
.stat-badge-accent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2rem;
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    color: #9691a4;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
}

.stat-badge-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(93, 60, 242, 0.2), rgba(139, 116, 245, 0.2));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.team-card:hover .stat-badge-accent {
    background: rgba(93, 60, 242, 0.08);
    transform: translateY(-2px);
}

.team-card:hover .stat-badge-accent::before {
    transform: translateX(0);
}

.stat-badge-accent i {
    font-size: 1rem;
    color: #5d3cf2;
    transition: transform 0.3s ease;
}

.team-card:hover .stat-badge-accent i {
    transform: scale(1.1);
}

.stat-badge-accent strong {
    color: #fff;
    font-weight: 700;
}

/* =============================================
   ۹. دکمه مشاهده پروفایل
   ============================================= */
.btn-view-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(95deg, #5d3cf2, #4a30c2);
    border: none;
    border-radius: 2rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-view-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, #7c5cf2, #5d3cf2);
    border-radius: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-view-accent i {
    transition: transform 0.3s ease;
}

.team-card:hover .btn-view-accent {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0.5rem 1.2rem rgba(93, 60, 242, 0.5);
    gap: 0.8rem;
}

.team-card:hover .btn-view-accent i {
    transform: translateX(-5px);
}

.team-card:hover .btn-view-accent::before {
    opacity: 1;
}

/* =============================================
   ۱۰. دکمه فیلتر
   ============================================= */
.filter-toggle-btn {
    background: linear-gradient(135deg, rgba(93, 60, 242, 0.15), rgba(93, 60, 242, 0.05));
    border: 1px solid rgba(93, 60, 242, 0.3);
    border-radius: 2rem;
    padding: 0.6rem 1.2rem;
    color: #8b74f5;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-toggle-btn:hover {
    background: #5d3cf2;
    color: #fff;
    border-color: #5d3cf2;
    transform: translateY(-2px);
    box-shadow: 0 0.3rem 0.8rem rgba(93, 60, 242, 0.4);
}

/* =============================================
   ۱۱. جستجو
   ============================================= */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9691a4;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.search-input-wrapper:focus-within i {
    color: #5d3cf2;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #5d3cf2;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(93, 60, 242, 0.1);
}

.search-input-wrapper input::placeholder {
    color: #666276;
}

/* =============================================
   ۱۲. آف‌کنس فیلتر
   ============================================= */
.bg-dark.offcanvas {
    background-color: #141124 !important;
}

/* =============================================
   ۱۳. چک‌باکس‌های سرویس
   ============================================= */
.service-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.service-type-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    user-select: none;
    backdrop-filter: blur(5px);
}

.service-type-checkbox:hover {
    background: rgba(93, 60, 242, 0.12);
    border-color: rgba(93, 60, 242, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.75rem rgba(93, 60, 242, 0.15);
}

.service-type-checkbox:has(input:checked) {
    background: linear-gradient(135deg, rgba(93, 60, 242, 0.2), rgba(93, 60, 242, 0.1));
    border-color: #5d3cf2;
    box-shadow: 0 0 0 2px rgba(93, 60, 242, 0.2),
    inset 0 0 1rem rgba(93, 60, 242, 0.1);
}

.service-type-checkbox:has(input:checked):hover {
    background: linear-gradient(135deg, rgba(93, 60, 242, 0.25), rgba(93, 60, 242, 0.15));
    box-shadow: 0 0 0 2px rgba(93, 60, 242, 0.3),
    0 0.5rem 1rem rgba(93, 60, 242, 0.2);
}

/* چک‌باکس مخفی */
.service-type-checkbox .form-check-input-dark {
    appearance: none;
    -webkit-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
}

.service-type-checkbox .form-check-input-dark:checked {
    background-color: #5d3cf2;
    border-color: #5d3cf2;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 0.5rem rgba(93, 60, 242, 0.4);
}

.service-type-checkbox .form-check-input-dark:focus {
    outline: none;
    border-color: #8b74f5;
    box-shadow: 0 0 0 3px rgba(93, 60, 242, 0.15);
}

.service-type-checkbox .checkbox-label {
    font-size: 0.8rem;
    color: #bbb7c5;
    font-weight: 500;
    transition: all 0.25s ease;
}

.service-type-checkbox:hover .checkbox-label {
    color: #d1cce0;
}

.service-type-checkbox:has(input:checked) .checkbox-label {
    color: #a78bfa;
    font-weight: 600;
}

/* =============================================
   ۱۴. فیلتر گروپ‌ها
   ============================================= */
.filter-group {
    margin-bottom: 1.25rem;
}

.filter-group label {
    font-size: 0.75rem;
    color: #9691a4;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.filter-group label i {
    margin-left: 0.4rem;
    color: #5d3cf2;
    font-size: 0.85rem;
}

/* =============================================
   ۱۵. پیجینیشن
   ============================================= */
.pagination-custom-accent .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    margin: 0 0.25rem;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-custom-accent .page-link:hover {
    background: rgba(93, 60, 242, 0.2);
    border-color: #5d3cf2;
    color: #a78bfa;
    transform: translateY(-2px);
}

.pagination-custom-accent .active .page-link {
    background: linear-gradient(95deg, #5d3cf2, #4a30c2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0.25rem 0.5rem rgba(93, 60, 242, 0.3);
}

.pagination-custom-accent .disabled .page-link {
    background: rgba(255, 255, 255, 0.02);
    color: #454056;
}

/* =============================================
   ۱۶. متن‌های رنگی
   ============================================= */
.text-accent {
    color: #5d3cf2 !important;
}

.text-accent-light {
    color: #8b74f5 !important;
}

.badge.bg-faded-accent {
    background: rgba(93, 60, 242, 0.15) !important;
    color: #8b74f5 !important;
}

/* =============================================
   ۱۷. انیمیشن‌ها
   ============================================= */
@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes borderGlowPurple {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* =============================================
   ۱۸. ریسپانسیو
   ============================================= */
@media (max-width: 768px) {
    .team-logo-avatar {
        width: 60px;
        height: 60px;
    }

    .stat-badge-accent {
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
    }

    .btn-view-accent {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
    }

    .team-card {
        border-radius: 1.25rem;
    }

    .service-type-checkbox {
        padding: 0.4rem 0.8rem;
    }

    .service-type-checkbox .checkbox-label {
        font-size: 0.7rem;
    }
}

/* =============================================
   ۱۹. متن توضیحات در حالت هاور
   ============================================= */
.team-card p {
    transition: all 0.3s ease;
}

.team-card:hover p {
    color: #bbb7c5 !important;
}

.custom-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #5d3cf2 !important; /* رنگ نارنجی تم فایندر */
    transform: translateY(-2px);
}

/* وضعیت اکتیو (شماره صفحه فعلی) */
.custom-pagination .page-item.active .page-link {
    background: #5d3cf2 !important;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(49, 59, 253, 0.4) !important;
}

.page-wrapper {
    padding: 0 !important;
}