/* LUXURY THEME REVIEWS COMPONENT */

.reviews-section {
    color: #555;
}

/* Empty State (Reuse from wishlist if possible, but keeping specific here) */
.reviews-section .empty-state {
    text-align: center;
    padding: 30px;
    background: #fff8e1;
    /* Light yellow warning bg */
    border: 1px solid #ffe082;
    border-radius: 8px;
    color: #8d6e63;
    margin: 20px 0;
    box-shadow: none;
    /* Override possible defaults */
}

.reviews-section .empty-state i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.8;
    color: #fca000;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    animation: none;
}

.reviews-section .empty-state h4 {
    display: none;
}

/* Only p is used */

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.review-author {
    font-weight: 600;
    color: var(--primary);
}

.review-date {
    color: #999;
}

.review-rating {
    color: #f39c12;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.review-body {
    line-height: 1.6;
}

.review-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.review-image {
    margin-top: 15px;
}

.review-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #eee;
}

.review-image img:hover {
    transform: scale(1.05);
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.review-form-wrapper {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.review-form-wrapper h4 {
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.login-prompt a {
    color: var(--accent);
    font-weight: 600;
}

/* Profile Review Tabs & Cards */
.profile-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0;
    margin-bottom: 30px !important;
}

.profile-tabs .tab-item {
    padding: 12px 5px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    margin-bottom: -2px;
    /* Pull down to overlap the container's border */
}

.profile-tabs .tab-item:hover {
    color: var(--primary, #222222);
}

.profile-tabs .tab-item.active {
    color: var(--primary, #222222);
    border-bottom-color: var(--primary, #222222);
    background: transparent;
    border-radius: 0;
}

/* Review Grid Layout */
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 576px) {
    .review-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Existing horizontal card (approved, pending, etc.) */
.product-card-review {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.product-card-review:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

/* Vertical Review Card (to_review tab) */
.review-card-vertical {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-card-vertical:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.review-card-img {
    display: block;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f8f9fa;
}

.review-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.review-card-vertical:hover .review-card-img img {
    transform: scale(1.05);
}

.review-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.review-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card-title a {
    color: var(--primary, #1a1a2e);
    text-decoration: none;
    transition: color 0.2s ease;
}

.review-card-title a:hover {
    color: var(--accent, #222222);
}

.review-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.review-card-rating .stars {
    color: #f39c12;
    font-size: 0.85rem;
}

.review-card-rating .stars .fa-regular {
    color: #ddd;
}

.review-card-rating .count {
    color: #999;
    font-size: 0.8rem;
}

.review-card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.review-card-date .label {
    font-weight: 500;
    color: #555;
}

.btn-review-action {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid #eee;
    color: #333;
    background: #f8f9fa;
    font-weight: 500;
    border-radius: 6px;
    padding: 9px 16px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    margin-top: auto;
}

.btn-review-action:hover {
    background: var(--primary, #222222);
    color: #fff;
    border-color: var(--primary, #222222);
}

/* Review text (approved/pending cards) */
.review-text {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 14px 18px;
    border: 1px solid #eee;
    border-left: 3px solid var(--primary, #222222);
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

/* Image container (approved/pending cards) */
.pcr-image {
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.pcr-image img {
    transition: transform 0.3s ease;
}

.product-card-review:hover .pcr-image img {
    transform: scale(1.05);
}

.product-title-hover {
    transition: color 0.2s ease;
}

.product-title-hover:hover {
    color: var(--accent, #222222) !important;
}

@media (max-width: 576px) {
    .review-card-img {
        height: 150px;
    }

    .review-card-body {
        padding: 14px;
    }
}

/* Enhancing Alerts in review cards */
.product-card-review .alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.product-card-review .alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: #d68910;
}

.product-card-review .alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.product-card-review .alert-secondary {
    background-color: rgba(149, 165, 166, 0.1);
    color: #7f8c8d;
}

/* Empty State Styling (General for Profile) */
.reviews-content .empty-state {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border: 1px dashed #e0e0e0;
    border-radius: 16px;
    color: #666;
    margin: 30px 0;
}

.reviews-content .empty-state i {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    display: block;
}

.reviews-content .empty-state h4 {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.reviews-content .empty-state p {
    color: #888;
    font-size: 0.95rem;
}

.text-muted-light {
    color: #e9ecef !important;
}

@media(max-width: 768px) {
    .profile-tabs {
        overflow-x: auto;
        white-space: nowrap;
        gap: 15px;
        padding-bottom: 5px;
    }
}