/* 
    TheLab - Ultra Minimal Override Styles
    Clean, smaller cards with refined typography
*/

/* Smaller, cleaner team cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: var(--space-2xl);
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.member-card {
    background: var(--white);
    padding: 1.25rem;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    transition: all 150ms ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.member-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.team-member.active .member-card {
    border-color: var(--black);
}

/* Tiny avatar */
.member-avatar {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.avatar-initials {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--black);
    letter-spacing: 0.02em;
}

/* Refined typography */
.member-content h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
    color: var(--black);
    letter-spacing: -0.01em;
}

.member-title {
    font-size: 0.6875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.member-bio {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--gray-600);
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Hide stats and expertise for cleaner look */
.member-expertise,
.member-stats {
    display: none;
}

/* Ultra minimal button */
.select-advisor {
    padding: 0.5rem 0;
    background: transparent;
    color: var(--gray-600);
    border: none;
    border-top: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
    font-size: 0.625rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 100ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    margin-top: auto;
}

.select-advisor:hover {
    color: var(--black);
    border-top-color: var(--black);
}

.select-advisor span {
    position: relative;
}

.arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 100ms ease;
}

.select-advisor:hover .arrow-icon {
    transform: translateX(2px);
}

/* Cleaner navigation */
nav {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: var(--black) !important;
    border: 0.5px solid var(--black);
    border-radius: 0;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    background: var(--black);
    color: var(--white) !important;
    transform: none;
}

/* Refined section headers */
.section-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-400);
    font-weight: 400;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 400;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
}

/* Cleaner value cards */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5px;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.5px;
}

.value-card {
    padding: 1.5rem;
    background: var(--white);
    transition: all 150ms ease;
}

.value-card:hover {
    transform: none;
    background: var(--gray-50);
    box-shadow: none;
}

.value-icon {
    display: none;
}

.value-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.value-description {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--gray-600);
}

.value-details {
    display: none;
}

.value-metric {
    padding-top: 1rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.06);
}

.value-metric .metric-value {
    font-size: 1.125rem;
    font-weight: 400;
}

.value-metric .metric-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Chat interface refinements */
#app {
    max-width: 720px;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: 0;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

.conversation {
    min-height: 300px;
    max-height: 400px;
}

/* Smaller chat text */
.message-content {
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 0.625rem 0.875rem;
}

/* Fix user message styling - black border instead of background */
.message.user .message-content {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--black);
}

.message-content p {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

#user-input {
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
    min-height: 42px;
}

#send-button {
    background: var(--black);
    border-radius: 0;
    min-width: 42px;
    height: 42px;
}

#send-button svg {
    width: 16px;
    height: 16px;
}

/* Chat header text */
.chat-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

#advisor-status {
    font-size: 0.75rem;
}

.chat-subtitle {
    font-size: 0.75rem;
}

#advisor-select {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
}

.advisor-selector label {
    font-size: 0.75rem;
}

.evaluation-notice p {
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 480px;
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        padding: 1.5rem;
    }
}

/* Remove shadows globally for cleaner look */
* {
    box-shadow: none !important;
}

.member-card:hover,
.value-card:hover,
.glass-card:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

/* Smoother animations */
* {
    transition-timing-function: ease !important;
}