/**
 * Strategy Session Bot Styles
 * Alpha2Zulu Marketing
 * Created: 2025-11-25
 */

.strategy-bot {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #6C5CE7;
    border-radius: 16px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 600px;
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.3);
}

/* Header */
.strategy-bot__header {
    background: linear-gradient(135deg, #6C5CE7 0%, #5B4FD8 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.strategy-bot__avatar {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.strategy-bot__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.strategy-bot__header-text {
    flex: 1;
}

.strategy-bot__title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.strategy-bot__subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.strategy-bot__progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strategy-bot__progress-bar {
    width: 80px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.strategy-bot__progress-fill {
    height: 100%;
    background: #45E3CF;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.strategy-bot__progress-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 35px;
}

/* Messages Area */
.strategy-bot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.strategy-bot__messages::-webkit-scrollbar {
    width: 6px;
}

.strategy-bot__messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.strategy-bot__messages::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.5);
    border-radius: 3px;
}

/* Message Bubbles */
.strategy-bot__message {
    display: flex;
    gap: 0.75rem;
    animation: fadeInUp 0.3s ease;
}

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

.strategy-bot__message--bot {
    align-items: flex-start;
}

.strategy-bot__message--user {
    flex-direction: row-reverse;
}

.strategy-bot__message-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6C5CE7, #5B4FD8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.strategy-bot__message-bubble {
    max-width: 80%;
    padding: 0.875rem 1.125rem;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.strategy-bot__message--bot .strategy-bot__message-bubble {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-bottom-left-radius: 4px;
}

.strategy-bot__message--user .strategy-bot__message-bubble {
    background: linear-gradient(135deg, #6C5CE7, #5B4FD8);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Summary Card */
.strategy-bot__summary {
    animation: fadeInUp 0.3s ease;
}

.strategy-bot__summary-card {
    background: rgba(69, 227, 207, 0.1);
    border: 1px solid rgba(69, 227, 207, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
}

.strategy-bot__summary-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.strategy-bot__summary-card strong {
    color: #45E3CF;
}

/* Input Area */
.strategy-bot__input-area {
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Text Input */
.strategy-bot__text-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.strategy-bot__text-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.strategy-bot__text-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.strategy-bot__text-input:focus {
    outline: none;
    border-color: #6C5CE7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.strategy-bot__text-input--error {
    border-color: #ff6b6b;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.strategy-bot__send {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6C5CE7, #5B4FD8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.strategy-bot__send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.strategy-bot__send svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.strategy-bot__skip {
    display: block;
    margin: 0.75rem auto 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.strategy-bot__skip:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Options Buttons */
.strategy-bot__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
}

.strategy-bot__option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(108, 92, 231, 0.5);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.strategy-bot__option:hover {
    background: rgba(108, 92, 231, 0.3);
    border-color: #6C5CE7;
    transform: translateY(-2px);
}

.strategy-bot__option:active {
    transform: translateY(0);
}

/* CTA Button */
.strategy-bot__cta {
    text-align: center;
}

.strategy-bot__cta-btn {
    background: linear-gradient(135deg, #45E3CF, #3DD9C3);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(69, 227, 207, 0.3);
}

.strategy-bot__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(69, 227, 207, 0.4);
}

/* Calendar */
.strategy-bot__calendar {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    animation: fadeInUp 0.3s ease;
}

.strategy-bot__calendar-iframe {
    width: 100%;
    height: 450px;
    border: none;
    background: white;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .strategy-bot {
        height: 500px;
        border-radius: 12px;
        margin: 0 0.5rem;
    }

    .strategy-bot__header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .strategy-bot__progress {
        width: 100%;
        margin-top: 0.75rem;
        justify-content: center;
    }

    .strategy-bot__progress-bar {
        flex: 1;
        max-width: 150px;
    }

    .strategy-bot__messages {
        padding: 1rem;
    }

    .strategy-bot__message-bubble {
        max-width: 85%;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .strategy-bot__input-area {
        padding: 0.75rem 1rem 1rem;
    }

    .strategy-bot__option {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }

    .strategy-bot__calendar-iframe {
        height: 350px;
    }
}

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

.strategy-bot__typing {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: fit-content;
}

.strategy-bot__typing span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.strategy-bot__typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.strategy-bot__typing span:nth-child(3) {
    animation-delay: 0.4s;
}
