/* Global styles */
body {
    background-color: #373434;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Arial, sans-serif;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}


body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

/* Base styles for review cards */
.reviews {
    display: flex;
    flex-wrap: wrap;
    padding: 120px 5% 20px;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

.leave-review {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

/* Media query to adjust margin when navbar wraps */
@media screen and (max-width: 1080px) and (min-width: 800px){
    .leave-review {
        padding-top: 70px;
    }
}

.leave-review h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #c2a76b;
    margin-bottom: 1rem;
    font-family: 'Spectral', serif;
}

.leave-review a {
    color: #c2a76b;
    text-decoration: underline;
}

.leave-review p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Overall Rating Section */
.overall-rating {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-summary .stars {
    font-size: 32px;
}

.rating-text {
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    color: white;
}

.loading-state i {
    font-size: 48px;
    color: #c2a76b;
    margin-bottom: 20px;
}

.loading-state p {
    font-size: 1.2rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    color: white;
}

.error-state p {
    font-size: 1.1rem;
    margin: 20px 0;
}

.error-state a {
    color: #c2a76b;
    text-decoration: underline;
}

/* Setup Notice */
.setup-notice {
    background: linear-gradient(135deg, #2a2a2a, #404040);
    border: 2px solid #c2a76b;
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.setup-notice i {
    font-size: 48px;
    color: #c2a76b;
    margin-bottom: 15px;
}

.setup-notice h3 {
    color: #c2a76b;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.setup-notice p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 15px 0;
}

.setup-notice ol {
    text-align: left;
    margin: 20px auto;
    max-width: 600px;
}

.setup-notice li {
    margin: 10px 0;
    font-size: 1rem;
}

.setup-notice code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    color: #c2a76b;
    font-family: monospace;
}

/* Avatar Fallback */
.avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c2a76b, #8b7355);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-right: 20px;
    border: 3px solid #c2a76b;
}

/* Review Time */
.review-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* No Reviews Message */
.no-reviews {
    text-align: center;
    font-size: 1.2rem;
    color: white;
    padding: 40px 20px;
    width: 100%;
}

/* Empty Star */
.star.empty {
    color: rgba(255, 215, 0, 0.3);
}

/* Half Star */
.star.half {
    position: relative;
    color: rgba(255, 215, 0, 0.3);
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffd700;
}

/* Review Rows Container */
.review-rows {
    width: 100%;
}

/* View All Reviews Button */
.view-all-reviews {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
}

.reviews-note {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.view-all-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #c2a76b, #8b7355);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(194, 167, 107, 0.4);
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #d4c08d, #c2a76b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 167, 107, 0.6);
}

.view-all-btn i {
    margin-right: 10px;
}

@media screen and (max-width: 768px) {
    .view-all-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .reviews-note {
        font-size: 1rem;
    }
}

.review-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.review-card {
    border: 1px solid #c2a76b;
    border-radius: 12px;
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    min-height: 390px;
    background: linear-gradient(to bottom right, #1e1e1e, #444);
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Make card span full width when alone in a row */
.review-row .review-card:only-child {
    flex: 1 1 100%;
    max-width: 100%;
}

.review-rating {
    font-size: 32px; /* Larger font size for stars */
}

.star {
    color: #ffd700; /* Gold color for stars */
    margin-right: 8px; /* Adjust spacing between stars */
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

/* Adding a subtle glow effect */
.review-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: translateX(0) rotate(45deg);
    transition: transform 0.4s ease-in-out;
    opacity: 0;
}

.review-card:hover::before {
    transform: translateX(50%) rotate(45deg);
    opacity: 1;
}

/* Adding a decorative corner element */
.review-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 40px solid rgba(255, 255, 255, 0.2);
    border-left: 40px solid transparent;
    transition: border-top-color 0.2s ease-in-out;
}

.review-card:hover::after {
    border-top-color: rgba(255, 255, 255, 0.4);
}

/* Adding a glow to the text on hover */
.review-card:hover h3,
.review-card:hover p {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}


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

.review-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid #c2a76b;
}

.review-info {
    flex-grow: 1;
}

.review-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.review-rating {
    display: flex;
    align-items: center;
}

.review-rating .fa-star {
    font-size: 24px;
    color: gold;
    margin-right: 8px;
}

.review-text {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 0;
}

.review-year {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* Adjusted styles for medium screens */
@media screen and (max-width: 1300px) {
    .review-card {
        flex: 1 1 calc(33% - 20px);
        max-width: calc(33% - 20px);
        border: 1px solid #c2a76b;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        transition: transform 0.2s ease-in-out;
        min-height: 390px;
        background: linear-gradient(to bottom right, #1e1e1e, #444);
        color: white;
        margin-bottom: 20px;
    }

    .review-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 20px;
        margin-bottom: 20px;
    }
}

/* Adjusted styles for smaller screens */
@media screen and (max-width: 700px) {
    .review-card {
        flex: 1 1 calc(100% - 20px);
        max-width: 100%;
    }

    .review-row {
        display: block;
        gap: 0;
        margin-bottom: 0;
    }
}
