/* Staff Hero Section */
.staff-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 120px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.staff-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 30, 140, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 30, 140, 0.05) 0%, transparent 50%);
}

.hero-content-staff {
    max-width: 800px;
    z-index: 1;
}

.staff-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.staff-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Staff Container */
.staff-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.staff-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 2rem auto 0;
    font-weight: 400;
    line-height: 1.6;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.staff-member {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.staff-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.staff-member:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(74, 30, 140, 0.3);
}

.staff-member:hover::before {
    transform: scaleX(1);
}

/* Staff Avatar */
.staff-avatar-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-tertiary) 100%);
}

.staff-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skin-render {
    width: auto;
    height: 200px;
    image-rendering: crisp-edges;
    position: absolute;
    bottom: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.staff-member:hover .skin-render {
    transform: scale(1.08) translateY(-5px);
}

/* Staff Badges */
.staff-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.staff-badge.owner {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.staff-badge.manager {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.staff-badge.admin {
    background: linear-gradient(135deg, #10b981, #059669);
}

.staff-badge.mod {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.staff-badge.helper {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.staff-badge.builder {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Staff Info */
.staff-info {
    padding: 2rem;
}

.staff-info h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.staff-role {
    color: var(--accent-primary);
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.staff-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Staff Social */
.staff-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    color: var(--text-secondary);
    background: var(--bg-secondary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 15px rgba(74, 30, 140, 0.3);
}

/* Role Sections */
.role-section {
    margin-bottom: 4rem;
}

.role-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
}

.role-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 0 rgba(74, 30, 140, 0.3); }
    50% { box-shadow: 0 0 20px rgba(74, 30, 140, 0.6); }
    100% { box-shadow: 0 0 0 rgba(74, 30, 140, 0.3); }
}

.staff-member {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.staff-member:nth-child(1) { animation-delay: 0.1s; }
.staff-member:nth-child(2) { animation-delay: 0.2s; }
.staff-member:nth-child(3) { animation-delay: 0.3s; }
.staff-member:nth-child(4) { animation-delay: 0.4s; }
.staff-member:nth-child(5) { animation-delay: 0.5s; }

.staff-member:hover .staff-badge {
    animation: glowPulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .staff-hero {
        min-height: 30vh;
        padding: 100px 20px 40px;
    }
    
    .staff-title {
        font-size: 2.8rem;
    }
    
    .staff-container {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin: 1.5rem auto 0;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
        margin: 2rem auto;
    }
    
    .staff-avatar-container {
        height: 200px;
    }
    
    .skin-render {
        height: 180px;
    }
    
    .staff-info {
        padding: 1.5rem;
    }
    
    .staff-info h2 {
        font-size: 1.4rem;
    }
    
    .role-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .staff-hero {
        padding: 80px 15px 30px;
    }
    
    .staff-title {
        font-size: 2.2rem;
    }
    
    .staff-subtitle {
        font-size: 1rem;
    }
    
    .staff-container {
        padding: 30px 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 60px;
        bottom: -12px;
    }
    
    .staff-member {
        margin: 0 0.5rem;
        border-radius: 12px;
    }
    
    .staff-info h2 {
        font-size: 1.3rem;
    }
    
    .staff-social {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    
    .role-title {
        font-size: 1.4rem;
    }
}

/* Accessibility */
.staff-member:focus-within {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.social-link:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Loading States */
.staff-member.loading {
    background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-secondary) 50%, var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.staff-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.staff-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.staff-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.staff-empty p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}