/* Keuzehulp Frontend Styles */

.keuzehulp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.keuzehulp-header {
    text-align: center;
    margin-bottom: 30px;
}

.keuzehulp-header h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 300;
}

.keuzehulp-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #0073aa;
    transition: width 0.3s ease;
}

.progress-text {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.keuzehulp-step {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.keuzehulp-step h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 400;
}

.step-required {
    color: #d63638;
    font-size: 0.9em;
    margin-bottom: 20px;
    font-style: italic;
}

.keuzehulp-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-content h3 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 1.1em;
    font-weight: 600;
}

.warning-content p {
    margin: 0 0 10px 0;
    color: #856404;
    line-height: 1.5;
}

.warning-content p:last-child {
    margin-bottom: 0;
}

.warning-suggestion {
    font-style: italic;
    font-size: 0.95em;
    color: #6c5b00 !important;
}

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

.option-item {
    position: relative;
}

.option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-label {
    display: block;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.option-label:hover {
    background: #e9ecef;
    border-color: #0073aa;
}

.option-input:checked + .option-label {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button:hover {
    background: #005a87;
}

.button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.button-secondary {
    background: #6c757d;
}

.button-secondary:hover {
    background: #545b62;
}

.no-options {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-options p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.keuzehulp-error {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 4px solid #d63638;
}

.keuzehulp-error h2 {
    color: #d63638;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.keuzehulp-error p {
    margin-bottom: 15px;
    color: #666;
}

.keuzehulp-error ul {
    margin: 15px 0;
    padding-left: 20px;
}

.keuzehulp-error li {
    margin: 5px 0;
    color: #666;
}

.keuzehulp-results {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.keuzehulp-results h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 400;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 500;
}

.product-info h3 a {
    color: #333;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: #0073aa;
}

.product-price {
    color: #0073aa;
    font-weight: 600;
    font-size: 1.1em;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Preview Products Section */
.keuzehulp-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.keuzehulp-preview h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 500;
}

.preview-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.preview-product-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.preview-product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-product-image {
    margin-bottom: 10px;
}

.preview-product-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.preview-product-image .no-image {
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9em;
}

.preview-product-info h4 {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    line-height: 1.3;
}

.preview-product-info h4 a {
    color: #0073aa;
    text-decoration: none;
}

.preview-product-info h4 a:hover {
    text-decoration: underline;
}

.preview-product-price {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9em;
}

.preview-note {
    color: #6c757d;
    font-size: 0.85em;
    margin: 0;
    text-align: center;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .keuzehulp-container {
        padding: 15px;
    }
    
    .keuzehulp-header h1 {
        font-size: 2em;
    }
    
    .keuzehulp-step {
        padding: 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .keuzehulp-preview {
        padding: 15px;
    }
    
    .preview-products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .preview-product-item {
        padding: 12px;
    }
    
    .preview-product-image img,
    .preview-product-image .no-image {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .keuzehulp-header h1 {
        font-size: 1.8em;
    }
    
    .keuzehulp-step h2 {
        font-size: 1.5em;
    }
    
    .option-label {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .keuzehulp-warning {
        flex-direction: column;
        gap: 10px;
    }
    
    .warning-icon {
        align-self: center;
    }
}
