/* Hero Section */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}


.page-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* Reviews Display Section */
.reviews-display {
    padding: 5rem 0;
    background: var(--light-color);
    position: relative;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.average-rating {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stars {
    color: var(--secondary-color);
    margin: 0.75rem 0;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.total-reviews {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.reviews-filter select {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background: var(--white) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center;
    background-size: 8px 10px;
}

.reviews-filter select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.reviewer-country {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.review-rating {
    color: var(--secondary-color);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.review-text {
    margin: 0 0 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.pagination-btn:hover:not(.active) {
    background: var(--light-color);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.pagination-btn.next {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

/* Review Form Section */
.review-form-section {
    padding: 5rem 0;
    background: var(--white);
}

.review-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--light-color);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.75rem;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--secondary-color);
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(90,145,73,0.3);
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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

    .review-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .star-rating {
        justify-content: center;
    }
}
