/**
 * UnitedLGB — all Report-related UI.
 * Load after public/css/theme.css (uses :root variables).
 * Behavior stays in public/js/ulgb_report_modal.js and page scripts; this file is presentation only.
 */

/* -------------------------------------------------------------------------- */
/* 1. Feed & post-card Report (native <button> reset: button + two classes)   */
/* -------------------------------------------------------------------------- */

#homepage-post-feed-container,
#userprofile-post-feed-container,
#viewuserprofile-post-feed-container {
    color-scheme: dark;
}

#homepage-post-feed-container button.homepage-post-item-report-btn.ulgb-report-post-btn,
#homepage-post-feed-container .homepage-post-item-shared-inner button.homepage-post-item-report-btn.ulgb-report-post-btn,
#userprofile-post-feed-container button.homepage-post-item-report-btn.ulgb-report-post-btn,
#userprofile-post-feed-container .homepage-post-item-shared-inner button.homepage-post-item-report-btn.ulgb-report-post-btn,
#viewuserprofile-post-feed-container button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn,
#viewuserprofile-post-feed-container .viewuserprofile-post-item-shared-inner button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn,
.groups-detail-post-card-actions button.groups-detail-post-card-report-btn.ulgb-report-post-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 6px;
}

#homepage-post-feed-container button.homepage-post-item-report-btn.ulgb-report-post-btn:hover,
#homepage-post-feed-container .homepage-post-item-shared-inner button.homepage-post-item-report-btn.ulgb-report-post-btn:hover,
#userprofile-post-feed-container button.homepage-post-item-report-btn.ulgb-report-post-btn:hover,
#userprofile-post-feed-container .homepage-post-item-shared-inner button.homepage-post-item-report-btn.ulgb-report-post-btn:hover,
#viewuserprofile-post-feed-container button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn:hover,
#viewuserprofile-post-feed-container .viewuserprofile-post-item-shared-inner button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn:hover,
.groups-detail-post-card-actions button.groups-detail-post-card-report-btn.ulgb-report-post-btn:hover {
    background-color: transparent;
    background: transparent;
    color: var(--text-primary);
}

#homepage-post-feed-container button.homepage-post-item-report-btn.ulgb-report-post-btn:focus-visible,
#homepage-post-feed-container .homepage-post-item-shared-inner button.homepage-post-item-report-btn.ulgb-report-post-btn:focus-visible,
#userprofile-post-feed-container button.homepage-post-item-report-btn.ulgb-report-post-btn:focus-visible,
#userprofile-post-feed-container .homepage-post-item-shared-inner button.homepage-post-item-report-btn.ulgb-report-post-btn:focus-visible,
#viewuserprofile-post-feed-container button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn:focus-visible,
#viewuserprofile-post-feed-container .viewuserprofile-post-item-shared-inner button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn:focus-visible,
.groups-detail-post-card-actions button.groups-detail-post-card-report-btn.ulgb-report-post-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background-color: transparent;
    background: transparent;
}

#homepage-post-feed-container button.homepage-post-item-report-btn.ulgb-report-post-btn::-moz-focus-inner,
#homepage-post-feed-container .homepage-post-item-shared-inner button.homepage-post-item-report-btn.ulgb-report-post-btn::-moz-focus-inner,
#userprofile-post-feed-container button.homepage-post-item-report-btn.ulgb-report-post-btn::-moz-focus-inner,
#userprofile-post-feed-container .homepage-post-item-shared-inner button.homepage-post-item-report-btn.ulgb-report-post-btn::-moz-focus-inner,
#viewuserprofile-post-feed-container button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn::-moz-focus-inner,
#viewuserprofile-post-feed-container .viewuserprofile-post-item-shared-inner button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn::-moz-focus-inner,
.groups-detail-post-card-actions button.groups-detail-post-card-report-btn.ulgb-report-post-btn::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* groups.php: light card — readable label */
.groups-detail-post-card .groups-detail-post-card-actions button.groups-detail-post-card-report-btn.ulgb-report-post-btn,
.groups-detail-post-card .groups-detail-post-card-actions button.groups-detail-post-card-report-btn.ulgb-report-post-btn:hover {
    color: #333;
}

.groups-detail-post-card-actions .groups-detail-post-card-report-btn {
    margin-left: 12px;
    vertical-align: middle;
}

/* -------------------------------------------------------------------------- */
/* 2. Post + comments modal — Report in overlay & in comment rows             */
/* -------------------------------------------------------------------------- */

#post-comment-modal-overlay {
    color-scheme: dark;
}

#post-comment-modal-overlay .post-comment-modal-post-wrap button.homepage-post-item-report-btn.ulgb-report-post-btn,
#post-comment-modal-overlay .post-comment-modal-post-wrap button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn,
#post-comment-modal-overlay .post-comment-modal-post-wrap button.groups-detail-post-card-report-btn.ulgb-report-post-btn {
    background-color: transparent;
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
    cursor: pointer;
    font-family: inherit;
}

#post-comment-modal-overlay .post-comment-modal-post-wrap button.homepage-post-item-report-btn.ulgb-report-post-btn:hover,
#post-comment-modal-overlay .post-comment-modal-post-wrap button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn:hover,
#post-comment-modal-overlay .post-comment-modal-post-wrap button.groups-detail-post-card-report-btn.ulgb-report-post-btn:hover {
    color: var(--text-primary);
    background-color: transparent;
    background: transparent;
}

#post-comment-modal-overlay .post-comment-modal-post-wrap button.homepage-post-item-report-btn.ulgb-report-post-btn::-moz-focus-inner,
#post-comment-modal-overlay .post-comment-modal-post-wrap button.viewuserprofile-post-item-report-btn.ulgb-report-post-btn::-moz-focus-inner,
#post-comment-modal-overlay .post-comment-modal-post-wrap button.groups-detail-post-card-report-btn.ulgb-report-post-btn::-moz-focus-inner {
    border: 0;
    padding: 0;
}

#post-comment-modal-overlay .post-comment-modal-comment-actions button.post-comment-modal-comment-report-btn,
#post-comment-modal-overlay .post-comment-modal-comment-moderation button.post-comment-modal-comment-report-btn {
    background-color: transparent !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    color: var(--text-primary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-family: inherit !important;
    cursor: pointer !important;
}

#post-comment-modal-overlay .post-comment-modal-comment-actions button.post-comment-modal-comment-report-btn:hover,
#post-comment-modal-overlay .post-comment-modal-comment-actions button.post-comment-modal-comment-report-btn:active,
#post-comment-modal-overlay .post-comment-modal-comment-moderation button.post-comment-modal-comment-report-btn:hover,
#post-comment-modal-overlay .post-comment-modal-comment-moderation button.post-comment-modal-comment-report-btn:active {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

#post-comment-modal-overlay .post-comment-modal-comment-actions button.post-comment-modal-comment-report-btn:focus-visible,
#post-comment-modal-overlay .post-comment-modal-comment-moderation button.post-comment-modal-comment-report-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background-color: transparent !important;
    background: transparent !important;
}

#post-comment-modal-overlay .post-comment-modal-comment-actions button.post-comment-modal-comment-report-btn::-moz-focus-inner,
#post-comment-modal-overlay .post-comment-modal-comment-moderation button.post-comment-modal-comment-report-btn::-moz-focus-inner {
    border: 0;
    padding: 0;
}

#post-comment-modal-overlay button.ulgb-comment-report-btn .ulgb-comment-report-btn-label {
    color: var(--text-primary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    font-family: inherit !important;
}

#post-comment-modal-overlay .post-comment-modal-comment-actions button.post-comment-modal-comment-delete-btn,
#post-comment-modal-overlay .post-comment-modal-comment-moderation button.post-comment-modal-comment-delete-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    color: rgba(248, 113, 113, 0.95) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-family: inherit !important;
    cursor: pointer !important;
}

#post-comment-modal-overlay .post-comment-modal-comment-actions button.post-comment-modal-comment-delete-btn:hover,
#post-comment-modal-overlay .post-comment-modal-comment-actions button.post-comment-modal-comment-delete-btn:active,
#post-comment-modal-overlay .post-comment-modal-comment-moderation button.post-comment-modal-comment-delete-btn:hover,
#post-comment-modal-overlay .post-comment-modal-comment-moderation button.post-comment-modal-comment-delete-btn:active {
    color: #fecaca !important;
    background: transparent !important;
    background-color: transparent !important;
}

#post-comment-modal-overlay .post-comment-modal-comment-actions button.post-comment-modal-comment-delete-btn:focus-visible,
#post-comment-modal-overlay .post-comment-modal-comment-moderation button.post-comment-modal-comment-delete-btn:focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px !important;
}

.post-comment-modal-comment-actions button.post-comment-modal-comment-report-btn,
.post-comment-modal-comment-moderation button.post-comment-modal-comment-report-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text-primary);
}

.post-comment-modal-comment-actions button.post-comment-modal-comment-report-btn:hover,
.post-comment-modal-comment-actions button.post-comment-modal-comment-report-btn:active,
.post-comment-modal-comment-moderation button.post-comment-modal-comment-report-btn:hover,
.post-comment-modal-comment-moderation button.post-comment-modal-comment-report-btn:active {
    color: var(--text-primary);
    background-color: transparent;
    background: transparent;
}

/* -------------------------------------------------------------------------- */
/* 3. View profile — header Report + “Report user” modal (body fields)        */
/* -------------------------------------------------------------------------- */

.viewuserprofile-report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.2s ease;
}

.viewuserprofile-report-btn:hover:not(:disabled) {
    background: transparent;
    color: #ffffff;
}

.viewuserprofile-report-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.viewuserprofile-report-modal-overlay.is-open {
    display: flex;
}

.viewuserprofile-report-modal-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.viewuserprofile-report-modal-body label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.viewuserprofile-report-modal-body select,
.viewuserprofile-report-modal-body textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.viewuserprofile-report-modal-body textarea {
    min-height: 120px;
    resize: vertical;
}

.viewuserprofile-report-modal-error {
    color: #ff9a9a;
    font-size: 13px;
    margin: 0;
    display: none;
}

.viewuserprofile-report-modal-error.is-visible {
    display: block;
}

.viewuserprofile-report-modal-submit {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: var(--gradient-button, linear-gradient(135deg, #4a6fa5, #7c4a9e));
}

.viewuserprofile-report-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.viewuserprofile-report-modal-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* 4. Shared modal injected by ulgb_report_modal.js (posts / comments)         */
/* -------------------------------------------------------------------------- */

.ulgb-report-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.ulgb-report-modal-overlay.is-open {
    display: flex;
}

.ulgb-report-modal {
    background: #1a2332;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ulgb-report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ulgb-report-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.ulgb-report-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.ulgb-report-modal-close:hover {
    color: #fff;
}

.ulgb-report-modal-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ulgb-report-modal-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.45;
}

.ulgb-report-modal-standards-link {
    color: #8ab4ff;
}

.ulgb-report-modal-body label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.ulgb-report-modal-body select,
.ulgb-report-modal-body textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.ulgb-report-modal-body textarea {
    min-height: 100px;
    resize: vertical;
}

.ulgb-report-modal-error {
    color: #ff9a9a;
    font-size: 13px;
    margin: 0;
    display: none;
}

.ulgb-report-modal-error.is-visible {
    display: block;
}

.ulgb-report-modal-submit {
    padding: 12px;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #4a6fa5, #7c4a9e);
}

.ulgb-report-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
