/* ========================================================
   FIFOZONE PRODUCT REVIEWS CSS
   ======================================================== */

.fifo-reviews-wrap {
    font-family: 'Inter', sans-serif;
    color: #374151;
}

/* Header */
.fifo-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.fifo-reviews-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.fifo-review-actions {
    display: flex;
    gap: 12px;
}
.fifo-review-action-btn {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fifo-review-action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
.fifo-review-action-btn.primary {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}
.fifo-review-action-btn.primary:hover {
    background: #4338ca;
}

/* Summary Box */
.fifo-pr-summary-box {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 24px;
    gap: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

/* Left - Big Rating */
.fifo-pr-summary-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}
.fifo-pr-rating-big {
    font-size: 56px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fifo-pr-rating-big .star {
    font-size: 32px;
    color: #6c4fe0;
}
.fifo-pr-stars-visual {
    margin-top: 8px;
    margin-bottom: 4px;
    font-size: 20px;
    letter-spacing: 2px;
}
.fifo-pr-stars-visual .star-filled { color: #6c4fe0; }
.fifo-pr-stars-visual .star-empty { color: #e5e7eb; }
.fifo-pr-based-on {
    font-size: 13px;
    color: #6b7280;
}

/* Middle - Breakdown */
.fifo-pr-summary-middle {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fifo-pr-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fifo-pr-bar-label {
    font-size: 13px;
    color: #4b5563;
    width: 35px;
    text-align: right;
    font-weight: 500;
}
.fifo-pr-bar-track {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}
.fifo-pr-bar-fill {
    height: 100%;
    background: #6c4fe0;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fifo-pr-bar-count {
    font-size: 13px;
    color: #6b7280;
    width: 50px;
}

/* Middle Photos */
.fifo-pr-summary-photos {
    display: flex;
    gap: 8px;
}
.fifo-pr-summary-photos img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

/* Right - Tags */
.fifo-pr-summary-right {
    min-width: 250px;
    flex: 1.5;
}
.fifo-pr-summary-right h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}
.fifo-pr-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fifo-pr-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}
.fifo-pr-tag svg {
    color: #6c4fe0;
}

/* Filter Bar */
.fifo-pr-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.fifo-pr-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.fifo-pr-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}
.fifo-pr-toggle {
    display: inline-flex;
    cursor: pointer;
}
.fifo-pr-toggle input {
    display: none;
}
.fifo-pr-toggle-btn {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    user-select: none;
}
.fifo-pr-toggle input:checked + .fifo-pr-toggle-btn {
    background: #f1eefc;
    border-color: #6c4fe0;
    color: #6c4fe0;
}
.fifo-pr-toggle input:checked + .fifo-pr-toggle-btn svg {
    stroke: #6c4fe0;
}

/* Review Cards */
.fifo-pr-card {
    padding: 24px 0;
    border-bottom: 1px solid #f3f4f6;
}
.fifo-pr-header {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.fifo-pr-avatar {
    width: 40px;
    height: 40px;
    background: #f1eefc;
    color: #6c4fe0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.fifo-pr-meta {
    display: flex;
    flex-direction: column;
}
.fifo-pr-name {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fifo-pr-verified {
    font-size: 12px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.fifo-pr-date {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}
.fifo-pr-stars {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.fifo-pr-stars .star-filled { color: #6c4fe0; }
.fifo-pr-stars .star-empty { color: #e5e7eb; }
.fifo-pr-rating-num {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4f46e5;
    background: #f1eefc;
    padding: 2px 6px;
    border-radius: 4px;
}
.fifo-pr-title {
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    margin-bottom: 8px;
}
.fifo-pr-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 16px;
}
.fifo-pr-pet-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 6px;
    width: fit-content;
}
.fifo-pr-photos {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.fifo-pr-photos img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
    cursor: pointer;
}
.fifo-pr-actions {
    display: flex;
    gap: 20px;
}
.fifo-pr-actions button {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.fifo-pr-actions button:hover {
    color: #4f46e5;
}

/* Brand Reply */
.fifo-pr-brand-reply {
    background: #f9fafb;
    border-left: 3px solid #6c4fe0;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-top: 16px;
    margin-left: 20px;
}
.fifo-pr-brand-reply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.fifo-pr-brand-logo {
    width: 28px;
    height: 28px;
    background: #6c4fe0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fifo-pr-brand-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}
.fifo-pr-brand-name span {
    font-size: 11px;
    background: #f1eefc;
    color: #6c4fe0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}
.fifo-pr-brand-date {
    font-size: 12px;
    color: #9ca3af;
    margin-left: auto;
}
.fifo-pr-brand-text {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

/* Modals */
.fifo-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fifo-modal-content {
    background: #fff;
    width: 100%;
    max-width: 550px;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    max-height: 90vh;
    overflow-y: auto;
    animation: fifoModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fifoModalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fifo-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}
.fifo-modal-close:hover { color: #374151; }
.fifo-modal-header {
    margin-bottom: 24px;
}
.fifo-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}
.fifo-modal-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}
.fifo-form-group {
    margin-bottom: 20px;
}
.fifo-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}
.fifo-form-group input[type="text"],
.fifo-form-group input[type="email"],
.fifo-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.fifo-form-group input:focus,
.fifo-form-group textarea:focus {
    border-color: #6c4fe0;
    box-shadow: 0 0 0 3px rgba(108, 79, 224, 0.1);
}
.fifo-star-rating-input {
    display: flex;
    gap: 8px;
    font-size: 28px;
    color: #e5e7eb;
    cursor: pointer;
}
.fifo-star-rating-input .fifo-star-select.active {
    color: #6c4fe0;
}
.fifo-star-rating-input .fifo-star-select:hover ~ .fifo-star-select {
    color: #e5e7eb !important;
}
.fifo-star-rating-input:hover .fifo-star-select {
    color: #6c4fe0;
}
.fifo-form-row {
    display: flex;
    gap: 16px;
}
.fifo-form-row .fifo-form-group {
    flex: 1;
}
.fifo-pr-submit-btn {
    width: 100%;
    padding: 14px;
    background: #6c4fe0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.fifo-pr-submit-btn:hover {
    background: #5b42c6;
}

/* Loading & Utils */
.fifo-pr-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-weight: 500;
}
.fifo-no-reviews {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 15px;
}
.fifo-pr-btn-outline {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}
.fifo-pr-btn-outline:hover {
    background: #f9fafb;
    color: #111827;
}

@media (max-width: 768px) {
    .fifo-pr-summary-box {
        flex-direction: column;
        gap: 20px;
    }
    .fifo-form-row {
        flex-direction: column;
        gap: 0;
    }
    .fifo-pr-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .fifo-pr-filters {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .fifo-modal-content { padding: 20px 16px; }
    .fifo-pr-summary-left { min-width: auto; }
    .fifo-pr-summary-middle { min-width: auto; }
    .fifo-pr-summary-right { min-width: auto; }
    .fifo-pr-filters { flex-wrap: wrap; }
    .fifo-pr-header { flex-wrap: wrap; }
    .fifo-pr-actions { flex-wrap: wrap; gap: 12px; }
    .fifo-review-actions { flex-wrap: wrap; }
    .fifo-pr-brand-reply { margin-left: 0; }
}
