/**
 * Multi Reviews Widget Styles
 * Version: 1.0.0
 */

/* Container */
.mrw-ratings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Individual Rating Item */
.mrw-rating-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: none;
}

/* Remove all hover effects */
.mrw-rating-item:hover {
    box-shadow: none;
    transform: none;
}

/* Clickable items */
.mrw-clickable {
    cursor: pointer;
}

/* Logo */
.mrw-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.mrw-logo svg,
.mrw-logo img {
    display: block;
}

/* Stars Container */
.mrw-stars {
    display: flex;
    align-items: center;
}

.mrw-stars-wrapper {
    display: flex;
    gap: 1px;
}

.mrw-star {
    font-size: 18px;
    line-height: 1;
}

.mrw-star-full {
    color: #fbbc04;
}

/* Halber Stern */
.mrw-star-half {
    position: relative;
    color: #e0e0e0;
}

.mrw-star-half::after {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #fbbc04; 
}


.mrw-star-empty {
    color: #e0e0e0;
}

/* Score */
.mrw-score {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    margin-left: 4px;
}

/* Count */
.mrw-count {
    font-size: 14px;
    color: #5f6368;
    white-space: nowrap;
}

/* Error Message */
.mrw-error {
    color: #d93025;
    background: #fce8e6;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #d93025;
    font-size: 14px;
}

/* Size Variations */
/* Small Size */
.mrw-size-small .mrw-rating-item {
    gap: 6px;
}

.mrw-size-small .mrw-logo svg,
.mrw-size-small .mrw-logo img {
    width: 20px;
    height: 20px;
}

.mrw-size-small .mrw-star {
    font-size: 14px;
}

.mrw-size-small .mrw-score {
    font-size: 14px;
}

.mrw-size-small .mrw-count {
    font-size: 12px;
}

/* Medium Size (Default) */
.mrw-size-medium .mrw-rating-item {
    gap: 8px;
}

.mrw-size-medium .mrw-logo svg,
.mrw-size-medium .mrw-logo img {
    width: 28px;
    height: 28px;
}

.mrw-size-medium .mrw-star {
    font-size: 18px;
}

.mrw-size-medium .mrw-score {
    font-size: 16px;
}

.mrw-size-medium .mrw-count {
    font-size: 14px;
}

/* Large Size */
.mrw-size-large .mrw-rating-item {
    gap: 10px;
}

.mrw-size-large .mrw-logo svg,
.mrw-size-large .mrw-logo img {
    width: 36px;
    height: 36px;
}

.mrw-size-large .mrw-star {
    font-size: 22px;
}

.mrw-size-large .mrw-score {
    font-size: 20px;
}

.mrw-size-large .mrw-count {
    font-size: 16px;
}

/* Modal Styles */
.mrw-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

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

.mrw-modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

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

.mrw-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #5f6368;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.mrw-modal-close:hover,
.mrw-modal-close:focus {
    background: #f1f3f4;
    color: #202124;
}

#mrw-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mrw-ratings-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .mrw-rating-item {
        width: 100%;
    }
    
    .mrw-modal-content {
        width: 95%;
        margin: 10% auto;
        height: 70vh;
    }
}

@media (max-width: 480px) {
    .mrw-count {
        font-size: 12px;
    }
    
    .mrw-size-large .mrw-logo svg,
    .mrw-size-large .mrw-logo img {
        width: 30px;
        height: 30px;
    }
    
    .mrw-size-large .mrw-star {
        font-size: 18px;
    }
    
    .mrw-size-large .mrw-score {
        font-size: 18px;
    }
    
    .mrw-modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    #mrw-modal-iframe {
        border-radius: 0;
    }
}

/* Platform Specific Styles */
.mrw-ausgezeichnet .mrw-logo svg {
    /* Ausgezeichnet logo is already red, no additional styling needed */
}

.mrw-google .mrw-logo svg {
    /* Google logo already has colors, no additional styling needed */
}

/* Admin Notice Styles */
.mrw-admin-notice {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 20px 0;
}

.mrw-admin-notice.notice-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.mrw-admin-notice.notice-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.mrw-admin-notice.notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.mrw-admin-notice.notice-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}
