/**
 * BBQ Questionnaire CSS - Verbeterde versie
 * 
 * Bestand: assets/css/bbq-questionnaire.css
 */

/* Body scroll lock when modal is open */
body.bbq-modal-open {
    overflow: hidden;
}

/* Main button */
.bbq-questionnaire-btn {
    display: inline-block;
    background-color: #ff6b35;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.bbq-questionnaire-btn:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.bbq-questionnaire-btn:active {
    transform: translateY(0);
}

/* Modal styles */
.bbq-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.bbq-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button */
.bbq-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1000;
}

.bbq-close:hover,
.bbq-close:focus {
    color: #333;
    transform: scale(1.1);
}

/* Modal title */
.bbq-modal-content h2 {
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
    color: #333;
    font-weight: 700;
}

/* Question steps */
.question-step {
    display: none;
    animation: fadeInStep 0.5s ease;
}

.question-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { 
        opacity: 0;
        transform: translateX(30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.question-step h3 {
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    color: #333;
    font-weight: 600;
}

/* Answer options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.answer-btn {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 20px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.answer-btn:hover {
    background-color: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.answer-btn.selected {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.answer-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.answer-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 0.8s ease-in-out;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

.answer-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.answer-text {
    flex: 1;
    text-align: left;
}

/* Product results */
.product-results {
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

.product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #ff6b35;
}

.product-header {
    margin-bottom: 15px;
    text-align: center;
}

.product-image {
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-header h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.product-brand {
    color: #ff6b35;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* WooCommerce products section */
.wc-products-section {
    border-top: 2px solid #f8f9fa;
    padding-top: 15px;
}

.wc-products-section h5 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wc-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wc-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wc-product-item:hover {
    background-color: #e9ecef;
    border-color: #ff6b35;
}

.wc-product-item.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
}

.wc-product-item.out-of-stock:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.wc-product-info {
    flex: 1;
}

.wc-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.wc-product-sku {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.wc-product-price {
    font-size: 14px;
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 2px;
}

.wc-product-stock {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.wc-product-stock.out-of-stock {
    color: #dc3545;
}

.wc-product-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.view-product-btn,
.add-to-cart-btn {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.view-product-btn:hover,
.add-to-cart-btn:hover {
    background-color: #e55a2b;
    transform: translateY(-1px);
}

.add-to-cart-btn {
    background-color: #28a745;
}

.add-to-cart-btn:hover {
    background-color: #218838;
}

.add-to-cart-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.added-to-cart {
    background-color: #6f42c1 !important;
}

.out-of-stock-text {
    font-size: 12px;
    color: #dc3545;
    font-weight: 600;
    padding: 6px 12px;
}

/* No products message */
.no-products {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    color: #6c757d;
}

.no-products p {
    margin: 0 0 10px 0;
    font-size: 16px;
}

/* Reset button */
.questionnaire-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.reset-btn {
    background-color: #6c757d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Notifications */
.bbq-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
}

.bbq-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.bbq-notification.success {
    background-color: #28a745;
}

.bbq-notification.error {
    background-color: #dc3545;
}

.bbq-notification.info {
    background-color: #17a2b8;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .bbq-modal-content {
        width: 95%;
        padding: 25px 20px;
        margin: 5% auto;
    }
    
    .bbq-modal-content h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .question-step h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .answer-options {
        gap: 12px;
    }
    
    .answer-btn {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .answer-icon {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bbq-questionnaire-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .wc-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wc-product-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .bbq-notification {
        right: 10px;
        left: 10px;
        min-width: unset;
        transform: translateY(-100px);
    }
    
    .bbq-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .bbq-modal-content {
        padding: 20px 15px;
    }
    
    .answer-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .detail-label {
        font-size: 12px;
    }
    
    .detail-value {
        font-size: 13px;
    }
    
    .wc-product-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .view-product-btn,
    .add-to-cart-btn {
        width: 100%;
    }
}

/* Custom scrollbar for modal */
.bbq-modal-content::-webkit-scrollbar {
    width: 8px;
}

.bbq-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.bbq-modal-content::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 10px;
}

.bbq-modal-content::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}