/* Import base review styles */
@import url("../../css/style/ot-itemreviews.css");

/* Shamrock theme specific review styles */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.reviews-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.addItemReview {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
}

.addItemReview:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea885 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.addItemReview:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.addItemReview i {
    font-size: 14px;
}

/* Review items styling */
.paymshipReviews {
    margin: 0;
    padding: 0;
}

.paymshipReviewsItem {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.paymshipReviewsItem:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.paymshipReviewsItem:first-child {
    margin-top: 0;
}

.item-review-block .reviewsAction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8f9fa;
}

.item-review-block .reviewsAction div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.item-review-block .reviewsAction div.right {
    margin-left: auto;
}

.item-review-block .paymshipReviewsPost {
    line-height: 1.6;
    margin: 15px 0 0;
    color: #495057;
    font-size: 14px;
}

/* Rating stars styling */
.ratyScore, .ratyScore-lg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ratyScore img, .ratyScore-lg img {
    width: 16px;
    height: 16px;
}

.ratyScore-lg img {
    width: 20px;
    height: 20px;
}

/* Review form styling */
#add-item-review {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#add-item-review .form-group {
    margin-bottom: 20px;
}

#add-item-review label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

#add-item-review textarea {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

#add-item-review textarea:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Button styling in review form */
#add-item-review .btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
}

#add-item-review .btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea885 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#add-item-review .btn-cancel {
    background: #6c757d;
    margin-left: 10px;
}

#add-item-review .btn-cancel:hover {
    background: #5a6268;
}

/* Pagination styling */
.b-pager {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.b-list-page {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.b-list-page .b-item {
    display: flex;
}

.b-list-page .b-item a {
    display: block;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #495057;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.b-list-page .b-item a:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.b-list-page .b-item.active a {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.b-list-page .b-item.dotted {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #6c757d;
}

/* Spinner styling */
.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert styling */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .addItemReview {
        width: 100%;
        justify-content: center;
    }
    
    .paymshipReviewsItem {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .item-review-block .reviewsAction {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-review-block .reviewsAction div.right {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    
    #add-item-review {
        padding: 20px 15px;
    }
    
    .b-list-page {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Tab content styling */
.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* No reviews message */
.no-reviews-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Review metadata styling */
.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: #495057;
}

.review-date {
    color: #6c757d;
}

/* File upload styling for reviews */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
    margin: 15px 0;
}

.file-upload-area:hover {
    border-color: #28a745;
}

.file-upload-area.dragover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}