/*
 * REVIEWS PAGE STYLES
 * Professional design for customer reviews and testimonials
 */

/* ===========================
   REVIEWS HERO SECTION
   =========================== */

.reviews-hero {
    background: linear-gradient(135deg, #3c3c3c 0%, #2d2d2d 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.reviews-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 103, 91, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.reviews-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    color: white;
}

.reviews-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.reviews-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===========================
   REVIEWS STATS
   =========================== */

.reviews-stats {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.reviews-rating-summary {
    text-align: center;
    padding: 20px;
    border-right: 1px solid #e5e7eb;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: #ff675b;
    line-height: 1;
    margin-bottom: 15px;
}

.rating-stars {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 10px;
}

.rating-text {
    font-size: 1rem;
    color: #6b7280;
}

/* Rating Breakdown */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar-label {
    min-width: 80px;
    font-size: 0.9rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-bar {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff675b 0%, #ff8a7a 100%);
    transition: width 0.5s ease;
}

.rating-bar-count {
    min-width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

/* ===========================
   FILTER SECTION
   =========================== */

.reviews-filter-section {
    padding: 40px 0 20px;
    background: #f9fafb;
}

.reviews-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.reviews-filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
}

.add-review-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff675b 0%, #ff8a7a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 103, 91, 0.3);
}

.add-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 91, 0.4);
}

.add-review-btn i {
    font-size: 1.2rem;
}

.review-filter-tab {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-filter-tab:hover {
    border-color: #ff675b;
    color: #ff675b;
    transform: translateY(-2px);
}

.review-filter-tab.active {
    background: #ff675b;
    border-color: #ff675b;
    color: white;
}

.review-filter-tab i {
    font-size: 1.1rem;
}

/* ===========================
   REVIEWS CONTENT
   =========================== */

.reviews-content-section {
    padding: 60px 0;
    background: #f9fafb;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-author-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f3f4f6;
}

.review-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff675b 0%, #ff8a7a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid #f3f4f6;
}

.review-author-meta {
    flex: 1;
}

.review-author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.review-meta-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-stars {
    color: #fbbf24;
    font-size: 1.1rem;
}

.stars-wrapper {
    display: inline-flex;
    gap: 2px;
}

.stars-wrapper.stars-small {
    font-size: 0.75rem;
}

.review-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.review-source-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.review-source-badge.google {
    background: #4285f4;
    color: white;
}

/* Review Content */
.review-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
}

.review-content p {
    margin: 0 0 12px;
}

.review-content p:last-child {
    margin-bottom: 0;
}

/* Review Media */
.review-media {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.review-image,
.review-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Owner Response */
.review-owner-response {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid #ff675b;
    border-radius: 8px;
}

.owner-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.owner-response-header strong {
    color: #ff675b;
    font-size: 0.95rem;
}

.owner-response-header time {
    font-size: 0.85rem;
    color: #9ca3af;
}

.owner-response-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

.owner-response-content p {
    margin: 0 0 8px;
}

.owner-response-content p:last-child {
    margin-bottom: 0;
}

/* No Reviews */
.no-reviews-message,
.no-reviews-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

.no-reviews-message i,
.no-reviews-placeholder i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-reviews-placeholder h2 {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.no-reviews-placeholder p {
    font-size: 1.125rem;
    color: #9ca3af;
}

/* ===========================
   CTA SECTION
   =========================== */

.reviews-cta-section {
    background: linear-gradient(135deg, #ff675b 0%, #ff8a7a 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.reviews-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.reviews-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.reviews-cta-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.reviews-cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: #ff675b;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.reviews-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
    color: #ff675b;
}

/* ===========================
   REVIEW SUBMISSION MODAL
   =========================== */

.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.review-modal.active {
    display: flex;
}

.review-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    z-index: 10001;
    pointer-events: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #6b7280;
    z-index: 10;
}

.review-modal-close:hover {
    background: #ff675b;
    color: white;
    transform: rotate(90deg);
}

.review-modal-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.review-modal-header h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 10px;
}

.review-modal-header p {
    color: #6b7280;
    font-size: 1.125rem;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-step h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group .required {
    color: #ff675b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    z-index: 1;
    background: white;
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff675b;
    box-shadow: 0 0 0 3px rgba(255, 103, 91, 0.1);
    z-index: 2;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: #d1d5db;
}

.char-count {
    display: block;
    text-align: right;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Star Rating Input */
/* Star Rating Select - New Interactive System */
.star-rating-select {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    padding: 10px 0;
}

.star-icon {
    cursor: pointer;
    font-size: 3rem;
    color: #d1d5db;
    transition: all 0.2s ease;
}

.star-icon:hover {
    color: #fbbf24;
    transform: scale(1.15);
}

.star-icon.bi-star-fill {
    color: #fbbf24;
}

.rating-text-display {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 10px;
    min-height: 30px;
}

/* Image Upload */
.image-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: #ff675b;
    background: #fff5f5;
}

.image-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 15px;
}

.upload-placeholder p {
    color: #374151;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-placeholder small {
    color: #9ca3af;
}

.image-preview {
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff675b;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social Share Options */
.share-description {
    text-align: center;
    color: #6b7280;
    margin-bottom: 25px;
}

.social-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.social-share-option {
    cursor: pointer;
}

.social-share-option input {
    display: none;
}

.social-share-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-share-card i {
    font-size: 2rem;
}

.social-share-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.social-share-card.facebook {
    color: #1877f2;
}

.social-share-card.instagram {
    color: #e4405f;
}

.social-share-card.linkedin {
    color: #0077b5;
}

.social-share-option input:checked + .social-share-card {
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-share-option input:checked + .social-share-card.facebook {
    border-color: #1877f2;
    background: #f0f7ff;
}

.social-share-option input:checked + .social-share-card.instagram {
    border-color: #e4405f;
    background: #fff0f3;
}

.social-share-option input:checked + .social-share-card.linkedin {
    border-color: #0077b5;
    background: #f0f8ff;
}

.share-note {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Form Navigation Buttons */
.form-nav-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-back-btn,
.form-next-btn,
.form-submit-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.form-back-btn {
    background: #f3f4f6;
    color: #6b7280;
    flex: 1;
}

.form-back-btn:hover {
    background: #e5e7eb;
}

.form-next-btn,
.form-submit-btn {
    background: linear-gradient(135deg, #ff675b 0%, #ff8a7a 100%);
    color: white;
    flex: 2;
    box-shadow: 0 4px 14px rgba(255, 103, 91, 0.3);
}

.form-next-btn:hover,
.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 91, 0.4);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Response Messages */
.form-response {
    padding: 0 40px 40px;
}

.success-message,
.error-message {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
}

.success-message i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 15px;
}

.success-message h3 {
    font-size: 1.5rem;
    color: #065f46;
    margin-bottom: 10px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
}

.error-message i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 15px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 991px) {
    .reviews-hero h1 {
        font-size: 2.5rem;
    }

    .reviews-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reviews-rating-summary {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 30px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .reviews-hero {
        padding: 60px 0 50px;
    }

    .reviews-hero h1 {
        font-size: 2rem;
    }

    .reviews-hero-subtitle {
        font-size: 1.125rem;
    }

    .rating-number {
        font-size: 3rem;
    }

    .reviews-stats {
        padding: 30px 20px;
    }

    .reviews-filter-header {
        flex-direction: column;
        align-items: stretch;
    }

    .reviews-filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .review-filter-tab,
    .add-review-btn {
        justify-content: center;
    }

    .review-card {
        padding: 20px;
    }

    .reviews-cta-content h2 {
        font-size: 2rem;
    }

    .reviews-cta-content p {
        font-size: 1.125rem;
    }

    /* Modal adjustments for mobile */
    .review-modal {
        padding: 10px;
    }

    .review-modal-content {
        max-height: 95vh;
    }

    .review-modal-header,
    .form-step {
        padding: 30px 20px;
    }

    .form-response {
        padding: 0 20px 30px;
    }

    .social-share-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .reviews-hero h1 {
        font-size: 1.75rem;
    }

    .reviews-hero-subtitle {
        font-size: 1rem;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .rating-breakdown {
        gap: 10px;
    }

    .rating-bar-label {
        min-width: 70px;
        font-size: 0.85rem;
    }

    .review-author-info {
        gap: 12px;
    }

    .review-avatar,
    .review-avatar-placeholder {
        width: 48px;
        height: 48px;
    }

    .review-author-name {
        font-size: 1rem;
    }

    .reviews-cta-content h2 {
        font-size: 1.75rem;
    }

    .reviews-cta-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}
