/* ============================================
   NGO TEAM PAGE STYLES
   ============================================ */

/* Team Page Header */
.team-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.team-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.team-page-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.team-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.team-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.team-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Team Page Container */
.team-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.team-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 240px));
    gap: 1.25rem;
    justify-content: center;
}

/* Override fixed width properties from ngo_detail.css for grid layout */
.team-page-grid .team-member-card-link {
    flex: none !important;
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
}

.team-page-grid .team-member-card {
    flex: none !important;
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
}

.team-page-grid .team-member-card {
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Compact card styling for team page */
.team-page-grid .team-member-photo-wrapper {
    height: 160px !important;
}

.team-page-grid .team-member-info {
    padding: 0.75rem 1rem 1rem 1rem !important;
}

.team-page-grid .team-member-name {
    font-size: 0.95rem !important;
}

.team-page-grid .team-member-role {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
}

.team-page-grid .team-member-info p.text-muted {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
}

.team-page-grid .team-member-location {
    font-size: 0.75rem !important;
}

.team-page-grid .team-member-header {
    padding-bottom: 0.5rem !important;
}

/* Animation delays for staggered card appearance */
.team-page-grid .team-member-card:nth-child(1) { animation-delay: 0.05s; }
.team-page-grid .team-member-card:nth-child(2) { animation-delay: 0.1s; }
.team-page-grid .team-member-card:nth-child(3) { animation-delay: 0.15s; }
.team-page-grid .team-member-card:nth-child(4) { animation-delay: 0.2s; }
.team-page-grid .team-member-card:nth-child(5) { animation-delay: 0.25s; }
.team-page-grid .team-member-card:nth-child(6) { animation-delay: 0.3s; }
.team-page-grid .team-member-card:nth-child(7) { animation-delay: 0.35s; }
.team-page-grid .team-member-card:nth-child(8) { animation-delay: 0.4s; }

/* Back to Profile Link */
.back-to-profile {
    margin-bottom: 2rem;
}

.back-to-profile a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

[data-theme="dark"] .back-to-profile a {
    color: #667eea;
}

.back-to-profile a:hover {
    gap: 0.75rem;
    color: #764ba2;
}

/* Empty Team State */
.empty-team {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-team i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-team h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-team p {
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .team-page-header h1 {
        font-size: 2rem;
    }

    .team-page-header p {
        font-size: 1rem;
    }

    .team-stat-value {
        font-size: 1.5rem;
    }

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

    .team-page-container {
        padding: 0 1rem 3rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .team-page-header {
        padding: 2rem 0;
    }

    .team-page-header h1 {
        font-size: 1.75rem;
    }

    .team-stat-value {
        font-size: 1.25rem;
    }

    .team-page-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-page-grid .team-member-photo-wrapper {
        height: 140px !important;
    }
}
