/* AI Service Recommender Widget Styles */

:root {
    --ai-primary: #0066FF;
    --ai-secondary: #00D9FF;
    --ai-dark: #0A0E27;
    --ai-light: #ffffff;
    --ai-gray: #f5f5f5;
    --ai-border: #e0e0e0;
    --ai-success: #00b894;
    --ai-shadow: rgba(0, 0, 0, 0.1);
    --ai-shadow-lg: rgba(0, 0, 0, 0.2);
}

/* Widget Container */
#ai-recommender-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Trigger Button - HIDDEN (Floating cards are the triggers now!) */
.ai-widget-button {
    display: none !important;
}

/* Keep animations for future use */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px var(--ai-shadow-lg);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 102, 255, 0.4);
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Widget Popup */
.ai-widget-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 450px;
    max-width: calc(100vw - 40px);
    max-height: 650px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px var(--ai-shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-widget-open .ai-widget-popup {
    display: flex;
}

/* Widget button always hidden now */

/* Header */
.ai-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    color: white;
}

.ai-widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-widget-logo {
    font-size: 32px;
}

.ai-widget-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.ai-widget-title p {
    margin: 4px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.ai-widget-close-btn {
    background: rgba(255, 60, 60, 0.9);
    border: 2px solid white;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 100;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ai-widget-close-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
}

.ai-widget-close-btn:active {
    transform: scale(0.9);
}

/* Body */
.ai-widget-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: var(--ai-gray);
}

/* Welcome Screen */
.ai-welcome {
    text-align: center;
    padding: 20px 0;
}

.ai-welcome-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.ai-welcome h2 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: var(--ai-dark);
}

.ai-welcome p {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Questions */
.ai-question-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
}

.ai-step-indicator {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.ai-question-title {
    margin: 0 0 16px 0;
    font-size: 17px;
    color: var(--ai-dark);
    font-weight: 600;
}

.ai-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ai-option-btn {
    padding: 12px 16px;
    background: white;
    border: 2px solid var(--ai-border);
    border-radius: 10px;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ai-dark);
}

.ai-option-btn:hover {
    border-color: var(--ai-primary);
    background: rgba(0, 102, 255, 0.05);
    transform: translateX(5px);
}

/* Buttons */
.ai-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ai-btn-primary {
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    color: white;
}

.ai-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

.ai-btn-secondary {
    background: white;
    color: var(--ai-primary);
    border: 2px solid var(--ai-primary);
}

.ai-btn-secondary:hover {
    background: var(--ai-primary);
    color: white;
}

.ai-btn-text {
    background: transparent;
    color: var(--ai-primary);
    text-decoration: underline;
}

.ai-back-btn {
    margin-top: 10px;
}

/* Results */
.ai-results {
    background: white;
    border-radius: 15px;
    padding: 25px;
}

.ai-results-header {
    text-align: center;
    margin-bottom: 25px;
}

.ai-success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ai-results-header h3 {
    margin: 0 0 8px 0;
    font-size: 19px;
    color: var(--ai-dark);
}

.ai-results-header p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Recommendations */
.ai-recommendations {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.ai-recommendation-card {
    background: var(--ai-gray);
    border: 2px solid var(--ai-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.ai-recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--ai-shadow);
}

.ai-top-match {
    border-color: var(--ai-primary);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 217, 255, 0.05) 100%);
}

.ai-best-match-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.ai-rec-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ai-rec-icon {
    font-size: 32px;
}

.ai-rec-header h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: var(--ai-dark);
    font-weight: 600;
}

.ai-match-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-score-bar {
    width: 100px;
    height: 6px;
    background: var(--ai-border);
    border-radius: 10px;
    overflow: hidden;
}

.ai-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.ai-match-score span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ai-primary);
}

.ai-rec-description {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.ai-rec-matches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-match-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 184, 148, 0.1);
    color: var(--ai-success);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.ai-rec-details {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ai-border);
}

.ai-rec-detail {
    font-size: 12px;
    color: #888;
}

/* CTA Section */
.ai-cta-section {
    text-align: center;
    padding: 20px;
    background: var(--ai-gray);
    border-radius: 12px;
    margin-top: 20px;
}

.ai-cta-section h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--ai-dark);
}

.ai-cta-section p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

.ai-cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.ai-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

/* Footer */
.ai-widget-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid var(--ai-border);
}

.ai-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--ai-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ai-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.ai-footer-text {
    margin: 0;
    text-align: center;
    font-size: 11px;
    color: #999;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #ai-recommender-widget {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .ai-widget-button {
        width: 100%;
        justify-content: center;
    }

    .ai-widget-popup {
        width: 100%;
        max-width: 100%;
        bottom: 70px;
        max-height: 80vh;
    }

    .ai-cta-buttons {
        flex-direction: column;
    }

    .ai-btn {
        width: 100%;
    }
}

/* Scrollbar Styling */
.ai-widget-body::-webkit-scrollbar {
    width: 6px;
}

.ai-widget-body::-webkit-scrollbar-track {
    background: transparent;
}

.ai-widget-body::-webkit-scrollbar-thumb {
    background: var(--ai-border);
    border-radius: 10px;
}

.ai-widget-body::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}


