/* Röster Recommendation Plugin Styles */

/* Container Styles */
.roester-recommendation-container {
    font-family: Arial, sans-serif;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    color: #000;
}

/* Header Styles */
.roester-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #000;
    margin-bottom: 30px;
}

.roester-recommendation-header h1 {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    flex: 1;
}

/* Button Styles */
.roester-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.roester-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.roester-btn-small {
    padding: 8px 16px;
    font-size: 14px;
    margin-top: 15px;
    display: inline-block;
}

.roester-btn-primary {
    background: #000;
    color: #fff;
}

.roester-btn-back {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    margin-top: 30px;
}

.roester-btn-back:hover {
    background: #000;
    color: #fff;
}

/* Step Styles */
.roester-step {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.roester-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.roester-step-header {
    margin-bottom: 30px;
}

.roester-step-header h2 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

/* Methods Grid (Step 1) */
.roester-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.roester-method-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}


/* Nur wenn explizit als gedimmt markiert */
.roester-method-item.method-dimmed .roester-method-name {
    color: #999;
}

.roester-method-item.method-dimmed .roester-method-icon img {
    filter: brightness(1.5);
}

.roester-method-icon {
    margin-bottom: 15px;
}

.roester-method-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}



/* Radio Options (Step 2) */
.roester-taste-options,
.roester-additional-options {
    margin-bottom: 40px;
}

.roester-radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 16px;
}

.roester-radio-option input[type="radio"] {
    display: none;
}

.roester-radio-custom {
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    background: #fff;
}

.roester-radio-option input[type="radio"]:checked + .roester-radio-custom {
    background: #000;
}

.roester-radio-option input[type="radio"]:checked + .roester-radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.roester-radio-label {
    font-size: 16px;
}

/* Taste Options with Icons (Step 3) */
.roester-taste-option {
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.roester-taste-option input[type="radio"]:checked + .roester-radio-custom + .roester-taste-content {
    font-weight: bold;
}

/* Nur wenn explizit als gedimmt markiert */
.roester-taste-option.taste-dimmed .roester-radio-label {
    color: #999;
}

.roester-taste-option.taste-dimmed .roester-taste-icon {
    filter: brightness(1.5);
}

.roester-taste-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.roester-taste-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Product Recommendations (Step 3) */
.roester-recommendations {
    margin-bottom: 40px;
}

.roester-product-box {
    display: flex;
    align-items: flex-start;
    padding: 0 0 30px 0;
    margin-bottom: 30px;
    background: #fff;
    position: relative;
}

.roester-product-rank {
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
}

.roester-product-image {
    flex: 0 0 150px;
    margin-right: 20px;
}

.roester-product-image img {
    width: 100%;
    height: auto;
    max-width: 150px;
}

.roester-product-details {
    flex: 1;
    margin-right: 20px;
}

.roester-product-details h3 {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.roester-product-details p {  
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-size: 14px;
}

.roester-product-ratings {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.roester-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.roester-rating span {
    font-size: 14px;
    font-weight: bold;
}

.roester-star {
    width: 15px;
    height: 15px;
}

.roester-product-actions {
    flex: 0 0 200px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.roester-product-price {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
}

/* Alternative Product */
.roester-alternative {
    border-top: 1px solid #ccc;
    padding-top: 40px;
    margin-top: 50px;
}

.roester-alternative h3 {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    text-align: left;
}

.roester-alternative-product {
    display: flex;
    align-items: flex-start;
    padding: 0;
    background: #fff;
    position: relative;
}

.roester-alternative-product .roester-product-details h3 {
    text-align: left;
}

.roester-alternative-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
}

.roester-alternative-badge img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}





/* Loading and Error States */
.loading-recommendations,
.error-recommendations {
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    color: #666;
}

.error-recommendations {
    color: #d63384;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PopUp Styles */
.roester-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roester-popup-container {
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border: 1px solid #000;
    position: relative;
    overflow-y: auto;
}

.roester-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #000;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.roester-popup-header h1 {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}

.roester-popup-close {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.roester-popup-close:hover {
    background: #333;
}

/* PopUp Banner */
.roester-popup-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #000;
    margin-bottom: 20px;
}

.roester-popup-banner span {
    font-size: 1.4em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .roester-recommendation-container {
        margin: 20px;
        padding: 15px;
    }
    
    .roester-recommendation-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .roester-recommendation-header h1 {
        font-size: 1.4em;
        text-align: center;
    }
    
    .roester-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .roester-method-item {
        padding: 15px;
    }
    
    .roester-method-icon img {
        width: 40px;
        height: 40px;
    }
    
    .roester-method-name {
        font-size: 12px;
    }
    
    .roester-product-box {
        flex-direction: column;
        text-align: left;
        padding: 0 0 20px 0;
    }
    
    .roester-product-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .roester-product-details {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .roester-product-ratings {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .roester-product-actions {
        flex: none;
        text-align: left;
    }
    
    .roester-alternative-product {
        flex-direction: column;
        text-align: left;
    }
    
    .roester-product-rank {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .roester-alternative-badge {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .roester-popup-container {
        max-width: 95%;
        max-height: 95%;
    }
    
    .roester-popup-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .roester-popup-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .roester-taste-option {
        padding: 10px;
    }
    
    .roester-taste-content {
        gap: 10px;
    }
    
    .roester-taste-icon {
        width: 30px;
        height: 30px;
    }
    
    .roester-step {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .loading-recommendations,
    .error-recommendations {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    .roester-btn-small {
        padding: 6px 12px;
        font-size: 12px;
        margin-top: 10px;
    }
} 