/* =============================================
   NexusMC — Staff Stylesheet
   ============================================= */

/* === STAFF HERO === */
.staff-hero {
    position: relative;
    z-index: 1;
    padding: 140px 0 60px;
    text-align: center;
}

.staff-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.staff-title i {
    color: var(--primary-light);
    margin-right: 10px;
}

.staff-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* === STAFF CONTENT === */
.staff-content {
    position: relative;
    z-index: 1;
    padding: 20px 0 80px;
}

/* === STAFF GROUP === */
.staff-group {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: staffGroupAppear 0.6s ease forwards;
}

.staff-group:nth-child(1) { animation-delay: 0.1s; }
.staff-group:nth-child(2) { animation-delay: 0.3s; }
.staff-group:nth-child(3) { animation-delay: 0.5s; }
.staff-group:nth-child(4) { animation-delay: 0.7s; }

@keyframes staffGroupAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-header {
    text-align: center;
    margin-bottom: 32px;
}

.group-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    padding-bottom: 12px;
    position: relative;
    display: inline-block;
}

.group-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: var(--group-color, var(--primary));
}

/* === STAFF MEMBERS GRID (PYRAMID) === */
.staff-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* === STAFF CARD === */
.staff-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    width: 180px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--group-color, var(--primary));
}

.staff-card:hover {
    transform: translateY(-8px);
    border-color: var(--group-color, var(--primary));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 3px solid var(--group-color, var(--primary));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
}

.staff-card:hover .staff-avatar {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.staff-username {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.staff-role {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--group-color, var(--primary));
}

/* === LOADING === */
.staff-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 0;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === STAFF CTA === */
.staff-cta {
    padding: 0 0 80px;
}

/* === ERROR === */
.staff-error {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.staff-error i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .staff-title { font-size: 1.8rem; }

    .staff-card {
        width: 150px;
        padding: 20px 16px;
    }

    .staff-avatar {
        width: 64px;
        height: 64px;
    }

    .staff-username {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .staff-card {
        width: calc(50% - 10px);
    }
}
