/* Flæske Latest Reviews Styles */
/* EXACT copy of restaurant database cards design */

.flaeske-latest-reviews {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.latest-reviews-title {
    text-align: center;
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
}

.latest-reviews-container {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 540px) {
    .latest-reviews-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 768px) {
    .latest-reviews-container {
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .latest-reviews-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1400px) {
    .latest-reviews-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ensure cards don't collapse on very wide screens */
@media (min-width: 1600px) {
    .latest-reviews-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        max-width: 100%;
    }
}

/* Force proper grid behavior - prevent collapse */
/* Latest review items in grid */
.latest-reviews-container > .latest-review-item {
    min-width: 280px;
    max-width: 100%;
    grid-column: span 1;
}

/* Wishlist button inside latest review cards */
.latest-review-item > .restaurant-wishlist-button-absolute {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
}

/* Restaurant card styling - EXACT copy of database design */
.latest-review-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 280px;
    width: 100%;
}

.latest-review-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Restaurant Image Section */
.review-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.latest-review-item:hover .review-image img {
    transform: scale(1.05);
}

.review-overlay-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .review-image {
        height: 180px;
    }
    
    .review-overlay-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
}

/* Content area - EXACT copy */
.review-content {
    padding: 16px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

@media (min-width: 768px) {
    .review-content {
        padding: 20px;
        gap: 14px;
    }
}

.review-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

.review-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.review-title-row .review-title {
    margin-bottom: 0;
}

.review-title-row .review-title-stamp .ad-libitum-stamp {
    transform: translateY(2px);
}

@media (min-width: 768px) {
    .review-title {
        margin: 0 0 10px 0;
        font-size: 1.3rem;
    }
}

.review-title a {
    color: #2c3e50;
    text-decoration: none;
}

.review-title a:hover {
    color: #667eea;
}

.review-location {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.review-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.review-website {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.review-website:hover {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* Review section styling - EXACT copy */
.review-rating-section {
    border-top: 1px solid #e8ecef;
    padding-top: 15px;
    margin-top: 15px;
}

.review-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.review-stars .star {
    color: #ffc107;
    font-size: 1.2em;
}

.review-stars .star-empty {
    color: #dee2e6;
}

.review-count {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 8px;
    font-weight: 700;
}

/* Read review button - EXACT copy */
.read-review-btn {
    display: block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.read-review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.read-review-btn:hover::before {
    left: 100%;
}

.read-review-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Date styling */
.review-date {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 639px) {
    .review-content {
        padding: 16px;
    }
    
    .review-title {
        font-size: 1.1rem;
    }
    
    .review-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .review-number-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Compact mode */
.flaeske-latest-reviews[data-compact="true"] .latest-reviews-container {
    gap: 15px;
}

.flaeske-latest-reviews[data-compact="true"] .review-image {
    height: 150px;
}

.flaeske-latest-reviews[data-compact="true"] .review-content {
    padding: 15px;
}

.flaeske-latest-reviews[data-compact="true"] .review-title {
    font-size: 1rem;
}

.flaeske-latest-reviews[data-compact="true"] .review-number-badge {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

/* Empty state */
.flaeske-latest-reviews-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

/* Footer */
.latest-reviews-footer {
    text-align: center;
    margin-top: 30px;
}

.reviews-count {
    color: #6c757d;
    font-size: 0.9rem;
} 