/* Chat Interface - Prominent & Clean Design */

:root {
    --chat-height-desktop: 650px;
    --chat-height-mobile: 500px;
}

/* AI Evaluation Section - Full Width Chat */
#ai-evaluation {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    padding: 80px 0;
    position: relative;
    border-top: 3px solid #000;
}

/* Removed ::before badge that was causing visual issues */

.evaluation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.evaluation-header {
    text-align: center;
    margin-bottom: 50px;
}

.evaluation-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.evaluation-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Chat Container - Full Width, Elevated */
.chat-container {
    background: #fff;
    border: 3px solid #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    height: var(--chat-height-desktop);
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
    max-width: 900px;
}

/* Active Advisor Indicator */
.active-advisor-bar {
    background: #000;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.active-advisor-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.advisor-switch-hint {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Chat Header */
.chat-header {
    background: #000;
    color: white;
    padding: 20px 25px 15px;
}

.chat-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.chat-advisor-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.4;
}

/* Messages Area */
.conversation {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #fff;
}

.message {
    margin-bottom: 24px;
    animation: messageSlide 0.3s ease;
}

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

.message.user .message-content {
    background: #000;
    color: white;
    padding: 16px 20px;
    border-radius: 20px 20px 5px 20px;
    margin-left: auto;
    max-width: 70%;
    line-height: 1.5;
}

.message.system .message-content {
    background: #f8f8f8;
    border-left: 4px solid #000;
    padding: 20px;
    max-width: 85%;
    line-height: 1.6;
}

.message.system .message-content p {
    margin: 0 0 12px 0;
}

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

.message.system .message-content strong {
    font-weight: 600;
}

/* Input Area */
.input-area {
    border-top: 2px solid #000;
    padding: 20px;
    background: #fff;
}

.input-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

#user-input {
    flex: 1;
    padding: 15px 18px;
    border: 2px solid #000;
    font-size: 1rem;
    resize: none;
    min-height: 56px;
    font-family: inherit;
    transition: all 0.2s ease;
    border-radius: 0;
}

#user-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

#user-input::placeholder {
    color: #999;
}

#send-button {
    padding: 0 24px;
    height: 56px;
    background: #000;
    color: white;
    border: 2px solid #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#send-button:hover {
    background: white;
    color: #000;
}

#send-button:active {
    transform: scale(0.98);
}

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

#send-button::after {
    content: 'SEND';
}

/* Stats Below Chat */
.evaluation-stats {
    margin-top: 60px;
    text-align: center;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

/* Team Section Updates - Make Cards More Prominent CTAs */
.team-member {
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-member.active {
    border: 3px solid #000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.team-member.active::after {
    content: 'Currently Active';
    position: absolute;
    top: -12px;
    right: 20px;
    background: #000;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
}

.member-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.member-cta-text {
    font-size: 0.9rem;
    color: #000;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.member-cta-text::after {
    content: '→';
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #ai-evaluation {
        padding: 60px 0;
    }
    
    
    .evaluation-header h2 {
        font-size: 1.8rem;
    }
    
    .evaluation-header p {
        font-size: 1rem;
    }
    
    .chat-container {
        height: var(--chat-height-mobile);
        border-width: 2px;
        border-radius: 0;
        margin: 0 -20px;
        max-width: none;
    }
    
    .active-advisor-bar {
        padding: 10px 15px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .advisor-switch-hint {
        font-size: 0.75rem;
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .chat-advisor-name {
        font-size: 1.25rem;
    }
    
    .chat-subtitle {
        font-size: 0.85rem;
    }
    
    .conversation {
        padding: 20px;
    }
    
    .message.user .message-content {
        max-width: 85%;
        font-size: 0.95rem;
    }
    
    .message.system .message-content {
        max-width: 100%;
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .input-area {
        padding: 15px;
    }
    
    #user-input {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .stats-row {
        gap: 30px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Team cards on mobile */
    .team-member {
        margin-bottom: 20px;
    }
    
    .member-cta {
        padding-top: 15px;
        margin-top: 15px;
    }
}

/* Hide old floating chat */
#app {
    display: none !important;
}

/* Hide mobile-only elements on desktop */
.mobile-advisor-toggle {
    display: none;
}

/* Update hero CTA to be more prominent */
.hero-primary-cta {
    background: #000;
    color: white;
    padding: 20px 48px;
    font-size: 1.2rem;
    border: 3px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-primary-cta:hover {
    background: white;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Small screens - stack CTAs */
@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-primary-cta,
    .hero-secondary-cta {
        width: 100%;
        max-width: 280px;
    }
}