/* Team & Profile Page Styles
   Requires: styles.css (loaded first for design tokens, nav, footer) */

/* ============================================
   Team Index Page (.team-page)
   ============================================ */
.team-page {
    color: var(--text-primary);
}

.team-hero {
    padding: 120px 0 24px;
}

.team-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.team-section {
    padding: 16px 0 60px;
}

.team-page .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.team-page .team-card {
    background: var(--surface-1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--elevation-4);
    display: flex;
    flex-direction: column;
}

.team-page .team-card img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--surface-2);
}

.team-card-body {
    padding: 18px 20px 0;
    flex: 1;
}

.team-page .team-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 8px;
}

.team-card .team-langs {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 12px;
}

.team-page .team-card p {
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.team-card-footer {
    padding: 0 20px 20px;
}

.team-card .btn-secondary {
    width: 100%;
    text-align: center;
}

.team-category {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 32px 0 16px;
}

/* ============================================
   Individual Profile Page (.profile-page)
   ============================================ */
.profile-page {
    color: var(--text-primary);
}

.profile-hero {
    padding: 120px 0 8px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.profile-image {
    background: var(--surface-2);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--elevation-4);
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-title {
    gap: 10px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 600;
    margin: 0 0 12px;
}

.profile-title::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--primary-gold);
    border-radius: 50%;
}

.profile-langs {
    margin: 0 0 22px;
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 22px;
    color: var(--text-secondary);
}

.profile-credentials span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-credentials span::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--surface-4);
    border-radius: 50%;
}

.profile-section {
    margin-top: 24px;
}

.profile-section.memberships-block {
    margin-bottom: 36px;
}

.profile-section.bio-block {
    margin-top: 48px;
}

.profile-section.qa-block {
    margin-bottom: 60px;
}

.qa-accordion {
    display: grid;
    gap: 14px;
    margin: 16px auto;
    width: 75%;
}

.qa-item {
    background: var(--surface-5);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--elevation-2);
}

.qa-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--primary-brown);
    position: relative;
    padding-right: 28px;
}

.qa-item summary::-webkit-details-marker {
    display: none;
}

.qa-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-gold);
    font-weight: 700;
}

.qa-item[open] summary::after {
    content: "\2013";
}

.qa-item p {
    margin: 10px 0 0;
    color: var(--text-secondary);
}

.profile-section h2 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 12px;
}

.profile-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.profile-list li + li {
    margin-top: 8px;
}

@media (min-width: 900px) {
    .profile-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .qa-accordion {
        width: 100%;
    }
}

/* ============================================
   Biography Paragraph Slide-Up Animation
   ============================================ */
.bio-block p {
    opacity: 0;
    transform: translateY(50px);
    transition: none;
}

.bio-block p.slide-up-animated {
    animation: bioSlideUp 2s ease-out forwards;
}

@keyframes bioSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
