.reviews-page {
    background: #f9f9f9;
    padding: 40px 0;
}

.page-header {
    background: linear-gradient(135deg, #d32f2f, #ff5252);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.reviews-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.reviews-list {
    display: grid;
    gap: 20px;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-author {
    display: flex;
    flex-direction: column;
}

.review-author strong {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.review-author span {
    color: #999;
    font-size: 13px;
}

.review-date {
    color: #999;
    font-size: 13px;
}

.review-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.review-stars i {
    color: #ffc107;
    font-size: 16px;
}

.review-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.review-meta {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.meta-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: color 0.3s ease;
    padding: 0;
}

.meta-btn:hover {
    color: #d32f2f;
}

.meta-btn.liked {
    color: #d32f2f;
}

.meta-btn strong {
    font-weight: 600;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

.success-message {
    background: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.reply-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.reply-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 14px;
}

.replies-list {
    margin-bottom: 20px;
    display: grid;
    gap: 15px;
}

.reply-item {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #d32f2f;
}

.reply-author {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    margin-bottom: 5px;
}

.reply-author span {
    color: #999;
    font-weight: normal;
}

.reply-date {
    font-size: 12px;
    color: #bbb;
    margin-left: 5px;
}

.reply-text {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
}

.no-replies {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 13px;
    background: #f9f9f9;
    border-radius: 6px;
}

.reply-form {
    background: white;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 15px;
}

.reply-form h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.reply-form-group {
    margin-bottom: 12px;
}

.reply-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

.reply-form-group input,
.reply-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    transition: border-color 0.3s ease;
}

.reply-form-group input:focus,
.reply-form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.2);
}

.reply-form-group textarea {
    min-height: 70px;
    resize: vertical;
}

.reply-form-buttons {
    display: flex;
    gap: 10px;
}

.reply-submit-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: background 0.3s ease;
    flex: 1;
}

.reply-submit-btn:hover {
    background: #b71c1c;
}

.reply-cancel-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    flex: 1;
}

.reply-cancel-btn:hover {
    background: #eee;
}

.stats-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.stats-box h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.overall-rating {
    margin-bottom: 15px;
}

.rating-number {
    font-size: 36px;
    color: #d32f2f;
    font-weight: bold;
    margin-bottom: 5px;
}

.rating-stars-display {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
}

.rating-stars-display i {
    color: #ffc107;
    font-size: 16px;
}

.total-reviews {
    color: #999;
    font-size: 13px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.rating-label {
    width: 40px;
    color: #666;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffb300);
    border-radius: 4px;
}

.rating-count {
    width: 30px;
    text-align: right;
    color: #999;
}

.review-form-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.review-form-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 15px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.rating-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    margin: 0;
    transition: color 0.2s ease;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

.submit-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #b71c1c;
}

@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }

    .review-form-box {
        position: static;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .review-header {
        flex-direction: column;
        gap: 10px;
    }

    .filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-btn {
        width: 100%;
    }

    .review-meta {
        flex-direction: column;
        gap: 10px;
    }

    .reply-form-buttons {
        flex-direction: column;
    }

    .reply-submit-btn,
    .reply-cancel-btn {
        width: 100%;
    }
}