/* Barber Reviews CSS */

/* Summary Styles */
.barber-reviews-summary {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.summary-main {
    display: flex;
    gap: 60px;
    align-items: center;
}

.average-rating {
    text-align: center;
    flex: 0 0 200px;
}

.rating-number {
    font-size: 72px;
    font-weight: bold;
    color: #d4af37;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.summary-main .rating-stars {
    font-size: 32px;
    color: #d4af37;
    margin-bottom: 10px;
}

.summary-main .rating-stars .star {
    margin: 0 2px;
}

.summary-main .rating-stars .filled {
    color: #d4af37;
}

.summary-main .rating-stars .half {
    color: #d4af37;
    opacity: 0.5;
}

.summary-main .rating-stars .empty {
    color: #ddd;
}

.total-reviews {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.rating-distribution {
    flex: 1;
}

.distribution-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.star-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 40px;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #f0d97d 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.distribution-row .count {
    font-size: 14px;
    color: #666;
    min-width: 30px;
    text-align: right;
}

/* Responsive Summary */
@media (max-width: 767px) {
    .summary-main {
        flex-direction: column;
        gap: 30px;
    }
    
    .average-rating {
        flex: none;
    }
    
    .rating-number {
        font-size: 56px;
    }
}

/* Form Styles */
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.barber-form-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.barber-review-form .form-group {
    margin-bottom: 20px;
}

.barber-review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.barber-review-form input[type='text'],
.barber-review-form input[type='email'],
.barber-review-form select,
.barber-review-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.barber-review-form input:focus,
.barber-review-form select:focus,
.barber-review-form textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating-input input[type='radio'] {
    display: none;
}

.star-rating-input .star {
    font-size: 40px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating-input input[type='radio']:checked ~ .star,
.star-rating-input .star:hover,
.star-rating-input .star:hover ~ .star {
    color: #d4af37;
}

.barber-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #d4af37 0%, #c19a2e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.barber-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.barber-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.barber-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.barber-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Carousel Styles */
.barber-reviews-carousel-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.barber-carousel-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    font-weight: 700;
}

.barber-reviews-carousel {
    position: relative;
    padding: 0 60px;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 24px;
}

.review-card {
    min-width: calc(100% - 24px);
    padding: 32px 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.review-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.review-rating {
    font-size: 24px;
    color: #d4af37;
    letter-spacing: 2px;
    line-height: 1;
    flex-shrink: 0;
}

.review-service-badge {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap;
}

.review-author {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d4af37 0%, #f0d97d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 17px;
    margin: 0 0 4px 0;
    color: #2c3e50;
    font-weight: 700;
}

.review-time {
    font-size: 13px;
    color: #95a5a6;
    margin: 0;
    font-weight: 500;
}

.review-comment {
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    font-weight: 400;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e9ecef;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #495057;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f0d97d 100%);
    border-color: #d4af37;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: #adb5bd;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: linear-gradient(135deg, #d4af37 0%, #f0d97d 100%);
    width: 32px;
    border-radius: 5px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .review-card {
        min-width: calc(50% - 36px);
        padding: 36px 32px;
    }
    
    .review-rating {
        font-size: 26px;
    }
    
    .author-avatar {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    
    .author-name {
        font-size: 18px;
    }
    
    .review-comment {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .review-card {
        min-width: calc(33.333% - 40px);
        padding: 40px 36px;
    }
    
    .review-rating {
        font-size: 28px;
    }
    
    .author-avatar {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .barber-reviews-carousel-container {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .barber-reviews-carousel {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .carousel-btn.prev {
        left: 5px;
    }
    
    .carousel-btn.next {
        right: 5px;
    }
    
    .barber-carousel-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .review-card {
        min-width: 100%;
        padding: 24px 20px;
    }
    
    .review-header-top {
        margin-bottom: 16px;
        gap: 8px;
    }
    
    .review-rating {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .review-service-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .review-author {
        gap: 12px;
        margin-bottom: 14px;
    }
    
    .author-avatar {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .author-name {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .review-time {
        font-size: 12px;
    }
    
    .review-comment {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .carousel-dots {
        margin-top: 25px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active {
        width: 24px;
    }
}

/* Admin Styles */
.status-approved {
    color: #28a745;
    font-weight: 600;
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
}