/* Content Moderation Page Styles */

.content-moderation-page {
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

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

.moderation-title h1 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.moderation-title h1 i {
    margin-right: 10px;
    color: #4a9eff;
}

.moderation-subtitle {
    color: #888;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

.moderation-stats {
    display: flex;
    gap: 15px;
}

.moderation-stats .stat-item {
    background: #1e1e1e;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    color: #aaa;
}

.moderation-stats .stat-item i {
    margin-right: 6px;
    color: #4a9eff;
}

/* Search Form */
.moderation-search-form {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-prompt-input {
    width: 100%;
    padding: 18px 24px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    height: 60px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.search-prompt-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.search-btn {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
    margin-left: auto;
}

.options-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-group label {
    font-size: 12px;
    color: #888;
}

.option-group select,
.option-group input[type="date"] {
    padding: 8px 12px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
}

.option-group input[type="range"] {
    width: 150px;
    accent-color: #4a9eff;
}

/* Results */
.moderation-results {
    min-height: 300px;
}

.searching-indicator,
.no-results-message,
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
}

.searching-indicator i,
.no-results-message i,
.error-message i {
    font-size: 40px;
    margin-bottom: 15px;
}

.error-message {
    color: #f44336;
}

.results-summary {
    display: flex;
    gap: 20px;
    padding: 12px 15px;
    background: #1e1e1e;
    border-radius: 6px;
    margin-bottom: 20px;
}

.results-summary span {
    color: #aaa;
    font-size: 13px;
}

.results-summary i {
    margin-right: 6px;
    color: #4a9eff;
}

/* User Cards */
.user-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card {
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    width: 100%;
    box-sizing: border-box;
}

.user-icon {
    color: #666;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.user-name:hover {
    color: #4a9eff;
}

.user-name-link {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.user-name-link:hover {
    color: #4a9eff;
}

.user-email {
    color: #666;
    font-size: 12px;
}

.meta-item {
    color: #888;
    font-size: 12px;
}

.meta-item i {
    margin-right: 3px;
    color: #666;
}

.user-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn-ok {
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.btn-ok:hover {
    background: #388e3c;
}

.btn-violation {
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.btn-violation:hover {
    background: #b71c1c;
}

/* Standing Badges */
.standing-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.standing-badge.good {
    background: #1b5e20;
    color: #81c784;
}

.standing-badge.limited {
    background: #f57f17;
    color: #fff8e1;
}

.standing-badge.very-limited {
    background: #e65100;
    color: #fff3e0;
}

.standing-badge.suspended {
    background: #b71c1c;
    color: #ffcdd2;
}

.standing-badge.unknown {
    background: #37474f;
    color: #90a4ae;
}

/* Action Buttons */
.btn-danger {
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 20px;
}

.btn-danger:hover {
    background: #b71c1c;
}

.btn-secondary {
    background: #424242;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 20px;
}

.btn-secondary:hover {
    background: #616161;
}

.btn-primary {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1565c0;
}

/* Image Grid */
.user-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
}

.image-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    background: #252525;
    cursor: pointer;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-item.flagged {
    box-shadow: 0 0 0 2px #f44336;
}

.image-score {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.image-score.score-high {
    background: #c62828;
    color: #fff;
}

.image-score.score-medium {
    background: #f57c00;
    color: #fff;
}

.image-score.score-low {
    background: #388e3c;
    color: #fff;
}

.flagged-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    color: #f44336;
    font-size: 12px;
    text-shadow: 0 0 3px rgba(0,0,0,0.8);
}

.image-item .flag-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
}

.image-item:hover .flag-btn {
    opacity: 1;
}

.image-item .flag-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #f44336;
}

.image-item .flag-btn.flagged {
    background: #f44336;
    color: #fff;
    opacity: 1;
}

.image-item .flag-btn.flagged:hover {
    background: #d32f2f;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.violation-modal {
    background: #1e1e1e;
    border-radius: 10px;
    width: 500px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #252525;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.modal-header h2 i {
    color: #f57c00;
    margin-right: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Violation Form */
.violation-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-target {
    padding: 10px 15px;
    background: #252525;
    border-radius: 6px;
    color: #fff;
}

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

.form-group label {
    font-size: 13px;
    color: #aaa;
}

.form-group select,
.form-group input[type="number"],
.form-group textarea {
    padding: 10px 12px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

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

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ddd;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4a9eff;
}

.ban-options,
.delete-options {
    padding: 15px;
    background: #252525;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warning-label .warning-text {
    color: #f44336;
}

.warning-label .warning-text i {
    margin-right: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
    .moderation-header {
        flex-direction: column;
        gap: 15px;
    }

    .search-row {
        flex-direction: column;
    }

    .options-row {
        flex-direction: column;
    }

    .user-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .user-meta {
        flex-wrap: wrap;
    }

    .image-item {
        width: 120px;
    }

    .image-item img {
        height: 120px;
    }
}
