/* Drizzl Flavor Quiz CSS */

.drizzl-quiz-container {
    margin: 4rem auto;
    width: 100%;
    font-family: 'Inter', system-ui, sans-serif;
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Flex structure of screens */
.drizzl-quiz-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    animation: quizFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.drizzl-quiz-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.drizzl-quiz-desc {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
    margin: 0;
    max-width: 500px;
}

/* Options Wrapper */
.drizzl-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

/* Option button */
.drizzl-quiz-option-btn {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drizzl-quiz-option-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.drizzl-quiz-option-btn.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* General Buttons */
.drizzl-quiz-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.drizzl-quiz-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* Progress bar container */
.drizzl-quiz-progress {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    display: flex;
}

/* Progress bar filled part */
.drizzl-quiz-progress-bar {
    height: 8px;
    background-color: #3b82f6;
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navigation footer */
.drizzl-quiz-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2rem;
}

.drizzl-quiz-btn-nav {
    background: transparent;
    border: 2px solid #cbd5e1;
    color: #475569;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
}

.drizzl-quiz-btn-nav:hover {
    background: #f8fafc;
    color: #0f172a;
}

.drizzl-quiz-btn-nav[disabled] {
    opacity: 0;
    pointer-events: none;
}

/* Recommendation Result Screen styles */
.quiz-recommendation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.drizzl-recipe-result-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    margin-top: 1.5rem;
    justify-content: center;
    text-align: right;
}

.drizzl-recipe-result-wrapper .recipe-card {
    background: #fdfaf6;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1e9df;
    max-width: 480px;
    text-align: center;
    box-sizing: border-box;
}

.drizzl-recipe-result-wrapper .recipe-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.drizzl-recipe-result-wrapper .recipe-instructions {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.drizzl-recipe-result-wrapper .recipe-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.drizzl-recipe-result-wrapper .meta-badge {
    background: rgba(0,0,0,0.04);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.drizzl-recipe-result-wrapper .meta-badge svg {
    width: 14px;
    height: 14px;
}
.drizzl-recipe-result-wrapper .meta-badge.time-badge {
    direction: ltr;
    unicode-bidi: embed;
}

/* Animations */
@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatIce1 {
    0%, 100% { transform: translateY(0) rotate(14deg); }
    50% { transform: translateY(-4px) translateX(-1px) rotate(10deg); }
}
@keyframes floatIce2 {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-5px) translateX(2px) rotate(-6deg); }
}
@keyframes floatIce3 {
    0%, 100% { transform: translateY(0) rotate(22deg); }
    50% { transform: translateY(-3px) translateX(-2px) rotate(26deg); }
}
@keyframes floatIce4 {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-4px) translateX(1px) rotate(-9deg); }
}
@keyframes floatIce5 {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-3px) translateX(1px) rotate(12deg); }
}

.steam-path {
    opacity: 0;
    animation: steamSVG 3s ease-in-out infinite;
}
.steam-path.sp1 { animation-delay: 0s; }
.steam-path.sp2 { animation-delay: 1s; }
.steam-path.sp3 { animation-delay: 2s; }

@keyframes steamSVG {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-25px); }
}

/* Responsive Options grid layout */
@media (min-width: 600px) {
    .drizzl-quiz-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    /* If single option, stretch it */
    .drizzl-quiz-options.single-option {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .drizzl-recipe-result-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .drizzl-quiz-container {
        padding: 2rem 1.5rem;
    }
}

/* Product recommendation card */
.drizzl-product-recommend-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f1e9df;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.drizzl-product-recommend-card:hover {
    transform: translateY(-5px);
}

.drizzl-product-badge {
    position: absolute;
    top: -12px;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
    z-index: 10;
}

.drizzl-product-img {
    max-width: 150px;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.drizzl-product-recommend-card:hover .drizzl-product-img {
    transform: scale(1.05);
}

.drizzl-product-info {
    text-align: center;
    width: 100%;
}

.drizzl-product-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.drizzl-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e11d48;
    margin: 0;
}

/* Override product price WooCommerce standard styles if nested */
.drizzl-product-price del {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-left: 0.5rem;
}
.drizzl-product-price ins {
    text-decoration: none;
}

.shop-product-btn {
    width: 100%;
    justify-content: center;
    background: #e11d48 !important;
    color: #ffffff !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 700;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
}

.shop-product-btn:hover {
    background: #be123c !important;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25) !important;
}

/* Recipe Slider Custom Styles */
.drizzl-recipe-slider {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.drizzl-recipe-slides-container {
    width: 100%;
    overflow: hidden;
}

.drizzl-recipe-slide {
    width: 100%;
    display: none;
    flex-direction: column;
}

.drizzl-recipe-slide.active {
    display: flex;
}

.drizzl-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.drizzl-slider-prev-btn,
.drizzl-slider-next-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.drizzl-slider-prev-btn:hover,
.drizzl-slider-next-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.drizzl-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.drizzl-slider-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.drizzl-slider-dot.active {
    background: #333;
}
