/**
 * Team Single Page Styles
 */

/* Hero */
.team-single-hero {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.team-single-hero-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.team-single-hero .team-single-title {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
}

.team-single-hero .team-single-count {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 1rem;
}

/* Header (no hero) */
.team-single-header {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-single-header .team-single-title {
    margin: 0 0 0.5rem;
    font-size: 2.25rem;
    color: var(--base-900, #171717);
}

.team-single-header .team-single-count {
    margin: 0;
    color: var(--base-500, #737373);
}

/* Content Grid */
.team-single-content {
    max-width: 1200px;
    margin: 0 auto;
}

.team-single-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

@media (max-width: 768px) {
    .team-single-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Main */
.team-single-main {
    min-width: 0;
}

.team-single-description {
    margin-bottom: 2rem;
}

/* Positions */
.team-positions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team-position-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: var(--base-700, #404040);
    font-weight: 600;
}

.team-position-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--base-50, #fafafa);
    border: 1px solid var(--base-200, #e5e5e5);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, transform 0.15s;
}

.team-member-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.team-member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.team-member-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--base-200, #e5e5e5);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--base-500, #737373);
}

.team-member-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--base-900, #171717);
    line-height: 1.3;
}

/* Sidebar */
.team-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-info-card {
    background: var(--base-50, #fafafa);
    border: 1px solid var(--base-200, #e5e5e5);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.team-info-card h3 {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--base-500, #737373);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-info-card p {
    margin: 0 0 0.5rem;
    color: var(--base-700, #404040);
    font-size: 0.9375rem;
}

.team-info-card p:last-child {
    margin-bottom: 0;
}

.team-admin-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--base-900, #171717);
}

.team-admin-link:hover {
    color: var(--primary, #0F1FFF);
}

.team-admin-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.team-files-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-files-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--base-200, #e5e5e5);
}

.team-files-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.team-files-list a {
    color: var(--primary, #0F1FFF);
    text-decoration: none;
    font-size: 0.9375rem;
}

.team-files-list a:hover {
    text-decoration: underline;
}
