@import url('../variables.css');

/* Team Page Styles - Mobile First Approach */

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

*::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Apply box-sizing globally */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Main content wrapper */
main {
    flex: 1 0 auto; /* Allow this to grow and push footer down */
}

/* Container */
.container-fluid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Team Header Section */
.team-header {
    text-align: center;
    padding: 3rem 0 2rem;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.team-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-header p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Team Filters */
.team-filters {
    padding: 1.5rem 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-color: var(--secondary-color);
}

/* Team Members Section */
.team-members {
    padding: 2rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.team-member {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member-photo {
    position: relative;
    height: 0;
    padding-bottom: 100%; /* Square aspect ratio */
    overflow: hidden;
}

.member-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.team-member:hover .member-social {
    opacity: 1;
    transform: translateY(0);
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--light-text);
    font-size: 0.875rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--light-text);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.member-info {
    padding: 1.25rem;
}

.member-info h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0 0 0.25rem;
}

.member-title {
    display: block;
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.member-bio {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Join Team Section */
.join-team {
    padding: 3rem 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.join-container {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.join-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 1rem;
}

.join-content p {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0.25rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: 1px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: #b38a4b;
    border-color: #b38a4b;
    transform: translateY(-2px);
}

/* Small Tablets */
@media (min-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-header h1 {
        font-size: 2.25rem;
    }
    
    .filter-container {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1.25rem;
    }
}

/* Medium Tablets */
@media (min-width: 768px) {
    .team-header {
        padding: 4rem 0 3rem;
    }
    
    .team-header h1 {
        font-size: 2.5rem;
    }
    
    .team-header p {
        font-size: 1.125rem;
    }
    
    .team-filters {
        padding: 2rem 0;
    }
    
    .filter-container {
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .team-members {
        padding: 3rem 0;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .member-info h3 {
        font-size: 1.375rem;
    }
    
    .member-title {
        font-size: 0.9375rem;
    }
    
    .member-bio {
        font-size: 0.9375rem;
    }
    
    .join-container {
        padding: 2.5rem;
    }
    
    .join-content h2 {
        font-size: 1.75rem;
    }
    
    .join-content p {
        font-size: 1rem;
    }
}

/* Large Tablets/Small Desktops */
@media (min-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .team-header {
        padding: 5rem 0 4rem;
    }
    
    .team-header h1 {
        font-size: 2.75rem;
    }
    
    .team-filters {
        padding: 2.5rem 0;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .join-team {
        padding: 4rem 0;
    }
    
    .join-container {
        padding: 3rem;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .join-content h2 {
        font-size: 2rem;
    }
}

/* Desktops and Larger */
@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-header h1 {
        font-size: 3rem;
    }
    
    .team-header p {
        font-size: 1.25rem;
    }
    
    .filter-btn {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }
    
    .member-info h3 {
        font-size: 1.5rem;
    }
    
    .member-title {
        font-size: 1rem;
    }
    
    .member-bio {
        font-size: 1rem;
    }
    
    .join-container {
        max-width: 900px;
    }
}