/* TEAM PAGE COMPONENTS */

/* Hero section with stats */
.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.25);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Leadership section */
.leadership-team {
    padding: 5rem 0;
    background: #f8fafc;
}

.leadership-team h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Team member cards */
.team-member {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-member.leadership {
    border: 2px solid var(--accent-color);
}

.member-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.contact-btn,
.social-btn {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-btn:hover,
.social-btn:hover {
    background: white;
    transform: translateY(-2px);
}

.availability-status {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.availability-status.available {
    background: #16a34a;
}

.availability-status.busy {
    background: #dc2626;
}

.availability-status.on-site {
    background: #f59e0b;
}

.availability-status.on-call {
    background: #8b5cf6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.member-info {
    padding: 2rem;
}

.member-info h3,
.member-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-position {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.credential {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.member-description {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.member-specialization {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.spec-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.member-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
}

/* Departments section */
.departments {
    padding: 5rem 0;
}

.departments h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.department-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid #e5e7eb;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tab-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.department-content {
    display: none;
}

.department-content.active {
    display: block;
}

.department-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.department-header h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.department-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.show-more-placeholder {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-more-content {
    text-align: center;
    padding: 2rem;
}

.show-more-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #64748b;
}

.show-more-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.show-more-content p {
    color: #64748b;
    margin-bottom: 2rem;
}

.show-more-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.extended-team {
    margin-top: 2rem;
}

/* Team culture section */
.team-culture {
    padding: 5rem 0;
    background: #f8fafc;
}

.team-culture h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.culture-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.culture-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.culture-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.culture-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.culture-card p {
    color: #374151;
    line-height: 1.6;
}

/* Join team section */
.join-team {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.join-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.join-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.join-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.open-positions {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.open-positions h3 {
    color: white;
    margin-bottom: 2rem;
}

.positions-list {
    display: grid;
    gap: 1rem;
}

.position-item {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.position-title {
    font-weight: 600;
    color: white;
}

.position-location,
.position-type {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.join-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .member-photo {
        height: 250px;
    }
    
    .department-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .member-stats {
        gap: 1rem;
    }
    
    .join-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .position-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .team-stats {
        grid-template-columns: 1fr;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .member-credentials,
    .member-specialization {
        justify-content: center;
    }
    
    .department-header {
        margin-bottom: 2rem;
    }
    
    .open-positions {
        padding: 1.5rem;
    }
}
