/* All Reviews Page Styles */
.allreviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Category Filter */
.category-filter {
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
}

.reviews-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-select-wrapper {
    position: relative;
    max-width: 450px;
}

.category-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.category-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.category-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
    font-size: 0.7rem;
}

.selected-category-info {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    animation: fadeIn 0.5s ease;
}

.selected-category-info h4 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.selected-category-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reviews Grid - 3 Column Layout */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

/* Review Card - Premium Design */
.review-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
    position: relative;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.review-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-shrink: 0;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.review-card:hover .review-image img {
    transform: scale(1.08);
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.review-categories {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-category {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.review-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #2c3e50;
}

.review-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.review-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.review-author {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
}

.review-date {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
}

.review-excerpt {
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-excerpt p {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-actions {
    margin-top: auto;
}

.read-more-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    box-sizing: border-box;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Pagination Styles */
.allreviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
}

.pagination-btn {
    padding: 12px 24px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #bdc3c7;
    color: #bdc3c7;
    transform: none;
    box-shadow: none;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.pagination-number:hover,
.pagination-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination-info {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-left: 25px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
}

/* Loading State */
.reviews-loading {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.reviews-loading p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* No Reviews State */
.no-reviews {
    text-align: center;
    padding: 100px 20px;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

.no-reviews h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.no-reviews p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Page Header Styles */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .category-filter {
        padding: 20px 25px;
    }
    
    .review-image {
        height: 200px;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .allreviews-container {
        padding: 20px 15px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-content {
        font-size: 1.1rem;
    }
    
    .category-filter {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .review-content {
        padding: 20px;
    }
    
    .review-title {
        font-size: 1.2rem;
    }
    
    .allreviews-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pagination-info {
        margin-left: 0;
        margin-top: 15px;
        flex-basis: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .review-image {
        height: 180px;
    }
    
    .category-select-wrapper {
        max-width: 100%;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .review-categories {
        top: 10px;
        left: 10px;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .allreviews-container {
        max-width: 1600px;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
    
    .review-image {
        height: 240px;
    }
}

/* Focus styles for accessibility */
.review-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus,
select:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Pulse animation for count updates */
.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}