/* ============================================
   TEAM PAGES STYLES
   ============================================ */

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

/* Team Member Card */
.team-member-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 170, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 170, 0.1);
}

/* Member Avatar */
.member-avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.team-member-card:hover .member-avatar-container {
    border-color: rgba(0, 255, 170, 0.5);
}

.member-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-member-card:hover .member-avatar {
    filter: grayscale(0%);
}

/* Member Info */
.member-info {
    width: 100%;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.member-role {
    font-size: 0.95rem;
    color: rgba(0, 255, 170, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.member-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.location-icon {
    opacity: 0.6;
}

/* Department Section */
.team-department-section {
    margin-top: 4rem;
}

.team-department-section:first-of-type {
    margin-top: 3rem;
}

.department-header {
    margin-bottom: 2rem;
}

.department-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ffaa;
    margin-bottom: 0.5rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

.department-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* ============================================
   TEAM MEMBER PROFILE PAGE
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: rgba(0, 255, 170, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #00ffaa;
}

.breadcrumb span:not(:has(a)) {
    color: rgba(255, 255, 255, 0.4);
}

/* Profile Header */
.team-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .team-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.profile-avatar-large {
    flex-shrink: 0;
}

.avatar-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    filter: grayscale(100%);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.profile-role {
    font-size: 1.3rem;
    color: #00ffaa;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.profile-department {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.profile-location {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .profile-location {
        justify-content: center;
    }
}

/* Bio Section */
.bio-text {
    line-height: 1.8;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Profile Content Section */
.profile-content-section {
    margin-top: 3rem;
}

.profile-content-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-all-link {
    color: #00ffaa;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.view-all-link:hover {
    opacity: 0.8;
}

/* ============================================
   BLOG AUTHOR PAGE
   ============================================ */

/* Author Header */
.author-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        text-align: center;
    }
}

.author-avatar-container {
    flex-shrink: 0;
}

.author-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    filter: grayscale(100%);
}

.author-header-info {
    flex: 1;
}

.author-header-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.author-role-bio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .author-role-bio {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.author-role {
    color: #00ffaa;
    font-weight: 600;
}

.author-location {
    color: rgba(255, 255, 255, 0.6);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

.author-bio-short {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.view-profile-link {
    color: #00ffaa;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: opacity 0.2s ease;
}

.view-profile-link:hover {
    opacity: 0.8;
}

/* Posts Count Bar */
.posts-count-bar {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.posts-count-bar p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.blog-post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-post-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 170, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 170, 0.1);
}

.blog-post-card .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.blog-post-card:hover .post-image {
    filter: grayscale(0%);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.post-category {
    color: #00ffaa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.post-date {
    color: rgba(255, 255, 255, 0.5);
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.4;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more {
    color: #00ffaa;
    font-weight: 500;
    font-size: 0.9rem;
}

.post-views {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-link {
    color: #00ffaa;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: rgba(0, 255, 170, 0.1);
    border-color: #00ffaa;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Profile Bio Section */
.profile-bio-section {
    margin: 2rem auto;
    max-width: 900px;
    margin-top: 2rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 3rem;
}
