/* ========================================
   Reviews Page Styles - Hair Spot
   ======================================== */

/* Reviews Hero */
.reviews-hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(139, 69, 19, 0.8)),
                url('../Images/HairSpotLogo.jpeg') center/cover no-repeat;
    padding: 6rem 2rem;
    text-align: center;
    color: #ffffff;
}

.reviews-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reviews-hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Back Navigation */
.back-navigation {
    background-color: #f9f9f9;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.back-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    color: #8B4513;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: rgba(139, 69, 19, 0.1);
}

/* Main Content */
.reviews-main {
    background-color: #f5f5f5;
    padding: 2rem;
    min-height: 60vh;
}

.reviews-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Barber Summary Card */
.barber-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.barber-avatar {
    flex-shrink: 0;
}

.barber-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #8B4513;
}

.barber-details h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rating-summary .stars i {
    color: #FFD700;
    font-size: 1.1rem;
}

.rating-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.review-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #666666;
}

/* Write Review Section */
.write-review-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.write-review-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.write-review-section h3 i {
    color: #8B4513;
}

/* Star Rating Input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.75rem;
    color: #ddd;
    transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #FFD700;
}

/* Form Styles */
.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.review-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.review-form textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.submit-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #8B4513;
    color: #ffffff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-review-btn:hover {
    background-color: #6B3510;
    transform: translateY(-2px);
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.login-prompt p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-prompt i {
    color: #8B4513;
}

.login-link-btn {
    display: inline-block;
    background-color: #8B4513;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-link-btn:hover {
    background-color: #6B3510;
}

/* Reviews List Section */
.reviews-list-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.reviews-list-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviews-list-section h3 i {
    color: #8B4513;
}

/* Review Card */
.review-card {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

.reviewer-details h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.reviewer-details .review-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #888888;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
}

.review-stars i {
    color: #FFD700;
    font-size: 0.9rem;
}

.review-stars i.empty {
    color: #ddd;
}

.review-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.7;
}

/* Empty State */
.empty-reviews {
    text-align: center;
    padding: 3rem 2rem;
    color: #666666;
}

.empty-reviews i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-reviews h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.empty-reviews p {
    font-size: 0.9rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #8B4513;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #888888;
}

/* Footer Links */
footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .reviews-hero {
        padding: 4rem 1.5rem;
    }

    .reviews-hero h1 {
        font-size: 2rem;
    }

    .reviews-hero p {
        font-size: 1rem;
    }

    .reviews-main {
        padding: 1.5rem 1rem;
    }

    .barber-summary {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .barber-avatar img {
        width: 80px;
        height: 80px;
    }

    .barber-details h2 {
        font-size: 1.5rem;
    }

    .rating-summary {
        justify-content: center;
    }

    .write-review-section,
    .reviews-list-section {
        padding: 1.5rem;
    }

    .star-rating label {
        font-size: 1.5rem;
    }

    .submit-review-btn {
        width: 100%;
        justify-content: center;
    }

    .review-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .reviewer-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .reviews-hero h1 {
        font-size: 1.6rem;
    }

    .back-navigation {
        padding: 0.75rem 1rem;
    }

    .barber-summary {
        padding: 1rem;
    }

    .barber-avatar img {
        width: 70px;
        height: 70px;
    }

    .barber-details h2 {
        font-size: 1.25rem;
    }

    .rating-summary .stars i {
        font-size: 1rem;
    }

    .write-review-section h3,
    .reviews-list-section h3 {
        font-size: 1.1rem;
    }

    .review-form textarea {
        padding: 0.75rem;
    }

    .submit-review-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .reviewer-details h4 {
        font-size: 0.9rem;
    }

    .review-content {
        font-size: 0.9rem;
    }
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: #1a1a1a;
    z-index: 9999;
    transition: left 0.3s ease;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 5rem 0 2rem;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
    background-color: #8B4513;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.overlay.active {
    display: block;
}

.user-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }
}
