/* Reviews Page Specific Styles */
.reviews-main {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a3a2e 0%, #2d5a3d 50%, #1a3a2e 100%);
    min-height: 100vh;
}

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-header h1 {
    font-size: 3rem;
    color: #9b59b6;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

.reviews-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
}

/* Ratings Overview */
.ratings-overview {
    margin-bottom: 60px;
}

.ratings-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #9b59b6;
    margin-bottom: 40px;
}

.ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rating-card {
    background: linear-gradient(135deg, #2d5a3d, #1a3a2e);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #4a7c59;
    transition: transform 0.3s ease;
}

.game-rating-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #4a7c59;
    margin-bottom: 20px;
}

.rating-card:hover {
    transform: translateY(-5px);
}

.rating-card h3 {
    font-size: 1.5rem;
    color: #9b59b6;
    margin-bottom: 20px;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 1.5rem;
    color: #666;
    transition: color 0.3s ease;
}

.star.filled {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rating-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
}

.rating-count {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.play-game-btn {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.play-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

/* Reviews Filters */
.reviews-filters {
    margin-bottom: 60px;
}

.reviews-filters h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #9b59b6;
    margin-bottom: 40px;
}

.filter-form {
    background: linear-gradient(135deg, #2d5a3d, #1a3a2e);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #4a7c59;
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.filter-group label {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-group select {
    background: #1a3a2e;
    color: #ffffff;
    border: 2px solid #4a7c59;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #9b59b6;
}

.filter-btn {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

/* Reviews List */
.reviews-list {
    margin-bottom: 60px;
}

.reviews-list h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #9b59b6;
    margin-bottom: 40px;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2d5a3d, #1a3a2e);
    border-radius: 15px;
    border: 2px solid #4a7c59;
}

.no-reviews p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.clear-filters-btn {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

.reviews-grid {
    display: grid;
    gap: 30px;
}

.review-card {
    background: linear-gradient(135deg, #2d5a3d, #1a3a2e);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #4a7c59;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviewer-name {
    font-size: 1.2rem;
    color: #9b59b6;
    margin: 0;
}

.verified-badge {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    width: fit-content;
}

.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.review-meta .rating {
    display: flex;
    gap: 3px;
}

.review-meta .star {
    font-size: 1rem;
    color: #666;
}

.review-meta .star.filled {
    color: #ffd700;
}

.review-date {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.review-content {
    margin-bottom: 20px;
}

.review-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.review-text {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.game-tag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-label {
    color: #9b59b6;
    font-weight: 500;
    font-size: 0.9rem;
}

.tag-value {
    background: #4a7c59;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #4a7c59;
}

.helpful-votes {
    display: flex;
    gap: 15px;
}

.helpful-btn,
.not-helpful-btn {
    background: transparent;
    border: 2px solid #4a7c59;
    color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.helpful-btn:hover {
    border-color: #27ae60;
    color: #27ae60;
}

.not-helpful-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.thumbs-up,
.thumbs-down {
    font-size: 1rem;
}

.count {
    font-weight: bold;
}

.review-actions {
    display: flex;
    gap: 10px;
}

.report-btn {
    background: transparent;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.report-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Write Review Section */
.write-review {
    background: linear-gradient(135deg, #2d5a3d, #1a3a2e);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #4a7c59;
}

.write-review h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #9b59b6;
    margin-bottom: 40px;
}

.review-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #1a3a2e;
    color: #ffffff;
    border: 2px solid #4a7c59;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9b59b6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    color: #9b59b6;
    font-size: 0.9rem;
    text-align: right;
}

.rating-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rating-input input[type='radio'] {
    display: none;
}

.star-label {
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-input input[type='radio']:checked ~ .star-label,
.star-label:hover,
.star-label:hover ~ .star-label {
    color: #ffd700;
}

.submit-review-btn {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-header h1 {
        font-size: 2rem;
    }

    .ratings-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: auto;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-meta {
        align-items: flex-start;
    }

    .review-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .helpful-votes {
        order: 2;
    }

    .review-actions {
        order: 1;
    }

    .write-review {
        padding: 30px 20px;
    }

    .rating-input {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .reviews-main {
        padding: 20px 0;
    }

    .rating-card,
    .review-card {
        padding: 20px;
    }

    .filter-form {
        padding: 20px;
    }

    .write-review {
        padding: 20px 15px;
    }

    .star-label {
        font-size: 1.5rem;
    }
}
