/* ========================================
   REVIEW SYSTEM STYLES - PYGNOSIS THEME
   ======================================== */

/* Main Review Section */
.reviews-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

/* Header Section */
.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.reviews-title span {
    color: #0CFE25;
}

.reviews-subtitle {
    font-size: 1.1rem;
    color: #9AAEC4;
    margin-bottom: 20px;
}

/* Statistics */
.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #0CFE25;
}

.stat-label {
    font-size: 0.9rem;
    color: #9AAEC4;
}

/* Toggle Button Container */
.review-toggle-container {
    text-align: center;
    margin-bottom: 30px;
}

.toggle-review-btn {
    background: #0CFE25;
    color: #010618;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.toggle-review-btn:hover {
    background: #00ff66;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(12, 254, 37, 0.5);
}

.toggle-review-btn i {
    font-size: 1.3rem;
    color: #010618;
}

/* Review Form Container */
.review-form-container {
    background: #1A1F2F;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
    animation: slideDown 0.3s ease-out;
}

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

.review-form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #0CFE25;
}

.review-form-message {
    color: #9AAEC4;
    margin-bottom: 20px;
}

.review-form-message.review-pending {
    color: #FFC107;
}

.review-form-message.review-rejected {
    color: #ff4444;
}

.review-login-prompt {
    text-align: center;
    padding: 10px;
}

.review-login-prompt p {
    color: #9AAEC4;
    font-size: 1.1rem;
}

.review-login-prompt a {
    color: #0CFE25;
    text-decoration: none;
    font-weight: bold;
}

.review-login-prompt a:hover {
    text-decoration: underline;
}

/* Form Elements */
.rating-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #9AAEC4;
}

/* Star Rating System */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.star-input {
    display: none;
}

.star-label {
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
}

.star-input:checked ~ .star-label,
.star-label:hover,
.star-label:hover ~ .star-label {
    color: #0CFE25;
}

/* Textarea */
.review-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: #010618;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
    color: #fff;
}

.review-textarea:focus {
    outline: none;
    border-color: #0CFE25;
}

.review-textarea::placeholder {
    color: #666;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
}

.delete-form {
    display: inline;
}

.approve-form {
    flex: 1;
}

/* Review Action Buttons - Beautiful aligned layout */
.review-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
    align-items: center;
    justify-content: flex-start;
}

/* Primary Action Button (Submit/Update) */
.btn-primary-action {
    background: #0CFE25;
    color: #010618;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(12, 254, 37, 0.2);
}

.btn-primary-action:hover {
    background: #00ff66;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(12, 254, 37, 0.4);
}

.btn-primary-action i {
    font-size: 1.1rem;
}

/* Delete Action Button */
.btn-delete-action {
    background: transparent;
    color: #ff4444;
    border: 2px solid #ff4444;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-delete-action:hover {
    background: #ff4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
}

.btn-delete-action i {
    font-size: 1rem;
}

/* Cancel Action Button */
.btn-cancel-action {
    background: transparent;
    color: #9AAEC4;
    border: 2px solid #333;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.btn-cancel-action:hover {
    background: #333;
    border-color: #0CFE25;
    color: #fff;
    transform: translateY(-2px);
}

.btn-cancel-action i {
    font-size: 1rem;
}

/* Legacy button styles for other parts */
.submit-btn {
    background: #0CFE25;
    color: #010618;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #00ff66;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(12, 254, 37, 0.5);
}

.delete-btn {
    background: #ff4444;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: #ff6666;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.cancel-btn {
    background: transparent;
    color: #9AAEC4;
    border: 1px solid #333;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background: #333;
    border-color: #0CFE25;
    color: #fff;
}

/* Section Title */
.reviews-section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #fff;
    text-align: center;
}

/* Reviews List */
.reviews-list {
    display: grid;
    gap: 20px;
}

/* Review Card */
.review-card {
    background: #1A1F2F;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #333;
    transition: all 0.3s;
}

.review-card:hover {
    border-color: #0CFE25;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(12, 254, 37, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0CFE25;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #010618;
    font-size: 1.2rem;
    font-weight: bold;
}

.user-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.review-date {
    font-size: 0.85rem;
    color: #9AAEC4;
}

.review-stars {
    color: #0CFE25;
    font-size: 1.2rem;
}

.review-text {
    color: #9AAEC4;
    line-height: 1.6;
    margin-top: 15px;
}

/* Review Status Badges */
.review-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 10px;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid #FFC107;
}

.status-approved {
    background: rgba(12, 254, 37, 0.2);
    color: #0CFE25;
    border: 1px solid #0CFE25;
}

.status-rejected {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

/* No Reviews State */
.no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: #1A1F2F;
    border-radius: 10px;
    border: 1px solid #333;
}

.no-reviews i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #333;
}

.no-reviews h3 {
    color: #fff;
    margin-bottom: 10px;
}

.no-reviews p {
    color: #9AAEC4;
}

/* ========================================
   ADMIN PENDING REVIEWS PAGE
   ======================================== */

.admin-reviews-section {
    max-width: 1400px;
    margin: 50px auto;
    padding: 20px;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.admin-title span {
    color: #0CFE25;
}

.admin-subtitle {
    font-size: 1.1rem;
    color: #9AAEC4;
}

.pending-count {
    display: inline-block;
    background: #ff4444;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Admin Review Cards */
.reviews-grid {
    display: grid;
    gap: 25px;
}

.review-admin-card {
    background: #1A1F2F;
    border-radius: 10px;
    padding: 30px;
    border: 2px solid #FFC107;
    transition: all 0.3s;
}

.review-admin-card:hover {
    border-color: #0CFE25;
    box-shadow: 0 0 20px rgba(12, 254, 37, 0.2);
}

.review-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0CFE25;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #010618;
    font-size: 1.5rem;
    font-weight: bold;
}

.reviewer-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: #fff;
}

.reviewer-username {
    color: #9AAEC4;
    font-size: 0.9rem;
}

.reviewer-details div {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #9AAEC4;
}

.reviewer-details i {
    color: #0CFE25;
}

.review-meta {
    text-align: right;
}

.review-rating {
    font-size: 1.5rem;
    color: #0CFE25;
    margin-bottom: 5px;
}

.review-date-admin {
    font-size: 0.85rem;
    color: #9AAEC4;
}

.review-content {
    margin: 20px 0;
}

.review-text-admin {
    color: #9AAEC4;
    line-height: 1.8;
    font-size: 1.05rem;
    padding: 15px;
    background: #010618;
    border-radius: 5px;
    border: 1px solid #333;
}

/* Admin Actions */
.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-approve {
    flex: 1;
    background: #0CFE25;
    color: #010618;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-approve:hover {
    background: #00ff66;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(12, 254, 37, 0.5);
}

.btn-approve i {
    color: #010618;
}

.btn-reject {
    flex: 1;
    background: transparent;
    color: #ff4444;
    border: 2px solid #ff4444;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-reject:hover {
    background: #ff4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.btn-reject i {
    color: inherit;
}

/* No Pending Reviews */
.no-pending {
    text-align: center;
    padding: 80px 20px;
    background: #1A1F2F;
    border-radius: 10px;
    border: 1px solid #333;
}

.no-pending i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #333;
}

.no-pending h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.no-pending p {
    color: #9AAEC4;
}

.no-pending a {
    display: inline-block;
    margin-top: 20px;
    color: #0CFE25;
    text-decoration: none;
    font-weight: bold;
}

.no-pending a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 6, 24, 0.9);
}

.modal-content {
    background-color: #1A1F2F;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #0CFE25;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(12, 254, 37, 0.3);
}

.modal-header {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #0CFE25;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.modal-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    background: #010618;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
    color: #fff;
}

.modal-textarea:focus {
    outline: none;
    border-color: #0CFE25;
}

.modal-textarea::placeholder {
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-cancel {
    flex: 1;
    background: transparent;
    color: #9AAEC4;
    border: 1px solid #333;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #333;
    color: #fff;
    border-color: #0CFE25;
}

.btn-confirm {
    flex: 1;
    background: #ff4444;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm:hover {
    background: #ff6666;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Notification Bell */
.notification-bell-active {
    position: relative;
    color: #0CFE25;
}

.notification-bell-active::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}
