:root {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.reviews-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.reviews-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.hero-content {
    padding-right: 40px;
}

.hero-title {
    font-size: 2.8em;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--green), #2E8B57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.stat-number {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 280px;
    width: 100%;
}

.floating-review {
    position: absolute;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.review-1 {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 10px 30px rgba(16, 195, 108, 0.2);
    border-color: rgba(16, 195, 108, 0.2);
}

.review-2 {
    width: 140px;
    height: 140px;
    top: 10px;
    left: 20px;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.2);
}

.review-3 {
    width: 140px;
    height: 140px;
    bottom: 10px;
    right: 20px;
    box-shadow: 0 8px 20px rgba(16, 195, 108, 0.15);
    border-color: rgba(16, 195, 108, 0.2);
}

.review-bubble {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
    padding: 20px;
    text-align: center;
    line-height: 1.4;
}

.review-1 .review-bubble {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--green);
}

.review-2 .review-bubble {
    color: #e6a800;
}

.review-3 .review-bubble {
    color: #2E8B57;
}

/* Filters */
.reviews-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    flex-wrap: wrap;
    gap: 15px;
}

.filters-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 18px;
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(16, 195, 108, 0.1);
    color: var(--green);
}

.filter-btn.active {
    background: var(--green);
    color: white;
}

.sort-select {
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 0.9em;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 150px;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Review Card */
.review-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

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

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green) 0%, #2E8B57 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: 700;
    border-radius: 50%;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-name {
    font-size: 1em;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.review-category {
    font-size: 0.8em;
    color: var(--green);
    font-weight: 500;
    padding: 3px 10px;
    background: rgba(16, 195, 108, 0.1);
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.review-rating {
    text-align: right;
}

.stars {
    color: #FFD700;
    font-size: 1em;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.rating-number {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-primary);
}

/* Review Content */
.review-content {
    margin-bottom: 16px;
}

.review-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

/* Review Footer */
.review-footer {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85em;
    color: var(--text-secondary);
    flex-wrap: nowrap;
}

.review-date, .master-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.85em;
    line-height: 1.5;
    vertical-align: middle;
}

.master-info .review-category {
    margin-left: 8px;
    font-size: 0.75em;
    padding: 2px 8px;
}

.master-link,
.master-name {
    display: inline;
    vertical-align: middle;
    line-height: inherit;
}

/* Loading State */
.reviews-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.reviews-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3em;
    margin-bottom: 16px;
}

.reviews-empty h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.reviews-empty p {
    margin: 0;
}

/* Error State */
.reviews-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #e53935;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 14px 36px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(16, 195, 108, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 195, 108, 0.4);
}

.load-more-btn .arrow-down {
    font-size: 1.1em;
}

/* CTA Section */
.add-review-cta {
    background: linear-gradient(160deg, var(--green), var(--yellow));
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.cta-content h2 {
    font-size: 2em;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    padding: 16px 36px;
    background: white;
    color: var(--green);
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .reviews-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-stats {
        max-width: 450px;
        margin: 0 auto;
    }

    .hero-illustration {
        height: 220px;
    }

    .review-1 {
        width: 150px;
        height: 150px;
    }

    .review-2, .review-3 {
        width: 120px;
        height: 120px;
    }
}

@media screen and (max-width: 768px) {
    .reviews-page {
        padding: 15px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 1.6em;
    }

    .reviews-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-container {
        justify-content: center;
    }

    .sort-select {
        width: 100%;
    }

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

    .review-header {
        flex-direction: column;
        gap: 12px;
    }

    .review-rating {
        text-align: left;
    }

    .hero-illustration {
        height: 180px;
    }

    .review-1 {
        width: 130px;
        height: 130px;
    }

    .review-2, .review-3 {
        width: 100px;
        height: 100px;
    }

    .review-bubble {
        font-size: 0.95em;
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.7em;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.85em;
    }

    .review-card {
        padding: 20px;
    }

    .add-review-cta {
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: 1.5em;
    }

    .hero-illustration {
        display: none;
    }
}

/* Master link in reviews */
.master-link {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.master-link:hover {
    color: #2E8B57;
    text-decoration: underline;
}

.master-name {
    font-weight: 500;
}
