/* Reviews System Styles - Marina Dourado Solicitadora */

/* Container */
.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.reviews-hero {
    background: linear-gradient(135deg, #bd985e 0%, #a6784b 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(189, 152, 94, 0.3);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Form Section */
.review-form-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.review-form-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #bd985e;
    box-shadow: 0 0 0 3px rgba(189, 152, 94, 0.1);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    align-items: center;
}

.star-rating i {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating i:hover,
.star-rating i.active {
    color: #ffc107;
    transform: scale(1.1);
}

.star-rating i.filled {
    color: #ffc107;
}

/* Character Count */
.char-count {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #bd985e 0%, #a6784b 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px auto 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(189, 152, 94, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Reviews Display Section */
.reviews-display-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.reviews-header {
    margin-bottom: 30px;
    text-align: center;
}

.reviews-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Rating Overview */
.rating-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #bd985e;
    font-family: 'Montserrat', sans-serif;
}

.rating-stars {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 5px;
}

.rating-stars i {
    font-size: 1.2rem;
    color: #ffc107;
}

/* Rating Distribution */
.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.rating-bar-stars {
    display: flex;
    gap: 2px;
    min-width: 80px;
}

.rating-bar-stars i {
    font-size: 0.8rem;
    color: #ffc107;
}

.rating-bar-fill {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-progress {
    height: 100%;
    background: linear-gradient(90deg, #bd985e, #a6784b);
    transition: width 0.8s ease;
}

.rating-bar-count {
    min-width: 30px;
    text-align: right;
    color: #666;
}

/* Reviews List */
.reviews-list {
    margin-top: 40px;
}

.review-item {
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    background: #fafafa;
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.review-rating i {
    font-size: 1rem;
    color: #ffc107;
}

.review-content {
    margin-bottom: 15px;
}

.review-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.review-comment {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* Loading and Empty States */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #bd985e;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: white;
    color: #bd985e;
    border: 2px solid #bd985e;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #bd985e;
    color: white;
}

/* Message Container */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
}

.message-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-container {
        padding: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .review-form-section,
    .reviews-display-section {
        padding: 20px;
    }
    
    .rating-overview {
        flex-direction: column;
        gap: 20px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .star-rating i {
        font-size: 1.5rem;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
}
