/* Mexican Tears Review Widget - Styling */
/* Passt zum Modern Template Design System (DESIGN_DIREKTIVE.md) */

.mt-reviews-container {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Header --- */
.mt-reviews-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.5rem;
}

.mt-reviews-subtitle {
    font-weight: 400;
    color: #666;
    font-size: 18px;
}

/* --- Summary (Durchschnitt + Balken) --- */
.mt-reviews-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    background: #faf8f5;
    border-radius: 12px;
}

.mt-reviews-avg {
    text-align: center;
    min-width: 120px;
}

.mt-reviews-avg-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.mt-reviews-stars {
    margin: 8px 0;
}

.mt-star {
    font-size: 20px;
    margin: 0 1px;
}

.mt-star-full {
    color: #DAA520;
}

.mt-star-half {
    color: #DAA520;
    opacity: 0.6;
}

.mt-star-empty {
    color: #ddd;
}

.mt-reviews-stars-small .mt-star {
    font-size: 16px;
}

.mt-reviews-count {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* --- Distribution (Balkendiagramm) --- */
.mt-reviews-distribution {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.mt-reviews-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.mt-reviews-dist-label {
    font-size: 13px;
    color: #666;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}

.mt-reviews-dist-bar {
    flex: 1;
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.mt-reviews-dist-fill {
    height: 100%;
    background: linear-gradient(90deg, #DAA520, #F0C040);
    border-radius: 6px;
    transition: width 0.6s ease;
}

.mt-reviews-dist-count {
    font-size: 12px;
    color: #999;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}

/* --- Review-Liste --- */
.mt-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mt-review-card {
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s ease;
}

.mt-review-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mt-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mt-review-date {
    font-size: 12px;
    color: #aaa;
}

.mt-review-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.mt-review-author {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* --- Load More Button --- */
.mt-reviews-load-more {
    display: block;
    margin: 1.5rem auto 0;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #B22222;
    color: #B22222;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mt-reviews-load-more:hover {
    background: #B22222;
    color: #fff;
}

/* --- Formular --- */
.mt-reviews-form-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.mt-reviews-form-toggle {
    padding: 10px 24px;
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mt-reviews-form-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
}

.mt-reviews-form {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #faf8f5;
    border-radius: 12px;
    text-align: left;
}

.mt-reviews-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 12px 0 4px;
}

.mt-reviews-form label:first-child {
    margin-top: 0;
}

.mt-reviews-form input[type="text"],
.mt-reviews-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mt-reviews-form input[type="text"]:focus,
.mt-reviews-form textarea:focus {
    border-color: #B22222;
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

/* Rating-Sterne im Formular */
.mt-reviews-rating-input {
    display: flex;
    gap: 4px;
    margin: 4px 0;
}

.mt-rating-star {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ddd;
    padding: 0;
    line-height: 1;
    transition: color 0.15s, transform 0.15s;
}

.mt-rating-star:hover {
    transform: scale(1.2);
}

.mt-rating-star-active {
    color: #DAA520;
}

/* Submit Button */
.mt-reviews-submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.35);
}

.mt-reviews-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.45);
    background: linear-gradient(135deg, #43A047 0%, #388E3C 100%);
}

.mt-reviews-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Feedback */
.mt-reviews-feedback {
    margin-top: 12px;
    text-align: center;
}

.mt-feedback-success {
    color: #2E7D32;
    font-size: 14px;
    font-weight: 600;
}

.mt-feedback-error {
    color: #B22222;
    font-size: 14px;
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .mt-reviews-container {
        padding: 1rem;
        border-radius: 0;
    }

    .mt-reviews-summary {
        flex-direction: column;
        align-items: center;
    }

    .mt-reviews-distribution {
        width: 100%;
        max-width: none;
    }

    .mt-reviews-avg-number {
        font-size: 36px;
    }

    .mt-review-card {
        padding: 12px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .mt-reviews-dist-fill,
    .mt-review-card,
    .mt-reviews-form-toggle,
    .mt-reviews-submit,
    .mt-reviews-load-more,
    .mt-rating-star {
        transition: none;
    }
}
