/* Law Reviews CSS - نظام تقييمات وتعليقات القوانين */

/* CSS Variables */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Cairo', sans-serif;
    --star-color: #ffd700;
    --star-empty: #e0e0e0;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --primary-color: #4a90e2;
    --secondary-color: #5a6c7d;
    --text-color: #ecf0f1;
    --text-light: #bdc3c7;
    --light-color: #34495e;
    --dark-color: #ecf0f1;
    --border-color: #5a6c7d;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.5);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.reviews-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb i {
    font-size: 12px;
    opacity: 0.7;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    font-size: 14px;
}

.action-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Main Layout */
.reviews-main {
    padding: 30px 0;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Law Summary Card */
.law-summary-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.law-info {
    margin-bottom: 25px;
}

.law-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.law-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.law-meta span {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.law-number {
    background: var(--info-color);
    color: white;
}

.law-year {
    background: var(--secondary-color);
    color: white;
}

.law-category {
    background: var(--warning-color);
    color: white;
}

.law-status.active {
    background: var(--success-color);
    color: white;
}

/* Rating Summary */
.rating-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
}

.overall-rating {
    text-align: center;
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 8px;
}

.rating-stars i {
    font-size: 20px;
    color: var(--star-color);
    margin: 0 2px;
}

.rating-stars i.far {
    color: var(--star-empty);
}

.rating-count {
    font-size: 14px;
    color: var(--text-light);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.rating-bar .stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
}

.rating-bar .stars i {
    font-size: 12px;
    color: var(--star-color);
}

.bar {
    height: 8px;
    background: var(--star-empty);
    border-radius: 4px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: var(--star-color);
    transition: width 0.6s ease;
}

.rating-bar .count {
    text-align: right;
    color: var(--text-light);
    font-weight: 600;
}

/* Reviews Controls */
.reviews-controls {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    white-space: nowrap;
}

.filter-group select,
.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus,
.sort-options select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-options label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    white-space: nowrap;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

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

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

.reviewer-avatar {
    position: relative;
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.reviewer-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    border: 2px solid white;
}

.reviewer-badge.lawyer {
    background: var(--primary-color);
}

.reviewer-badge.academic {
    background: var(--success-color);
}

.reviewer-badge.judge {
    background: var(--accent-color);
}

.reviewer-badge.citizen {
    background: var(--secondary-color);
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.reviewer-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.reviewer-meta span {
    position: relative;
}

.reviewer-meta span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -8px;
    color: var(--border-color);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.review-rating .stars {
    display: flex;
    gap: 2px;
}

.review-rating .stars i {
    font-size: 16px;
    color: var(--star-color);
}

.review-rating .stars i.far {
    color: var(--star-empty);
}

.review-rating .rating-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

/* Review Content */
.review-content {
    margin-bottom: 20px;
}

.review-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.review-text {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 15px;
}

.review-highlights {
    background: var(--light-color);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
}

.review-highlights h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.review-highlights ul {
    list-style: none;
    padding: 0;
}

.review-highlights li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 14px;
}

.review-highlights li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Review Actions */
.review-actions {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.review-actions .action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-actions .action-btn:hover {
    background: var(--light-color);
    color: var(--text-color);
    border-color: var(--primary-color);
}

.review-actions .action-btn.helpful.active {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

/* Review Replies */
.review-replies {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.reply-item {
    background: var(--light-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reply-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.reply-date {
    color: var(--text-light);
    font-size: 12px;
    margin-right: auto;
}

.reply-text {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Sidebar Styles */
.reviews-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section h3 i {
    font-size: 14px;
}

/* Quick Stats */
.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Top Reviewers */
.top-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-reviewer:last-child {
    border-bottom: none;
}

.top-reviewer img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.top-reviewer .reviewer-info {
    flex: 1;
}

.top-reviewer .name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 2px;
}

.top-reviewer .reviews-count {
    font-size: 12px;
    color: var(--text-light);
}

.top-reviewer .reviewer-rating {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Related Laws */
.related-law {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-law:last-child {
    border-bottom: none;
}

.related-law h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-law .law-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-law .stars {
    display: flex;
    gap: 2px;
}

.related-law .stars i {
    font-size: 12px;
    color: var(--star-color);
}

.related-law .stars i.far {
    color: var(--star-empty);
}

.related-law .law-rating span {
    font-size: 12px;
    color: var(--text-light);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--light-color);
    color: var(--text-color);
}

.modal-body {
    padding: 25px;
}

/* Review Form */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.rating-input {
    display: flex;
    gap: 5px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 24px;
    color: var(--star-empty);
    cursor: pointer;
    transition: var(--transition);
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: var(--star-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-color);
    background: white;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--success-color);
    min-width: 300px;
    animation: toastSlideIn 0.3s ease;
}

.toast.error {
    border-left-color: var(--accent-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 1200;
    backdrop-filter: blur(3px);
}

.loading-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-message {
    color: var(--text-color);
    font-weight: 600;
}

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .reviews-layout {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }
}

/* Large Devices (1200px and up) */
@media (max-width: 1199px) {
    .reviews-layout {
        grid-template-columns: 1fr 320px;
        gap: 25px;
    }
    
    .law-summary-card {
        padding: 25px;
    }
    
    .rating-summary {
        gap: 25px;
    }
}

/* Medium Devices (992px and up) */
@media (max-width: 991px) {
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reviews-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .breadcrumb {
        justify-content: center;
    }
}

/* Small Devices (768px and up) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .reviews-main {
        padding: 20px 0;
    }
    
    .law-summary-card,
    .review-item,
    .sidebar-section {
        padding: 20px;
    }
    
    .rating-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .reviews-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .review-rating {
        align-self: flex-start;
    }
    
    .review-actions {
        justify-content: center;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Extra Small Devices (576px and up) */
@media (max-width: 575px) {
    .law-title {
        font-size: 20px;
    }
    
    .rating-value {
        font-size: 36px;
    }
    
    .law-meta {
        justify-content: center;
    }
    
    .reviewer-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .reviewer-meta span::after {
        display: none;
    }
    
    .review-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .action-btn {
        justify-content: center;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .toast {
        min-width: 250px;
        margin: 0 10px;
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .action-btn,
    .btn,
    .load-more-btn {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .review-actions .action-btn {
        min-height: 40px;
        padding: 10px 14px;
    }
    
    .rating-input label {
        font-size: 28px;
        padding: 5px;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Landscape Orientation */
@media (max-width: 991px) and (orientation: landscape) {
    .reviews-header {
        padding: 15px 0;
    }
    
    .reviews-main {
        padding: 20px 0;
    }
    
    .law-summary-card {
        padding: 20px;
    }
    
    .rating-summary {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
}

/* Print Styles */
@media print {
    .reviews-header,
    .reviews-sidebar,
    .review-actions,
    .load-more-section,
    .modal,
    .toast-container,
    .loading-overlay {
        display: none !important;
    }
    
    .reviews-layout {
        grid-template-columns: 1fr;
    }
    
    .review-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .law-summary-card {
        box-shadow: none;
        border: 2px solid #333;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-light: #333;
        --shadow-light: 0 2px 10px rgba(0,0,0,0.3);
        --shadow-medium: 0 4px 20px rgba(0,0,0,0.4);
    }
    
    .review-item,
    .law-summary-card,
    .sidebar-section {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .spinner {
        animation: none;
        border: 4px solid var(--primary-color);
    }
}

/* Dark Theme Responsive Adjustments */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .law-summary-card,
    .review-item,
    .sidebar-section,
    .reviews-controls {
        background: var(--dark-color);
        border-color: var(--border-color);
    }
    
    .modal-content {
        background: var(--dark-color);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background: var(--dark-color);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    
    .toast {
        background: var(--dark-color);
        color: var(--text-color);
    }
}