/* Unified Profile Cards - Roadworks Component */

.profile-card {
    flex: 0 1 100%;
    width: 100%;
    max-width: 320px;
    transition: background 0.12s, transform 0.12s, border-color 0.12s;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.profile-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Removed avatar scale to match leaderboard simplicity */

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    white-space: normal;
    width: 100%;
    line-height: 1.2;
}

.profile-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-badge .material-symbols-outlined {
    font-size: 16px;
}

/* Theme Modifiers */

/* Owner & Supporters (Orange) */
.profile-card.theme-orange { border-color: rgba(240, 158, 65, 0.2); }
.profile-card.theme-orange:hover { background: rgba(240, 158, 65, 0.06); border-color: rgba(240, 158, 65, 0.18); box-shadow: 0 4px 12px rgba(240, 158, 65, 0.05); }
.profile-card.theme-orange .profile-avatar { border-color: rgba(240, 158, 65, 0.3); }
.profile-badge.theme-orange { background: rgba(240, 158, 65, 0.15); color: #F09E41; border-color: rgba(240, 158, 65, 0.2); }

/* Admins (Red) */
.profile-card.theme-red { border-color: rgba(239, 68, 68, 0.2); }
.profile-card.theme-red:hover { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.18); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05); }
.profile-card.theme-red .profile-avatar { border-color: rgba(239, 68, 68, 0.3); }
.profile-badge.theme-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }

/* Moderators (Purple) */
.profile-card.theme-purple { border-color: rgba(147, 51, 234, 0.2); }
.profile-card.theme-purple:hover { background: rgba(147, 51, 234, 0.06); border-color: rgba(147, 51, 234, 0.18); box-shadow: 0 4px 12px rgba(147, 51, 234, 0.05); }
.profile-card.theme-purple .profile-avatar { border-color: rgba(147, 51, 234, 0.3); }
.profile-badge.theme-purple { background: rgba(147, 51, 234, 0.15); color: #9333ea; border-color: rgba(147, 51, 234, 0.2); }

/* Helpers (Blue) */
.profile-card.theme-blue { border-color: rgba(59, 130, 246, 0.2); }
.profile-card.theme-blue:hover { background: rgba(59, 130, 246, 0.06); border-color: rgba(59, 130, 246, 0.18); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05); }
.profile-card.theme-blue .profile-avatar { border-color: rgba(59, 130, 246, 0.3); }
.profile-badge.theme-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); }

/* Boosters (Pink) */
.profile-card.theme-pink { border-color: rgba(236, 72, 153, 0.2); }
.profile-card.theme-pink:hover { background: rgba(236, 72, 153, 0.06); border-color: rgba(236, 72, 153, 0.18); box-shadow: 0 4px 12px rgba(236, 72, 153, 0.05); }
.profile-card.theme-pink .profile-avatar { border-color: rgba(236, 72, 153, 0.3); }
.profile-badge.theme-pink { background: rgba(236, 72, 153, 0.15); color: #EC4899; border-color: rgba(236, 72, 153, 0.2); }

/* Skeleton States (Sync with skeleton.css) */
.profile-card.skeleton { pointer-events: none; border-color: rgba(255, 255, 255, 0.04); background: rgba(255, 255, 255, 0.03); }
.profile-avatar.skeleton { background: rgba(255, 255, 255, 0.02); border-color: transparent; }
.profile-name.skeleton { height: 18px; width: 60%; background: rgba(255, 255, 255, 0.02); border-radius: 4px; margin: 0 auto 12px; }
.profile-badge.skeleton { height: 32px; width: 100px; background: rgba(255, 255, 255, 0.02); border-radius: 999px; border: none; }
