/* ============================================
 * Module: Team
 * Source views: index, show
 * ============================================ */

/* --- Index Cards --- */
.team-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: var(--site-border-radius, 8px);
    overflow: hidden;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.12) !important;
}
.team-card .card-img-top {
    height: 280px;
    object-fit: cover;
}
.team-card .card-body {
    padding: 1.25rem 1rem;
}
.team-card .card-title {
    font-weight: 600;
    color: var(--site-heading-color, #1e293b);
}
.team-card .card-title a {
    color: var(--site-heading-color, #1e293b);
}
.team-card .card-title a:hover {
    color: var(--site-primary) !important;
}

/* Image placeholder */
.team-card .team-img-placeholder,
.team-detail-card .team-img-placeholder {
    background: var(--site-background-alt, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-card .team-img-placeholder {
    height: 280px;
}
.team-card .team-img-placeholder i,
.team-detail-card .team-img-placeholder i {
    color: var(--site-secondary, #64748b);
    opacity: 0.4;
}
.team-card .team-img-placeholder i {
    font-size: 4rem;
}

/* Social links */
.team-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--site-border, #dee2e6);
    color: var(--site-secondary, #64748b);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}
.team-social-link:hover {
    background-color: var(--site-primary);
    border-color: var(--site-primary);
    color: #fff;
}

/* Department badge */
.team-dept-badge {
    background-color: var(--site-primary);
    color: #fff;
    font-weight: 500;
    font-size: 0.75rem;
}

/* List layout */
.team-list-card {
    border: none;
    border-radius: var(--site-border-radius, 8px);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.team-list-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}
.object-fit-cover {
    object-fit: cover;
}

/* Sidebar */
.team-sidebar .list-group-item.active {
    background-color: var(--site-primary);
    border-color: var(--site-primary);
}
.team-sidebar .list-group-item:not(.active):hover {
    background-color: var(--site-background-alt, #f8f9fa);
}

/* --- Detail Page --- */
.team-detail-card {
    border: none;
    border-radius: var(--site-border-radius, 8px);
    overflow: hidden;
}
.team-detail-card .card-img-top {
    max-height: 400px;
    object-fit: cover;
}
.team-detail-card .team-img-placeholder {
    height: 300px;
}
.team-detail-card .team-img-placeholder i {
    font-size: 5rem;
}
.team-detail-card .card-body {
    padding: 1.5rem;
}
.team-detail-card .card-title {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--site-heading-color, #1e293b);
}
.team-detail-card .team-contact-item {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    color: var(--site-text, #475569);
    text-decoration: none;
    transition: color 0.2s;
}
.team-detail-card .team-contact-item:hover {
    color: var(--site-primary);
}
.team-detail-card .team-contact-item i {
    width: 28px;
    text-align: center;
    color: var(--site-primary);
}

/* Bio content */
.member-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--site-text, #475569);
}
.member-bio-card {
    border: none;
    border-radius: var(--site-border-radius, 8px);
}
.member-bio-card .card-body {
    padding: 2rem;
}

/* Related members */
.team-related-card {
    border: none;
    border-radius: var(--site-border-radius, 8px);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.1) !important;
}
.team-related-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Share buttons */
.team-share-card {
    border: none;
    border-radius: var(--site-border-radius, 8px);
}
