/* Experts Page Styles */

/* Hero Section */
.experts-hero {
    position: relative;
    padding: 8rem 0 4rem;
    text-align: center;
    background: #020617;
    overflow: hidden;
}

.experts-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.experts-hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: 10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #a78bfa;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Filter Section */
.filter-section {
    padding: 2rem 0;
    position: sticky;
    top: 70px;
    z-index: 40;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #f1f5f9;
}

/* Experts Grid */
.experts-grid-section {
    padding: 4rem 0 6rem;
    background: #020617;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.expert-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.expert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.verified-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #10b981;
    /* Emerald-500 */
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.expert-avatar {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border: 2px solid rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
}

.expert-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.expert-title {
    color: #a78bfa;
    font-size: 0.875rem;
    font-weight: 500;
}

.expert-location {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.8rem;
}

.card-body {
    padding: 1.5rem 2rem;
    flex: 1;
}

.expert-bio {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: #e2e8f0;
    font-weight: 500;
}

.card-footer {
    padding: 1.5rem 2rem;
    background: rgba(2, 6, 23, 0.3);
    border-top: 1px solid rgba(148, 163, 184, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-info {
    display: flex;
    flex-direction: column;
}

.rate-label {
    font-size: 0.75rem;
    color: #64748b;
}

.rate-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
}

.hire-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hire-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .experts-hero {
        padding: 6rem 0 3rem;
    }

    .experts-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .expert-skills {
        justify-content: center;
    }
}