/**
 * Tutor Personality System Styles
 * Enhanced welcome sequences and interactive components
 */

/* Bio Card Styles */
.sfpe-tutor-bio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sfpe-bio-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
}

.sfpe-bio-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.sfpe-bio-info {
    flex: 1;
}

.sfpe-bio-info h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2C3E50;
}

.sfpe-bio-info p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
}

.sfpe-bio-expand {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sfpe-bio-expand:hover {
    background: white;
    transform: scale(1.1);
}

.sfpe-bio-expand svg {
    transition: transform 0.3s ease;
}

.sfpe-tutor-bio-card.expanded .sfpe-bio-expand svg {
    transform: rotate(180deg);
}

.sfpe-bio-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.sfpe-tutor-bio-card.expanded .sfpe-bio-content {
    max-height: 300px;
    padding: 0 20px 20px;
}

.sfpe-expertise {
    margin-bottom: 15px;
}

.sfpe-expertise h4,
.sfpe-fun-fact h4 {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin: 0 0 10px 0;
}

.sfpe-expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sfpe-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f3f6;
    color: #2C3E50;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.sfpe-fun-fact p {
    margin: 0;
    font-size: 14px;
    color: #5a6c7d;
    font-style: italic;
}

/* Agenda Preview Styles */
.sfpe-agenda-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sfpe-agenda-preview h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
}

.sfpe-agenda-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sfpe-agenda-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sfpe-agenda-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sfpe-agenda-number {
    width: 32px;
    height: 32px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.sfpe-agenda-content h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2C3E50;
}

.sfpe-agenda-content p {
    margin: 0;
    font-size: 12px;
    color: #7f8c8d;
}

/* Mood Check-in Styles */
.sfpe-mood-checkin {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.sfpe-mood-checkin p {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 500;
    color: #2C3E50;
}

.sfpe-mood-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sfpe-mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.sfpe-mood-btn:hover {
    background: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.sfpe-mood-btn.selected {
    background: #e8f4f8;
    border-color: #3498db;
}

.sfpe-mood-btn span:first-child {
    font-size: 32px;
}

.sfpe-mood-btn span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: #2C3E50;
}

/* Session Recap Styles */
.sfpe-session-recap {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #d1e9f6;
}

.sfpe-session-recap h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2C3E50;
}

.sfpe-session-recap p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #5a6c7d;
}

.sfpe-recap-actions {
    display: flex;
    gap: 12px;
}

.sfpe-btn-secondary,
.sfpe-btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.sfpe-btn-secondary {
    background: white;
    color: #2C3E50;
    border: 1px solid #e0e0e0;
}

.sfpe-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.sfpe-btn-primary {
    background: #3498db;
    color: white;
}

.sfpe-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Welcome Message Animations */
.sfpe-welcome-message {
    animation: fadeInUp 0.6s ease;
}

.sfpe-welcome-sequence {
    animation: sequentialFadeIn 0.8s ease;
}

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

@keyframes sequentialFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Celebration Moments */
.sfpe-celebration {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    animation: celebrationPulse 2s ease infinite;
}

.sfpe-celebration h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.sfpe-celebration p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

@keyframes celebrationPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 25px rgba(243, 156, 18, 0.4);
    }
}

/* Tutor-specific color themes */
.sfpe-tutor-bio-card[data-tutor="James Norton"] .sfpe-tag {
    background: #2C3E5020;
    color: #2C3E50;
}

.sfpe-tutor-bio-card[data-tutor="Emma Williams"] .sfpe-tag {
    background: #E74C3C20;
    color: #E74C3C;
}

.sfpe-tutor-bio-card[data-tutor="Helen Lewis"] .sfpe-tag {
    background: #8E44AD20;
    color: #8E44AD;
}

.sfpe-tutor-bio-card[data-tutor="Aamir Patel"] .sfpe-tag {
    background: #3498DB20;
    color: #3498DB;
}

/* Enhanced Welcome Styles */
.sfpe-enhanced-welcome {
    animation: welcomeSequence 0.8s ease;
}

.sfpe-welcome-message {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sfpe-tutor-avatar-animated {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    animation: avatarBounce 2s ease infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes avatarBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

.sfpe-greeting-text {
    flex: 1;
}

.sfpe-greeting-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #2C3E50;
    font-weight: 500;
}

.sfpe-mood-response {
    padding: 15px 20px;
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    margin: 15px 0;
    font-style: italic;
    color: #2C3E50;
    animation: fadeInUp 0.5s ease;
}

@keyframes welcomeSequence {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Remove old "joined the chat" notification */
.sfpe-tutor-joined-notification {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sfpe-mood-options {
        gap: 10px;
    }
    
    .sfpe-mood-btn {
        min-width: 80px;
        padding: 12px 15px;
    }
    
    .sfpe-mood-btn span:first-child {
        font-size: 24px;
    }
    
    .sfpe-recap-actions {
        flex-direction: column;
    }
    
    .sfpe-bio-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}