/**
 * Senna Live Expert - Premium Styles
 * Version: 1.0.0
 */

:root {
    --senna-cream: #FAF7F2;
    --senna-cream-light: #FDFCFA;
    --senna-cream-dark: #F5F1E8;
    --senna-dark-green: #1B4332;
    --senna-forest-green: #2D6A4F;
    --senna-mint: #52B788;
    --senna-mint-soft: #7EC4A4;
    --senna-sage-gray: #6B7C75;
    --senna-warm-gray: #8B8680;
    --senna-charcoal: #2C2C2C;
    --senna-gold-accent: #C9A961;
    
    --senna-font-display: 'Playfair Display', Georgia, serif;
    --senna-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Trigger Button */
.senna-expert-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--senna-dark-green) 0%, var(--senna-forest-green) 50%, var(--senna-mint) 100%);
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999999;
}

.senna-expert-trigger:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 32px rgba(27, 67, 50, 0.4);
}

.senna-trigger-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.senna-trigger-avatar {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.senna-trigger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.senna-trigger-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: var(--senna-mint);
    border-radius: 50%;
    border: 3px solid white;
}

.senna-trigger-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--senna-mint);
    border-radius: 50%;
    animation: senna-pulse 2s infinite;
}

@keyframes senna-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Welcome Screen */
.senna-welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--senna-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.senna-welcome-screen.active {
    opacity: 1;
    visibility: visible;
}

.senna-welcome-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.senna-welcome-content {
    text-align: center;
    max-width: 600px;
    padding: 60px;
}

.senna-welcome-logo {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.2);
    overflow: hidden;
    background: white;
}

.senna-welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.senna-welcome-title {
    font-family: var(--senna-font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--senna-dark-green);
    margin: 0 0 16px 0;
    letter-spacing: 1px;
}

.senna-welcome-subtitle {
    font-family: var(--senna-font-body);
    font-size: 18px;
    font-style: italic;
    color: var(--senna-warm-gray);
    margin: 0 0 48px 0;
    letter-spacing: 0.5px;
}

.senna-start-button {
    padding: 20px 48px;
    background: linear-gradient(135deg, var(--senna-dark-green) 0%, var(--senna-forest-green) 100%);
    border: none;
    border-radius: 60px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.25);
}

.senna-start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(27, 67, 50, 0.35);
}

/* Main Container */
.senna-luxury-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--senna-cream-light) 0%, var(--senna-cream) 100%);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000000;
}

.senna-luxury-container.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Header */
.senna-luxury-header {
    position: relative;
    padding: 40px 60px;
    background: var(--senna-cream-light);
    border-bottom: 1px solid rgba(27, 67, 50, 0.06);
}

.senna-luxury-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--senna-gold-accent), transparent);
    opacity: 0.3;
}

.senna-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.senna-luxury-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.senna-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.15);
    overflow: hidden;
    background: white;
}

.senna-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.senna-brand-text h1 {
    font-family: var(--senna-font-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--senna-dark-green);
    margin: 0;
}

.senna-brand-tagline {
    font-family: var(--senna-font-body);
    font-size: 14px;
    font-style: italic;
    color: var(--senna-warm-gray);
    letter-spacing: 0.5px;
    margin: 2px 0 0 0;
}

.senna-header-actions {
    display: flex;
    gap: 16px;
}

.senna-header-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(27, 67, 50, 0.1);
    color: var(--senna-dark-green);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.senna-header-btn:hover {
    background: white;
    border-color: var(--senna-forest-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.1);
}

/* Content Area */
.senna-luxury-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.senna-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 0 60px;
}

/* Progress Indicator */
.senna-progress-indicator {
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.senna-progress-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.senna-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--senna-cream-dark);
    transition: all 0.4s ease;
    position: relative;
}

.senna-progress-step.active .senna-progress-dot {
    width: 16px;
    height: 16px;
    background: var(--senna-forest-green);
    box-shadow: 0 0 0 8px rgba(45, 106, 79, 0.1);
}

.senna-progress-step.completed .senna-progress-dot {
    background: var(--senna-mint);
}

.senna-progress-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--senna-warm-gray);
    opacity: 0.6;
}

.senna-progress-step.active .senna-progress-label {
    opacity: 1;
    color: var(--senna-dark-green);
}

/* Messages Container */
.senna-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 0;
    scroll-behavior: smooth;
}

.senna-messages-container::-webkit-scrollbar {
    width: 6px;
}

.senna-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.senna-messages-container::-webkit-scrollbar-thumb {
    background: rgba(27, 67, 50, 0.1);
    border-radius: 3px;
}

/* Messages */
.senna-message {
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: senna-message-appear 0.5s forwards;
}

@keyframes senna-message-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.senna-message-senna {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.senna-message-user {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.senna-message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.senna-avatar {
    background: white;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.2);
}

.senna-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.senna-user-avatar {
    background: var(--senna-cream-dark);
    color: var(--senna-warm-gray);
}

.senna-message-content {
    max-width: 65%;
}

.senna-message-bubble {
    padding: 20px 28px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

.senna-message-senna .senna-message-bubble {
    background: white;
    color: var(--senna-charcoal);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(27, 67, 50, 0.06);
}

.senna-message-user .senna-message-bubble {
    background: linear-gradient(135deg, var(--senna-forest-green) 0%, var(--senna-mint) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(82, 183, 136, 0.25);
}

/* Options Grid */
.senna-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    animation: senna-options-appear 0.4s forwards;
    animation-delay: 0.2s;
}

@keyframes senna-options-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.senna-option-card {
    padding: 20px 24px;
    background: white;
    border: 1px solid rgba(27, 67, 50, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.senna-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(27, 67, 50, 0.12);
    border-color: var(--senna-forest-green);
    background: linear-gradient(135deg, white 0%, var(--senna-cream-light) 100%);
}

.senna-option-icon {
    width: 40px;
    height: 40px;
    background: var(--senna-cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--senna-forest-green);
}

.senna-option-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--senna-charcoal);
    letter-spacing: 0.2px;
}

/* Input Area */
.senna-input-area {
    padding: 32px 0 40px;
    border-top: 1px solid rgba(27, 67, 50, 0.06);
    background: var(--senna-cream-light);
}

.senna-input-container {
    display: flex;
    gap: 16px;
    align-items: center;
}

.senna-luxury-input {
    flex: 1;
    padding: 18px 24px;
    background: white;
    border: 1px solid rgba(27, 67, 50, 0.08);
    border-radius: 16px;
    font-family: var(--senna-font-body);
    font-size: 15px;
    color: var(--senna-charcoal);
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.senna-luxury-input:focus {
    outline: none;
    border-color: var(--senna-forest-green);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.08);
}

.senna-luxury-input::placeholder {
    color: var(--senna-warm-gray);
    opacity: 0.6;
}

.senna-send-button {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--senna-dark-green) 0%, var(--senna-forest-green) 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.2);
}

.senna-send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 67, 50, 0.3);
}

/* Typing Indicator */
.senna-typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-radius: 16px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.senna-typing-dots {
    display: flex;
    gap: 6px;
}

.senna-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--senna-forest-green);
    border-radius: 50%;
    opacity: 0.3;
    animation: senna-typing-pulse 1.4s infinite;
}

.senna-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.senna-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes senna-typing-pulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.senna-typing-text {
    font-size: 13px;
    color: var(--senna-warm-gray);
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
    .senna-luxury-header {
        padding: 24px 20px;
    }
    
    .senna-header-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .senna-chat-area {
        padding: 0 20px;
    }
    
    .senna-message-content {
        max-width: 85%;
    }
    
    .senna-options-grid {
        grid-template-columns: 1fr;
    }
    
    .senna-welcome-content {
        padding: 40px 20px;
    }
    
    .senna-welcome-title {
        font-size: 36px;
    }
}