/* ===== REVIEW PAGE DESIGN ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6ab04c;
    --secondary: #7ec760;
    --accent: #5a9c3e;
    --dark: #1a1a1a;
    --text: #1a1a1a;
    --light: #f5f5f5;
    --gray: #888;
}

/* ===== BODY & BACKGROUND ===== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f5f2 100%);
    min-height: 100vh;
}

/* ===== REVIEWS CONTAINER ===== */

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ===== REVIEWS HEADER ===== */

.reviews-header {
    text-align: center;
    margin-bottom: 4rem;
}

.reviews-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #6ab04c 0%, #5a9c3e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reviews-header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* ===== STATS ===== */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 176, 76, 0.15);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FILTERS ===== */

.filters {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.filter-btn {
    background: #f5f5f5;
    border: 2px solid transparent;
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
}

.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== REVIEWS GRID ===== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* ===== REVIEW CARD ===== */

.review-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(106, 176, 76, 0.2);
    border-color: var(--primary);
}

/* ===== REVIEW STARS ===== */

.review-stars {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 1.2rem;
    letter-spacing: 0.3rem;
    font-weight: 600;
}

/* ===== REVIEW TEXT ===== */

.review-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-weight: 500;
}

.review-text::before {
    content: '"';
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.15;
    display: block;
    margin-bottom: -0.5rem;
}

/* ===== REVIEW AUTHOR ===== */

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.2rem;
    margin-top: auto;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.review-author-info {
    flex-grow: 1;
}

.review-name {
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    font-size: 0.95rem;
}

.review-location {
    font-size: 0.85rem;
    color: #999;
    margin: 0.2rem 0 0 0;
}

.review-date {
    font-size: 0.8rem;
    color: #bbb;
    margin-top: 0.3rem;
}

/* ===== NO REVIEWS ===== */

.no-reviews {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: #666;
    grid-column: 1 / -1;
    border: 1px solid #f0f0f0;
}

.no-reviews i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.no-reviews h3 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.no-reviews p {
    font-weight: 500;
}

/* ===== SUBMIT REVIEW BUTTON ===== */

.submit-review-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    margin: 0 auto;
    display: block;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(106, 176, 76, 0.3);
}

.submit-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 176, 76, 0.4);
    color: white;
    text-decoration: none;
}

.submit-review-btn:active {
    transform: translateY(-1px);
}

.submit-review-btn i {
    margin-right: 0.5rem;
}

/* ===== REVIEW SUBMIT PAGE ===== */

.review-submit-container {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
}

.review-submit-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.review-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.review-header h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.review-header p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* ===== FORM GROUPS ===== */

.form-group {
    margin-bottom: 1.8rem;
}

.form-label {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
    display: block;
    font-size: 0.95rem;
}

.form-control,
textarea {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-control:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(106, 176, 76, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== RATING INPUT ===== */

.rating-input {
    display: flex;
    gap: 1rem;
    font-size: 2.5rem;
    justify-content: center;
}

.star {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.star:hover {
    color: #fbbf24;
    transform: scale(1.2) translateY(-3px);
}

.star.active {
    color: #fbbf24;
    transform: scale(1.15);
}

/* ===== SUBMIT BUTTON ===== */

.submit-btn,
.modern-btn,
.modern-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.2rem;
    box-shadow: 0 4px 15px rgba(106, 176, 76, 0.3);
}

.submit-btn:hover,
.modern-btn:hover,
.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 176, 76, 0.4);
}

.submit-btn:active,
.modern-btn:active,
.modern-btn-primary:active {
    transform: translateY(0);
}

/* ===== ALERTS ===== */

.alert {
    border-radius: 12px;
    border: none;
    padding: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.alert i {
    margin-right: 0.5rem;
}

/* ===== INFO BOX ===== */

.info-box {
    background: rgba(106, 176, 76, 0.08);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
    line-height: 1.6;
}

.info-box i {
    color: var(--primary);
    font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .reviews-container {
        padding: 2rem 1.2rem;
    }

    .reviews-header h1 {
        font-size: 2rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filters {
        gap: 0.8rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .review-submit-card {
        padding: 2rem;
    }

    .review-header h1 {
        font-size: 1.5rem;
    }

    .rating-input {
        font-size: 2rem;
        gap: 0.8rem;
    }

    .submit-review-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .reviews-container {
        padding: 1.5rem 1rem;
    }

    .reviews-header h1 {
        font-size: 1.5rem;
    }

    .reviews-header p {
        font-size: 0.95rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .stat-box {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .review-submit-card {
        padding: 1.5rem;
    }

    .rating-input {
        font-size: 1.8rem;
        gap: 0.6rem;
    }

    .submit-review-btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
}
