/**
 * Featured Reviews Styling
 */

/* Featured reviews section header */
.gpc-featured-reviews-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.gpc-featured-reviews-section h3 {
    color: #d4a574;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.gpc-featured-reviews-section h3::before {
    content: "★";
    margin-right: 10px;
    font-size: 1.2em;
    color: #ffd700;
}

/* Featured review items container */
.gpc-featured-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Individual featured review item */
.gpc-review-featured {
    background: linear-gradient(135deg, #fff8e7 0%, #fffbf0 100%);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
    transition: all 0.3s ease;
}

.gpc-review-featured:hover {
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.25);
    transform: translateY(-2px);
}

/* Featured indicator badge */
.gpc-review-featured::before {
    content: "IN EVIDENZA";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #333;
    padding: 4px 10px;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Regular reviews section */
.gpc-regular-reviews-section {
    margin-top: 40px;
}

.gpc-regular-reviews-section h3 {
    color: #666;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.gpc-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Standard review item */
.gpc-review-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

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

/* Feature/Unfeature buttons */
.gpc-feature-review-btn,
.gpc-unfeature-review-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gpc-feature-review-btn {
    background-color: #d4a574;
    color: white;
}

.gpc-feature-review-btn:hover:not(:disabled) {
    background-color: #c99461;
}

.gpc-feature-review-btn:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

.gpc-unfeature-review-btn {
    background-color: #ff6b6b;
    color: white;
}

.gpc-unfeature-review-btn:hover:not(:disabled) {
    background-color: #ee5a52;
}

.gpc-unfeature-review-btn:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* Notification styles */
.gpc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

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

.gpc-notification-success {
    background-color: #4caf50;
    color: white;
}

.gpc-notification-error {
    background-color: #f44336;
    color: white;
}

/* Review item details styling */
.gpc-review-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.gpc-star-rating {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.gpc-star-rating .dashicons {
    width: auto;
    height: auto;
}

.gpc-review-author {
    color: #999;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.gpc-review-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Media styling */
.gpc-review-images,
.gpc-review-videos {
    margin-top: 15px;
}

.gpc-review-images h5,
.gpc-review-videos h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #999;
    font-size: 0.9em;
}

.gpc-review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gpc-review-images img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.gpc-review-videos {
    margin-top: 15px;
}

.gpc-review-videos iframe {
    border-radius: 4px;
}

/* Modal confirmation styles */
.gpc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    margin: 0;
    padding: 0;
    border: none;
}

.gpc-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 100%;
    animation: modalSlideIn 0.3s ease both;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiasing;
    position: relative;
    z-index: 100000;
    margin: auto;
    padding: 0;
    border: none;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gpc-modal-body {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.gpc-modal-body p {
    margin: 0;
    color: #333;
    font-size: 1em;
    line-height: 1.5;
}

.gpc-modal-footer {
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.gpc-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gpc-modal-btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.gpc-modal-btn-cancel:hover {
    background-color: #d0d0d0;
}

.gpc-modal-btn-confirm {
    background-color: #ff6b6b;
    color: white;
}

.gpc-modal-btn-confirm:hover {
    background-color: #ee5a52;
}

/* Responsive design */
@media (max-width: 768px) {
    .gpc-featured-reviews-list,
    .gpc-reviews-list {
        grid-template-columns: 1fr;
    }

    .gpc-review-featured,
    .gpc-review-item {
        padding: 15px;
    }

    .gpc-notification {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .gpc-modal {
        width: 95%;
    }
}
