/* ============================================
   REVIEW SONGS PANEL - MODERN MINIMAL DESIGN
   ============================================ */

/* Panel Container */
.reviews-panel {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    color: var(--text-primary);
}

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

.reviews-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.reviews-subtitle {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Tab Navigation */
.reviews-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-primary);
    margin-bottom: 30px;
    justify-content: center;
}

.reviews-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 15px 30px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    top: 2px;
}

.reviews-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.reviews-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.reviews-tab .icon-inline {
    opacity: 0.7;
}

.reviews-tab.active .icon-inline {
    opacity: 1;
}

/* Tab Content */
.reviews-content {
    position: relative;
}

.reviews-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.reviews-tab-content.active {
    display: block;
}

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

/* Filter Controls */
.reviews-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Track Cards Grid */
.pending-tracks-grid,
.my-reviews-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Track Card */
.track-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    transform: scale(0.98); /* Start slightly smaller */
}

.track-card:hover {
    transform: scale(1); /* Grow to normal size */
    box-shadow: var(--shadow-md);
}

/* Track Card Header (Album Art) */
.track-card-header {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-primary);
    position: relative;
}

.track-card-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Track Card Body */
.track-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-card-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-card-artist {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-card-genre {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    width: fit-content;
}

.track-card-uploader,
.track-card-date {
    font-size: 0.8em;
    color: var(--text-tertiary);
    margin: 0;
}

/* Track Card Actions */
.track-card-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 10px;
}

.btn-play-track-card,
.btn-write-review {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-play-track-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-play-track-card:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-write-review {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-write-review:hover {
    background: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Review Modal */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.review-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-primary);
}

.review-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.review-modal-body {
    padding: 25px;
}

.review-track-info {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.review-track-art {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.review-track-art-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-disabled);
    flex-shrink: 0;
}

.review-track-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: var(--text-primary);
}

.review-track-details p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Rating Section */
.review-rating-section {
    margin-bottom: 20px;
}

.review-rating-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.rating-stars {
    display: flex;
    gap: 8px;
    font-size: 2em;
}

.rating-star {
    cursor: pointer;
    color: var(--bg-elevated);
    transition: all 0.2s ease;
}

.rating-star:hover,
.rating-star.active {
    color: #f39c12;
    transform: scale(1.1);
}

/* Comment Section */
.review-comment-section {
    margin-bottom: 20px;
}

.review-comment-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.review-comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95em;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.review-comment-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.review-comment-textarea::placeholder {
    color: var(--text-disabled);
}

/* Modal Actions */
.review-modal-actions {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-primary);
}

.btn-submit-review,
.btn-cancel-review {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-review {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-submit-review:hover {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.btn-submit-review:disabled {
    background: var(--bg-elevated);
    cursor: not-allowed;
    transform: none;
}

.btn-cancel-review {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-cancel-review:hover {
    background: var(--border-secondary);
}

/* Stats Container */
.review-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-card-value {
    font-size: 2em;
    font-weight: 700;
    color: #3498db;
    margin: 0 0 5px 0;
}

.stat-card-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0;
}

/* Empty State */
.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.reviews-empty .empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}

.reviews-empty h3 {
    font-size: 1.3em;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.reviews-empty p {
    font-size: 0.95em;
    margin: 0;
    color: var(--text-tertiary);
}

/* Loading State */
.reviews-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.1em;
}

.reviews-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-primary);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

/* Error State */
.reviews-error {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
    font-size: 1.1em;
}

/* My Reviews Specific Styles */
.review-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.review-card-track h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: var(--text-primary);
}

.review-card-track p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.review-card-rating {
    display: flex;
    gap: 4px;
    color: #f39c12;
}

.review-card-comment {
    margin: 15px 0;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

.review-card-date {
    font-size: 0.8em;
    color: var(--text-tertiary);
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pending-tracks-grid,
    .my-reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .reviews-panel {
        padding: 20px 15px;
    }
    
    .reviews-title {
        font-size: 1.6em;
    }
    
    .reviews-tabs {
        justify-content: stretch;
    }
    
    .reviews-tab {
        flex: 1;
        padding: 12px 15px;
        font-size: 0.85em;
    }
    
    .pending-tracks-grid,
    .my-reviews-list {
        grid-template-columns: 1fr;
    }
    
    .track-card-actions {
        flex-direction: column;
    }
    
    .btn-play-track-card,
    .btn-write-review {
        width: 100%;
    }
    
    .reviews-filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .review-modal-content {
        width: 95%;
    }
    
    .review-track-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .review-modal-actions {
        flex-direction: column;
    }
    
    .review-stats-container {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.review-modal-content::-webkit-scrollbar {
    width: 8px;
}

.review-modal-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.review-modal-content::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

.review-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--border-secondary);
}

/* ============================================
   ENHANCED REVIEW MODAL STYLES
   ============================================ */

/* Enhanced Modal Container */
.review-form-enhanced {
    padding: 0;
}

/* Track Info Header Section */
.review-header-section {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
}

.review-track-art {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.review-track-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.review-track-details h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-primary);
}

.review-track-artist {
    margin: 0;
    font-size: 1em;
    color: var(--text-secondary);
}

.review-track-genre {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin: 0;
}

/* Section Titles */
.review-section-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.review-section-subtitle {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

/* Scores Section */
.review-scores-section {
    padding: 25px;
    border-bottom: 1px solid var(--border-primary);
}

.score-inputs-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.score-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-primary);
}

.score-number-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.score-number-btn {
    min-width: 40px;
    height: 40px;
    border: 2px solid var(--border-primary);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-number-btn:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    transform: translateY(-2px);
}

.score-number-btn.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Final Score Display */
.final-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 2px solid var(--border-primary);
}

.final-score-label {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary);
}

.final-score-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-tertiary);
}

.final-score-max {
    font-size: 1.1em;
    color: var(--text-secondary);
}

/* Editor Section */
.review-editor-section {
    padding: 25px;
    border-bottom: 1px solid var(--border-primary);
}

.editor-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-template {
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-template:hover {
    background: var(--border-secondary);
    border-color: #3498db;
    color: #3498db;
}

.review-textarea-large {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    background: var(--bg-primary);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95em;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.review-textarea-large:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.review-textarea-large::placeholder {
    color: var(--text-disabled);
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.char-count {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.draft-indicator {
    font-size: 0.85em;
    color: #27ae60;
    font-weight: 500;
}

/* Enhanced Actions */
.review-form-actions-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--bg-primary);
}

.action-buttons-right {
    display: flex;
    gap: 10px;
}

.btn-save-draft {
    padding: 12px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save-draft:hover {
    background: var(--border-secondary);
    border-color: #f39c12;
    color: #f39c12;
}

.btn-cancel-enhanced {
    padding: 12px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-enhanced:hover {
    background: var(--border-secondary);
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-submit-review-enhanced {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit-review-enhanced:hover:not(:disabled) {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.btn-submit-review-enhanced:disabled {
    background: var(--bg-elevated);
    color: var(--text-disabled);
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Modal Width */
.review-modal-content {
    max-width: 900px;
}

/* Responsive Design for Enhanced Modal */
@media (max-width: 768px) {
    .review-header-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .review-track-art {
        width: 120px;
        height: 120px;
    }
    
    .score-number-selector {
        justify-content: center;
    }
    
    .score-number-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.9em;
    }
    
    .final-score-display {
        flex-direction: column;
        gap: 5px;
    }
    
    .review-form-actions-enhanced {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-buttons-right {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-save-draft,
    .btn-cancel-enhanced,
    .btn-submit-review-enhanced {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   MY REVIEWS LIST - MOBILE-FRIENDLY DESIGN
   ============================================ */

/* My Reviews List Container */
.my-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

/* Review Item Card */
.review-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.review-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-secondary);
}

/* Review Item Header */
.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-primary);
}

.review-track-info {
    flex: 1;
    min-width: 0;
}

.review-track-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
}

.review-track-info p {
    margin: 4px 0;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.review-track-info .review-uploader {
    font-size: 0.85em;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* Review Scores Summary */
.review-scores-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 200px;
}

.review-scores-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    width: 100%;
}

.review-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 0.75em;
    transition: all 0.2s ease;
}

.review-score-badge:hover {
    background: var(--border-secondary);
    border-color: #3498db;
}

.review-score-label {
    font-size: 0.7em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.2;
}

.review-score-value {
    font-size: 1.1em;
    font-weight: 700;
    color: #3498db;
}

/* Final Score Display in Header */
.review-final-score {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    border: 2px solid #3498db;
    border-radius: 8px;
    margin-top: 8px;
}

.review-final-score-label {
    font-size: 0.75em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.review-final-score-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #3498db;
}

/* Review Item Body */
.review-item-body {
    margin-bottom: 15px;
}

.review-text-scroll {
    color: var(--text-primary);
    font-size: 0.95em;
    line-height: 1.6;
    max-height: min(60vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 16px 14px 14px;
    margin-top: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-primary);
    white-space: pre-wrap;
    word-break: break-word;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: var(--text-secondary) var(--bg-secondary);
    -webkit-overflow-scrolling: touch;
}

.review-text-scroll:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.review-text-scroll::-webkit-scrollbar {
    width: 8px;
}

.review-text-scroll::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.review-text-scroll::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

.review-text-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

.review-text-preview {
    color: var(--text-primary);
    font-size: 0.95em;
    line-height: 1.6;
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease, overflow 0.3s ease;
    white-space: pre-wrap;
    word-break: break-word;
}

.review-text-preview.expanded {
    max-height: min(60vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: var(--text-secondary) var(--bg-secondary);
}

.review-text-preview.expanded::-webkit-scrollbar {
    width: 8px;
}

.review-text-preview.expanded::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.review-text-preview.expanded::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

.review-text-preview.expanded::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

.review-text-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.review-text-preview.expanded .review-text-fade {
    display: none;
}

.review-text-wrapper {
    position: relative;
}

.btn-read-more {
    display: none;
    margin-top: 10px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-read-more:hover {
    background: var(--bg-elevated);
    border-color: #3498db;
    color: #3498db;
}

/* Review Item Footer */
.review-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-primary);
    flex-wrap: wrap;
    gap: 10px;
}

.review-date {
    font-size: 0.85em;
    color: var(--text-tertiary);
}

.review-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.review-status.submitted {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.review-status.approved {
    background: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

/* Edit Button */
.btn-edit-review {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-edit-review:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-edit-review:active {
    transform: translateY(0);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .review-item {
        padding: 15px;
    }
    
    .review-item-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .review-scores-summary {
        width: 100%;
        align-items: stretch;
    }
    
    .review-scores-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    
    .review-score-badge {
        padding: 6px 2px;
    }
    
    .review-score-label {
        font-size: 0.65em;
    }
    
    .review-score-value {
        font-size: 1em;
    }
    
    .review-item-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-edit-review {
        width: 100%;
        justify-content: center;
    }
    
    .review-text-scroll {
        max-height: min(65vh, 360px); /* Slightly smaller on mobile */
    }
    
    .review-text-preview {
        max-height: 100px;
    }
    
    .review-text-preview.expanded {
        max-height: min(65vh, 360px);
    }
}

@media (max-width: 480px) {
    .review-scores-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 3px;
    }
    
    .review-score-badge {
        padding: 5px 1px;
    }
    
    .review-score-label {
        font-size: 0.6em;
        display: none; /* Hide labels on very small screens */
    }
    
    .review-score-value {
        font-size: 0.95em;
    }
}

