/* ============================================
   FEEDBACK PAGE - LABEES BY AL AMEEN
   ============================================ */

/* ============================================
   PAGE CONTAINER
   ============================================ */
.feedback-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    min-height: 60vh;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.feedback-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.feedback-breadcrumb a {
    color: #0f2219;
    text-decoration: none;
    transition: color 0.2s;
}

.feedback-breadcrumb a:hover {
    color: #d4af37;
}

.feedback-breadcrumb span {
    color: #bbb;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.feedback-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e8e4dc;
}

.feedback-title {
    font-size: 32px;
    color: #0f2219;
    letter-spacing: 5px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 18px;
}

.feedback-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #d4af37;
}

/* Rating Summary */
.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rating-stars-big {
    font-size: 32px;
    letter-spacing: 3px;
    line-height: 1;
}

.rating-number-big {
    font-size: 42px;
    color: #0f2219;
    font-weight: 800;
    line-height: 1;
}

.rating-number-big span {
    font-size: 20px;
    color: #888;
    font-weight: 500;
}

.rating-count-big {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.5px;
}

/* ============================================
   FILTERS
   ============================================ */
.feedback-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background: #faf8f5;
    border-radius: 10px;
    border: 1px solid #e8e4dc;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-size: 11px;
    color: #0f2219;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.filter-group select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    color: #0f2219;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.btn-write-review {
    padding: 12px 24px;
    background: #0f2219;
    color: #d4af37;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-write-review:hover {
    background: #d4af37;
    color: #0f2219;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

/* ============================================
   REVIEWS LIST
   ============================================ */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.reviews-loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.reviews-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Review Card */
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #d4af37;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f2219;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.review-product {
    font-size: 11px;
    color: #b8860b;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.review-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.review-rating {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 14.5px;
    color: #444;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

/* ============================================
   LOAD MORE
   ============================================ */
.load-more-container {
    text-align: center;
    padding: 20px 0;
}

.btn-load-more {
    padding: 14px 40px;
    background: transparent;
    color: #0f2219;
    border: 2px solid #0f2219;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
}

.btn-load-more:hover {
    background: #0f2219;
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 34, 25, 0.2);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.reviews-empty {
    text-align: center;
    padding: 60px 30px;
    background: #faf8f5;
    border-radius: 12px;
    border: 2px dashed #e8e4dc;
}

.empty-icon {
    font-size: 70px;
    margin-bottom: 20px;
    line-height: 1;
}

.reviews-empty h3 {
    font-size: 22px;
    color: #0f2219;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.reviews-empty p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.btn-write-review-big {
    padding: 15px 40px;
    background: #0f2219;
    color: #d4af37;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
}

.btn-write-review-big:hover {
    background: #d4af37;
    color: #0f2219;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ============================================
   REVIEW MODAL
   ============================================ */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 34, 25, 0.85);
    backdrop-filter: blur(6px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 92%;
    max-width: 550px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    z-index: 10001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.review-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.review-modal-header {
    background: #0f2219;
    color: #d4af37;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #d4af37;
    flex-shrink: 0;
}

.review-modal-header h3 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 700;
}

.review-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.review-modal-close:hover {
    color: #d4af37;
}

.review-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}

.review-modal-body .form-group {
    margin-bottom: 18px;
}

.review-modal-body .form-group label {
    display: block;
    color: #0f2219;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.review-modal-body .form-group input,
.review-modal-body .form-group select,
.review-modal-body .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: all 0.3s ease;
    color: #0f2219;
    resize: vertical;
}

.review-modal-body .form-group input:focus,
.review-modal-body .form-group select:focus,
.review-modal-body .form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 8px;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 8px;
}

.star-input {
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.2s ease;
    line-height: 1;
}

.star-input:hover,
.star-input.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

.rating-label {
    font-size: 12px;
    color: #888;
    font-style: italic;
    min-height: 16px;
}

/* Character Count */
.char-count {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

/* Submit Button */
.btn-submit-review {
    width: 100%;
    padding: 16px;
    background: #0f2219;
    color: #d4af37;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-submit-review:hover {
    background: #d4af37;
    color: #0f2219;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-submit-review:disabled {
    background: #999;
    color: #ddd;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SUCCESS MODAL
   ============================================ */
.success-modal {
    max-width: 400px;
}

.success-content {
    padding: 40px 30px;
    text-align: center;
}

.success-icon {
    font-size: 70px;
    margin-bottom: 15px;
    line-height: 1;
}

.success-content h3 {
    font-size: 24px;
    color: #166534;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.success-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.success-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-bottom: 25px !important;
}

.btn-success-close {
    padding: 12px 40px;
    background: #0f2219;
    color: #d4af37;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-success-close:hover {
    background: #d4af37;
    color: #0f2219;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 767px) {
    .feedback-page {
        padding: 15px 12px 40px;
    }
    
    .feedback-title {
        font-size: 20px;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }
    
    .feedback-title::after {
        width: 60px;
        height: 2px;
    }
    
    .rating-stars-big {
        font-size: 24px;
    }
    
    .rating-number-big {
        font-size: 34px;
    }
    
    .rating-number-big span {
        font-size: 16px;
    }
    
    .rating-count-big {
        font-size: 12px;
    }
    
    /* ✅ Filter section — 1 column, left aligned */
    .feedback-filters {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        margin-bottom: 20px;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
        width: 100%;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }
    
    .filter-group label {
        font-size: 11px;
        text-align: left;
        margin-bottom: 6px;
    }
    
    .filter-group select {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
        text-align: left;
    }
    
    .btn-write-review {
        width: 100%;
        padding: 14px;
        text-align: center;
        font-size: 13px;
    }
    
    .review-card {
        padding: 16px 18px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .review-name {
        font-size: 14px;
    }
    
    .review-text {
        font-size: 13.5px;
    }
    
    .review-date {
        font-size: 11px;
    }
    
    .reviews-empty {
        padding: 40px 20px;
    }
    
    .empty-icon {
        font-size: 55px;
    }
    
    .reviews-empty h3 {
        font-size: 18px;
    }
    
    .btn-write-review-big {
        padding: 13px 30px;
        font-size: 13px;
    }
    
    .review-modal {
        width: 95%;
        max-height: 92vh;
    }
    
    .review-modal-body {
        padding: 18px;
    }
    
    .star-rating-input {
        font-size: 28px;
        gap: 6px;
    }
}