/* Frontend Chat Styles - Ane Tarot Chat */

.ane-tarot-chat-container {
    max-width: 600px;
    margin: 40px auto;
    position: relative;
}

.ane-tarot-chat-wrapper {
    background: var(--ane-bg-color, #1a0f2e);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(139, 71, 137, 0.3);
    position: relative;
}

.ane-tarot-chat-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ane-tarot-chat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 15, 46, 0.8) 0%, rgba(26, 15, 46, 0.95) 100%);
    z-index: 1;
}

.ane-tarot-chat-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.ane-tarot-chat-header {
    text-align: center;
    margin-bottom: 30px;
}

.ane-tarot-chat-title {
    color: var(--ane-text-color, #ffffff);
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ane-tarot-chat-subtitle {
    color: var(--ane-secondary-color, #E6B8E6);
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

.ane-tarot-chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    max-height: 400px;
    padding-right: 10px;
}

.ane-tarot-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ane-tarot-chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.ane-tarot-chat-messages::-webkit-scrollbar-thumb {
    background: var(--ane-primary-color, #8B4789);
    border-radius: 10px;
}

.ane-tarot-message {
    margin-bottom: 15px;
    animation: messageSlideIn 0.3s ease-out;
}

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

.ane-tarot-message-bot {
    display: flex;
    align-items: start;
    gap: 12px;
}

.ane-tarot-message-user {
    display: flex;
    align-items: start;
    gap: 12px;
    flex-direction: row-reverse;
}

.ane-tarot-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ane-tarot-message-bot .ane-tarot-message-avatar {
    background: var(--ane-primary-color, #8B4789);
    box-shadow: 0 2px 10px rgba(139, 71, 137, 0.5);
}

.ane-tarot-message-user .ane-tarot-message-avatar {
    background: var(--ane-secondary-color, #E6B8E6);
}

.ane-tarot-message-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 75%;
    word-wrap: break-word;
}

.ane-tarot-message-bot .ane-tarot-message-bubble {
    background: rgba(139, 71, 137, 0.3);
    border: 1px solid rgba(230, 184, 230, 0.3);
    color: var(--ane-text-color, #ffffff);
}

.ane-tarot-message-user .ane-tarot-message-bubble {
    background: var(--ane-primary-color, #8B4789);
    color: #ffffff;
}

.ane-tarot-typing {
    display: flex;
    gap: 5px;
    padding: 8px 0;
}

.ane-tarot-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ane-secondary-color, #E6B8E6);
    animation: typingDot 1.4s infinite;
}

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

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

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.ane-tarot-chat-input-area {
    margin-top: auto;
}

.ane-tarot-chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ane-tarot-chat-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(230, 184, 230, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--ane-text-color, #ffffff);
    font-size: 15px;
    transition: all 0.3s;
}

.ane-tarot-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ane-tarot-chat-input:focus {
    outline: none;
    border-color: var(--ane-primary-color, #8B4789);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(139, 71, 137, 0.2);
}

.ane-tarot-chat-button {
    padding: 14px 28px;
    background: var(--ane-primary-color, #8B4789);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 71, 137, 0.4);
}

.ane-tarot-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 71, 137, 0.6);
}

.ane-tarot-chat-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ane-tarot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.ane-tarot-option-button {
    padding: 12px 20px;
    background: rgba(230, 184, 230, 0.2);
    border: 2px solid var(--ane-secondary-color, #E6B8E6);
    border-radius: 15px;
    color: var(--ane-text-color, #ffffff);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.ane-tarot-option-button:hover {
    background: rgba(230, 184, 230, 0.3);
    border-color: var(--ane-primary-color, #8B4789);
    transform: translateX(5px);
}

.ane-tarot-signs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.ane-tarot-sign-button {
    padding: 15px 10px;
    background: rgba(230, 184, 230, 0.2);
    border: 2px solid var(--ane-secondary-color, #E6B8E6);
    border-radius: 12px;
    color: var(--ane-text-color, #ffffff);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.ane-tarot-sign-button:hover {
    background: var(--ane-primary-color, #8B4789);
    border-color: var(--ane-primary-color, #8B4789);
    transform: scale(1.05);
}

.ane-tarot-sign-icon {
    font-size: 24px;
}

.ane-tarot-colors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.ane-tarot-color-button {
    padding: 12px;
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ane-tarot-color-button:hover {
    border-color: #ffffff;
    transform: scale(1.1);
}

.ane-tarot-prediction-box {
    background: linear-gradient(135deg, rgba(139, 71, 137, 0.3) 0%, rgba(92, 44, 90, 0.3) 100%);
    border: 2px solid var(--ane-primary-color, #8B4789);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    animation: predictionAppear 0.5s ease-out;
}

@keyframes predictionAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ane-tarot-prediction-title {
    color: var(--ane-secondary-color, #E6B8E6);
    font-size: 20px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.ane-tarot-prediction-text {
    color: var(--ane-text-color, #ffffff);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.ane-tarot-restart-button {
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--ane-secondary-color, #E6B8E6);
    color: #5C2C5A;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ane-tarot-restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 184, 230, 0.5);
}

/* Loading Animation */
.ane-tarot-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.ane-tarot-loading-text {
    color: var(--ane-secondary-color, #E6B8E6);
    font-size: 16px;
    font-weight: 600;
}

.ane-tarot-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(230, 184, 230, 0.3);
    border-top-color: var(--ane-secondary-color, #E6B8E6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .ane-tarot-chat-container {
        margin: 20px;
    }
    
    .ane-tarot-chat-content {
        padding: 20px;
        min-height: 450px;
    }
    
    .ane-tarot-signs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ane-tarot-colors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ane-tarot-message-bubble {
        max-width: 85%;
    }
}
