:root {
    --primary-purple: #9333ea;
    --secondary-purple: #a855f7;
    --light-purple: #c084fc;
    --dark-bg: #0a0e1a;
    --card-bg: #141824;
    --accent-purple: #7c3aed;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.team-section {
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.team-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team-header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.team-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.member-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(147, 51, 234, 0.1);
    position: relative;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.4);
    border-color: var(--primary-purple);
}

.member-header {
    background: linear-gradient(135deg, #1a1f35 0%, var(--card-bg) 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-purple);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
    transition: transform 0.3s ease;
}

.member-card:hover .avatar {
    transform: scale(1.1);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 4px solid var(--card-bg);
}

.status-online {
    background-color: #43b581;
}

.status-idle {
    background-color: #faa61a;
}

.status-dnd {
    background-color: #f04747;
}

.status-offline {
    background-color: #747f8d;
}

.member-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.member-role {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
}

.member-body {
    padding: 1.5rem 2rem 2rem;
}

.member-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.member-activities {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(147, 51, 234, 0.05);
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(147, 51, 234, 0.1);
    transform: translateX(5px);
}

.activity-emoji {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-details {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-state {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 2px solid rgba(147, 51, 234, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.stat-value {
    color: var(--primary-purple);
    font-size: 1.1rem;
    font-weight: bold;
}

.member-status-text {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-online-text {
    background-color: rgba(67, 181, 129, 0.15);
    color: #43b581;
}

.status-idle-text {
    background-color: rgba(250, 166, 26, 0.15);
    color: #faa61a;
}

.status-dnd-text {
    background-color: rgba(240, 71, 71, 0.15);
    color: #f04747;
}

.status-offline-text {
    background-color: rgba(116, 127, 141, 0.15);
    color: #747f8d;
}

.loading {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 100px;
}

.error {
    text-align: center;
    color: #ef4444;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem auto;
    max-width: 600px;
    font-size: 1.2rem;
    border: 2px solid #ef4444;
}

@media (max-width: 768px) {
    .team-header h1 {
        font-size: 2.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .member-card {
        margin: 0;
    }

    .avatar-container,
    .avatar {
        width: 120px;
        height: 120px;
    }

    .member-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .team-section { padding: 2rem 1rem; }
    .team-header h1 { font-size: 2rem; }
    .team-grid { grid-template-columns: 1fr; gap: 1rem; }
    .avatar-container, .avatar { width: 100px; height: 100px; }
}