/* =====================================================
   RECENSIONI PAGE - Modern Design (stile .com)
   ===================================================== */

:root {
    --primary-orange: #ec7205;
    --primary-dark: #2d3748;
    --star-color: #f6ad55;
    --card-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --border-radius: 12px;
    --transition: all 0.2s ease;
}

/* Reset e base */
.reviews-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7fafc;
    min-height: 100vh;
    line-height: 1.6;
}

/* Container principale a 2 colonne */
.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

@media (max-width: 992px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }
}

/* ===== HEADER RECENSIONI ===== */
.reviews-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a202c 100%);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.reviews-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
}

.reviews-header .subtitle {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 25px;
}

/* Rating Summary */
.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rating-big {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars .star {
    color: var(--star-color);
    font-size: 24px;
}

.rating-stars .star.empty {
    color: rgba(255,255,255,0.3);
}

.rating-count {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== DISTRIBUZIONE VOTI ===== */
.rating-distribution {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
}

.rating-distribution h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--primary-dark);
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-bar-label {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    font-size: 14px;
    color: #666;
}

.rating-bar-label .star {
    color: var(--star-color);
}

.rating-bar-container {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--star-color);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.rating-bar-count {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    color: #666;
}

/* ===== FILTRI ===== */
.reviews-filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-right: 10px;
}

.filter-chip {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.filter-chip.active {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.sort-select {
    margin-left: auto;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* ===== REVIEW CARDS ===== */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta {
    flex: 1;
}

.review-author {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 16px;
    margin-bottom: 4px;
}

.review-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: #718096;
}

.review-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #edf2f7;
    border-radius: 4px;
    font-size: 12px;
}

.review-source.google {
    background: #e8f5e9;
    color: #2e7d32;
}

.review-source.sluurpy {
    background: #fff3e0;
    color: #e65100;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    color: var(--star-color);
    font-size: 16px;
}

.review-rating .star.empty {
    color: #e2e8f0;
}

/* Review Body */
.review-body {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
}

.review-body.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-orange);
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    font-size: 14px;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Review Actions */
.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    color: #718096;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* ===== SIDEBAR ===== */
.reviews-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 992px) {
    .reviews-sidebar {
        display: none;
    }
}

.sidebar-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--primary-dark);
}

/* Restaurant Mini Card */
.restaurant-mini {
    text-align: center;
}

.restaurant-mini-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}

.restaurant-mini h3 {
    font-size: 18px;
    margin: 0 0 5px;
    color: var(--primary-dark);
}

.restaurant-mini .address {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
}

.btn-view-restaurant {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-restaurant:hover {
    background: #d66705;
    transform: translateY(-1px);
}

/* Sources Stats */
.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sources-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.sources-list li:last-child {
    border-bottom: none;
}

.source-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-icon {
    width: 20px;
    height: 20px;
}

/* Trust Section */
.trust-section {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.trust-section h4 {
    color: white;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.trust-item i {
    font-size: 16px;
}

/* ===== BREADCRUMB ===== */
.reviews-breadcrumb {
    padding: 15px 20px;
    font-size: 14px;
    color: #718096;
}

.reviews-breadcrumb a {
    color: var(--primary-orange);
    text-decoration: none;
}

.reviews-breadcrumb a:hover {
    text-decoration: underline;
}

.reviews-breadcrumb span {
    margin: 0 8px;
}

/* ===== EMPTY STATE ===== */
.no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.no-reviews i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.no-reviews h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.no-reviews p {
    color: #718096;
}

/* ===== CTA WRITE REVIEW ===== */
.write-review-cta {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #d66705 100%);
    color: white;
    text-align: center;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.write-review-cta h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.write-review-cta p {
    margin: 0 0 20px;
    opacity: 0.9;
}

.btn-write-review {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--primary-orange);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .reviews-header {
        padding: 30px 15px;
    }

    .reviews-header h1 {
        font-size: 22px;
    }

    .rating-big {
        font-size: 48px;
    }

    .reviews-container {
        padding: 15px;
    }

    .review-card {
        padding: 20px;
    }

    .reviews-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-select {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.review-card {
    animation: fadeIn 0.3s ease backwards;
}

.review-card:nth-child(1) { animation-delay: 0.05s; }
.review-card:nth-child(2) { animation-delay: 0.1s; }
.review-card:nth-child(3) { animation-delay: 0.15s; }
.review-card:nth-child(4) { animation-delay: 0.2s; }
.review-card:nth-child(5) { animation-delay: 0.25s; }
