/* Reviews Page Styles */

/* Header Section */
.reviews-header {
    background: linear-gradient(135deg, #2c2c2c 0%, #212121 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}

.reviews-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.reviews-header p {
    font-size: 20px;
    opacity: 0.95;
}

/* Statistics Section */
.reviews-stats {
    background: #fff;
    padding: 60px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-stars {
    font-size: 24px;
    color: #FFB800;
    margin-bottom: 10px;
    min-height: 30px;
}

.stat-label {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Reviews Display */
.reviews-display {
    padding: 80px 0;
    background: #f9f9f9;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 4px solid #212121;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #212121 0%, #2c2c2c 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.reviewer-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 5px;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-rating {
    display: flex;
    gap: 3px;
    font-size: 18px;
    color: #FFB800;
}

.review-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-top: 20px;
    position: relative;
    padding-right: 20px;
}

.review-text::before {
    content: '"';
    font-size: 60px;
    color: #212121;
    opacity: 0.15;
    position: absolute;
    top: -15px;
    right: -10px;
    font-family: Georgia, serif;
}

.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
}

.review-verified i {
    font-size: 14px;
}

/* Loading Placeholder */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.loading-placeholder i {
    font-size: 40px;
    margin-bottom: 15px;
}

.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-reviews i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
}

/* Add Review Section */
.add-review-section {
    padding: 80px 0;
    background: #fff;
}

.add-review-card {
    max-width: 700px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.add-review-card h2 {
    font-size: 36px;
    color: #2c2c2c;
    margin-bottom: 10px;
    text-align: center;
}

.review-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

/* Form Styles */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.required {
    color: #f44336;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #212121;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.char-counter {
    text-align: left;
    direction: ltr;
}

.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 8px;
    font-size: 36px;
    cursor: pointer;
}

.star-rating i {
    color: #ddd;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating i:hover,
.star-rating i.hover {
    color: #FFB800;
    transform: scale(1.1);
}

.star-rating i.selected {
    color: #FFB800;
}

/* Checkbox */
.form-group input[type="checkbox"] {
    margin-left: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #212121;
}

.form-group label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
}

/* Submit Button */
.btn-submit-review {
    background: linear-gradient(135deg, #212121 0%, #1a1a1a 100%);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-submit-review:active {
    transform: translateY(0);
}

.btn-submit-review:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 15px;
    display: none;
    text-align: center;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #212121;
    display: block;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #f44336;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-header h1 {
        font-size: 32px;
    }

    .reviews-header p {
        font-size: 16px;
    }

    .stat-number {
        font-size: 42px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .add-review-card {
        padding: 30px 20px;
    }

    .add-review-card h2 {
        font-size: 28px;
    }

    .star-rating {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .reviews-header {
        padding: 50px 0 40px;
    }

    .reviews-header h1 {
        font-size: 28px;
    }

    .stat-number {
        font-size: 36px;
    }

    .review-card {
        padding: 20px;
    }

    .star-rating {
        font-size: 28px;
        gap: 5px;
    }
}
