@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* WP Smart Product Advisor - Modern Neuromarketing UI */

:root {
    --wpspa-primary: #4f46e5;
    /* Deeper Indigo for better contrast */
    --wpspa-primary-hover: #4338ca;
    --wpspa-bg: #f8fafc;
    --wpspa-card-bg: rgba(255, 255, 255, 0.95);
    --wpspa-text-main: #0f172a;
    /* Darker slate for strong legibility */
    --wpspa-text-soft: #334155;
    /* Darker soft text */
    --wpspa-border: #cbd5e1;
    --wpspa-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --wpspa-radius: 20px;
    --wpspa-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpspa-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--wpspa-card-bg);
    border-radius: var(--wpspa-radius);
    box-shadow: var(--wpspa-shadow);
    padding: 40px 35px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.wpspa-progress {
    width: 100%;
    height: 8px;
    background: var(--wpspa-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 35px;
}

.wpspa-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #818cf8, #6366f1);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpspa-question {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wpspa-text-main);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

.wpspa-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.wpspa-options-vertical {
    grid-template-columns: 1fr;
    gap: 15px;
}

.wpspa-option-btn {
    background: var(--wpspa-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--wpspa-transition);
    color: var(--wpspa-text-main);
}

.wpspa-options-vertical .wpspa-option-btn {
    flex-direction: row;
    justify-content: flex-start;
    padding: 20px 25px;
}

.wpspa-options-vertical .wpspa-icon {
    margin-bottom: 0;
    margin-right: 20px;
    font-size: 1.8rem;
}

.wpspa-option-btn:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.wpspa-option-btn:focus {
    outline: none;
    border-color: var(--wpspa-primary);
}

.wpspa-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wpspa-primary);
}

.wpspa-svg-icon svg {
    width: 32px;
    height: 32px;
}

.wpspa-text {
    font-weight: 600;
    font-size: 1.1rem;
    /* Slightly larger for better reading */
}

/* Animations */
.wpspa-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.wpspa-fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loader */
.wpspa-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}

.wpspa-spinner {
    width: 65px;
    height: 65px;
    border: 4px solid var(--wpspa-border);
    border-top-color: var(--wpspa-primary);
    border-radius: 50%;
    animation: wpspa-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-bottom: 30px;
}

@keyframes wpspa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.wpspa-loader-text {
    font-size: 1.2rem;
    color: var(--wpspa-text-main);
    font-weight: 600;
    transition: opacity 0.4s ease;
}

/* Result Screen */
.wpspa-result-header {
    text-align: center;
    margin-bottom: 35px;
}

.wpspa-result-header h3 {
    font-size: 1.2rem;
    color: var(--wpspa-text-main);
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 15px;
}

.wpspa-soft-text {
    color: var(--wpspa-text-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.wpspa-product-card {
    background: linear-gradient(145deg, #ffffff, var(--wpspa-bg));
    border: 1px solid var(--wpspa-border);
    border-radius: var(--wpspa-radius);
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--wpspa-transition);
}

.wpspa-product-card:hover {
    box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: #c7d2fe;
}

.wpspa-img-placeholder {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.wpspa-product-details {
    flex: 1;
}

.wpspa-product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wpspa-text-main);
    margin: 0 0 8px 0;
}

.wpspa-product-desc {
    font-size: 0.95rem;
    color: var(--wpspa-text-soft);
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.wpspa-action-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--wpspa-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--wpspa-transition);
}

.wpspa-action-link:hover {
    background: var(--wpspa-primary-hover);
    color: white;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.wpspa-arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.wpspa-action-link:hover .wpspa-arrow {
    transform: translateX(5px);
}

@media (max-width: 520px) {
    .wpspa-options {
        grid-template-columns: 1fr;
    }

    .wpspa-product-card {
        flex-direction: column;
        text-align: center;
    }

    .wpspa-img-placeholder {
        margin: 0 auto;
    }
}