/* GestionePagine Reviews - Styles (v1.1.3 - Clean Gold Edition) */

/* --- FORM STYLES --- */
.gp-review-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.gp-form-title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: #7B6252;
    text-align: center;
    font-weight: 700;
}

.gp-form-group {
    margin-bottom: 1.25rem;
}

.gp-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.gp-form-group input,
.gp-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

/* FIX MENU A TENDINA */
.gp-form-group select {
    width: 100%;
    height: 50px !important; 
    min-height: 50px !important;
    padding: 0 1rem !important;
    padding-right: 2.5rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M6%209L12%2015L18%209%22%20stroke%3D%22%236b7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    line-height: 1.5;
    color: #1a1a1a;
}

.gp-single-product-display {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gp-single-product-display .dashicons {
    font-size: 1.2rem;
    width: auto;
    height: auto;
}

.gp-form-group input[readonly] {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: default;
    border-color: #e5e7eb;
}

.gp-form-group input:not([readonly]):focus,
.gp-form-group select:focus,
.gp-form-group textarea:focus {
    outline: none;
    border-color: #7B6252;
    box-shadow: 0 0 0 3px rgba(123, 98, 82, 0.1);
}

input[type="file"] {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- MESSAGES & NOTICES --- */
.gp-login-notice, .gp-notice {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    color: #4b5563;
}

.gp-login-notice a { color: #7B6252; font-weight: 600; text-decoration: none; }
.gp-login-notice a:hover { text-decoration: underline; }

.gp-form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.gp-form-message.success { display: block; background: #dcfce7; color: #166534; }
.gp-form-message.error { display: block; background: #fee2e2; color: #991b1b; }

/* --- STAR RATING --- */
.gp-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}
.gp-star-rating input { display: none; }
.gp-star-rating label { cursor: pointer; font-size: 2rem; color: #d1d5db; transition: color 0.15s; }
.gp-star-rating label:hover, .gp-star-rating label:hover ~ label, .gp-star-rating input:checked ~ label { 
    color: #fbbf24; 
}

/* --- BUTTON (TESTO ORO) --- */
.gp-submit-btn {
    width: 100%;
    padding: 1rem;
    background: #7B6252;
    /* TESTO ORO RICHIESTO */
    color: #E6C676; 
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    letter-spacing: 0.5px;
}

.gp-submit-btn:hover { 
    transform: translateY(-2px); 
    background: #634f42;
    box-shadow: 0 4px 12px rgba(123, 98, 82, 0.4); 
}

.gp-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* --- REVIEWS GRID & CARD --- */
.gp-reviews-grid { 
    display: grid; 
    gap: 1.5rem; 
    margin: 2rem 0; 
    align-items: flex-start;
}
.gp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gp-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .gp-cols-3, .gp-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gp-reviews-grid { grid-template-columns: 1fr; } }

.gp-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.gp-review-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.gp-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.gp-stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: 1px; }
.gp-verified-badge { display: inline-flex; align-items: center; gap: 0.25rem; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.gp-product-highlight { font-size: 0.95rem; color: #2563eb; font-weight: 700; margin: 0.5rem 0 0.5rem 0; display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.gp-product-highlight .dashicons { font-size: 1.1rem; width: auto; height: auto; color: #9ca3af; }

.gp-review-title {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.25rem;
    color: #000000;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gp-review-content {
    color: #374151;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 1rem;
    white-space: pre-wrap;
}

/* IMMAGINE RECENSIONE */
.gp-review-image { margin: 0.5rem 0 1rem; }
.gp-review-image img { 
    max-width: 100%; 
    height: auto; 
    max-height: 200px; 
    border-radius: 8px; 
    border: 1px solid #e5e7eb; 
    object-fit: cover; 
    cursor: zoom-in; 
    transition: opacity 0.2s; 
}
.gp-review-image img:hover { opacity: 0.9; }

/* LIGHTBOX */
#gp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#gp-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: gp-zoom-in 0.3s ease-out;
}

#gp-lightbox .gp-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

@keyframes gp-zoom-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Footer Card */
.gp-card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: 1rem; 
    border-top: 1px solid #f0f0f0; 
    margin-top: 0.5rem; 
    flex-wrap: wrap; 
    gap: 0.75rem; 
}
.gp-reviewer { display: flex; align-items: center; gap: 0.75rem; }
.gp-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; }
.gp-reviewer-info { display: flex; flex-direction: column; }
.gp-reviewer-name { font-weight: 600; color: #1a1a1a; font-size: 0.9rem; }
.gp-review-date { color: #9ca3af; font-size: 0.8rem; }

.gp-no-reviews { text-align: center; color: #6b7280; padding: 3rem; grid-column: 1 / -1; }