/* LUMA — APARÊNCIA DA COMUNIDADE */

html[data-theme] .feed-page {

    --community-bg: var(--luma-bg);
    --community-surface: var(--luma-card);
    --community-surface-light: var(--luma-input);

    --community-text: var(--luma-text);
    --community-muted: var(--luma-text-secondary);
    --community-border: var(--luma-border);

    --luma-blue: var(--luma-accent);

    background: var(--luma-bg);
    color: var(--luma-text);
}

/* ESTRUTURA PRINCIPAL */

.feed-page .community-main {
    background: var(--luma-bg);
}

.feed-page .community-sidebar,
.feed-page .community-right {
    background: var(--luma-card);
    border-color: var(--luma-border);
}

.feed-page .community-header {
    border-color: var(--luma-border);
}

.feed-page .community-logo {
    color: var(--luma-accent);
}

.feed-page .community-slogan {
    color: var(--luma-text-secondary);
}

/* MENU */

.feed-page .community-menu-item {
    color: var(--luma-text-secondary);
}

.feed-page .community-menu-item:hover,
.feed-page .community-menu-item.active {
    background: var(--luma-tag-bg);
    color: var(--luma-tag-text);
}

.feed-page .header-icon-button {
    color: var(--luma-accent);
}

.feed-page .header-icon-button:hover {
    background: var(--luma-hover);
}

/* CAMPOS DE TEXTO */

.feed-page .community-search,
.feed-page .create-post-input {
    background: var(--luma-input);
    border-color: var(--luma-border);
    color: var(--luma-text-secondary);
}

.feed-page .create-post-input:hover {
    border-color: var(--luma-accent);
}

/* CARDS */

.feed-page .create-post-card,
html[data-theme] .feed-page .community-post {
    background: var(--luma-card);
    border-color: var(--luma-border);
    box-shadow: var(--luma-shadow);
}

.feed-page .profile-placeholder {
    background: var(--luma-pink);
    color: #092633;
}

.feed-page .feed-welcome h1 {
    color: var(--luma-text);
}

.feed-page .feed-welcome h1 span {
    color: var(--luma-accent);
}

/* FILTROS */

.feed-page .feed-filters {
    border-color: var(--luma-border);
}

.feed-page .feed-filter {
    color: var(--luma-text-secondary);
}

.feed-page .feed-filter.active,
.feed-page .feed-filter:hover {
    color: var(--luma-accent);
}

.feed-page .feed-filter.active::after {
    background: var(--luma-accent);
}

/* PUBLICAÇÕES */

html[data-theme] .feed-page .community-post-author strong,
html[data-theme] .feed-page .community-post-text {
    color: var(--luma-text);
}

html[data-theme] .feed-page .community-post-author span {
    color: var(--luma-text-secondary);
}

html[data-theme] .feed-page .post-category-tag {
    background: var(--luma-tag-bg);
    color: var(--luma-tag-text);
}

html[data-theme] .feed-page .community-post-actions {
    border-color: var(--luma-border);
}

html[data-theme] .feed-page .community-post-actions button,
html[data-theme] .feed-page .post-menu-button {
    color: var(--luma-text-secondary);
}

html[data-theme] .feed-page .community-post-actions button:hover,
html[data-theme] .feed-page .post-menu-button:hover {
    color: var(--luma-accent);
}

html[data-theme] .feed-page .post-like-button.liked,
html[data-theme] .feed-page .post-save-button.saved {
    color: var(--luma-accent);
}

html[data-theme] .feed-page .post-like-button.liked svg,
html[data-theme] .feed-page .post-save-button.saved svg {
    fill: var(--luma-accent);
    stroke: var(--luma-accent);
}
/* MODAIS DE PUBLICAÇÃO */

html[data-theme] .feed-page .post-modal {
    background: var(--luma-card);
    border-color: var(--luma-border);
    color: var(--luma-text);
}

.feed-page .post-modal-label {
    color: var(--luma-accent);
}

.feed-page .post-modal-header h2,
.feed-page .post-modal-user strong {
    color: var(--luma-text);
}

.feed-page .post-modal-user span,
.feed-page .post-modal-category > p,
.feed-page #contador-publicacao {
    color: var(--luma-text-secondary);
}

.feed-page .post-modal-close {
    background: var(--luma-input);
    color: var(--luma-text);
}

.feed-page .post-modal-close:hover {
    background: var(--luma-hover);
    color: var(--luma-accent);
}

/* CAMPOS DE TEXTO */

.feed-page .post-modal-textarea,
.feed-page .post-edit-area textarea,
.feed-page .post-edit-area select,
.feed-page .comment-input,
.feed-page .comment-reply-form textarea {
    background: var(--luma-input);
    border-color: var(--luma-border);
    color: var(--luma-text);
}

.feed-page textarea::placeholder,
.feed-page .comment-input::placeholder {
    color: var(--luma-text-secondary);
}

.feed-page .post-modal-textarea:focus,
.feed-page .comment-input:focus,
.feed-page .comment-reply-form textarea:focus {
    border-color: var(--luma-accent);
}

/* BOTÕES PRINCIPAIS */

.feed-page .publish-button,
.feed-page .post-edit-save,
.feed-page .comment-submit-button,
.feed-page .comment-reply-form button {
    background: var(--luma-accent);
    color: var(--luma-accent-text);
}

.feed-page .publish-button:not(:disabled):hover,
.feed-page .comment-submit-button:not(:disabled):hover {
    background: var(--luma-accent-hover);
}

.feed-page .post-edit-cancel,
.feed-page .comment-reply-form button:last-child {
    background: var(--luma-input);
    color: var(--luma-text);
}

/* CATEGORIAS */

.feed-page .modal-category.food,
.feed-page .modal-category.families,
.feed-page .modal-category.science,
.feed-page .modal-category.stories,
.feed-page .category-button.food,
.feed-page .category-button.families,
.feed-page .category-button.science,
.feed-page .category-button.stories {
    background: var(--luma-tag-bg);
    color: var(--luma-tag-text);
}

.feed-page .modal-category.selected {
    background: var(--luma-accent);
    color: var(--luma-accent-text);
    border-color: var(--luma-accent);
}

/* COMENTÁRIOS E RESPOSTAS */

.feed-page .comment-item,
.feed-page .comment-reply-item {
    background: var(--luma-input);
    border-color: var(--luma-border);
}

.feed-page .comment-author-name,
.feed-page .comment-text {
    color: var(--luma-text);
}

.feed-page .comment-author-avatar,
.feed-page .comment-current-avatar {
    background: var(--luma-pink);
    color: #092633;
}

.feed-page .comment-reply-button {
    color: var(--luma-accent);
}

.feed-page .comment-reply-button:hover {
    color: var(--luma-accent-hover);
}

.feed-page .comment-delete-button {
    color: var(--luma-text-secondary);
}

/* MENU DE EDIÇÃO */

.feed-page .post-options-menu {
    background: var(--luma-card);
    border-color: var(--luma-border);
}

.feed-page .post-options-menu button {
    color: var(--luma-text);
}

.feed-page .post-options-menu button:hover {
    background: var(--luma-hover);
}

html[data-theme="light"] .feed-page .post-options-menu .delete-option {
    color: #B42318;
}

html[data-theme="dark"] .feed-page .post-options-menu .delete-option {
    color: #F5A9A9;
}
/* CENTRAL DE NOTIFICAÇÕES */

.feed-page .notifications-panel {
    background: var(--luma-card);
    border-color: var(--luma-border);
    color: var(--luma-text);
}

.feed-page .notifications-header h2 {
    color: var(--luma-text);
}

.feed-page .notifications-header p,
.feed-page .notifications-empty {
    color: var(--luma-text-secondary);
}

.feed-page #marcar-notificacoes-lidas {
    background: var(--luma-tag-bg);
    color: var(--luma-tag-text);
    border-color: var(--luma-border);
}

.feed-page .notification-item {
    background: var(--luma-card);
    border-color: var(--luma-border);
    color: var(--luma-text);
}

.feed-page .notification-item.unread {
    background: var(--luma-tag-bg);
}

.feed-page .notification-item:hover {
    background: var(--luma-hover);
}

.feed-page .notification-badge {
    background: #B82D63;
    color: #FFFFFF;
}

/* NOTIFICAÇÕES PUSH */

.feed-page .push-settings {
    background: var(--luma-card);
    border-color: var(--luma-border);
}

.feed-page .push-settings-info strong {
    color: var(--luma-text);
}

.feed-page .push-settings-info p {
    color: var(--luma-text-secondary);
}

.feed-page .push-settings-info > svg {
    color: var(--luma-accent);
}

.feed-page #ativar-push {
    background: var(--luma-accent);
    color: var(--luma-accent-text);
}

/* ESPAÇOS DA COMUNIDADE */

.feed-page .sidebar-title {
    color: var(--luma-text-secondary);
}

.feed-page .space-link {
    color: var(--luma-text);
}

.feed-page .space-link:hover {
    background: var(--luma-hover);
}

.feed-page .space-icon {
    background: var(--luma-tag-bg);
    color: var(--luma-tag-text);
}

.feed-page .community-space-card {
    background: var(--luma-card);
    border-color: var(--luma-border);
}

.feed-page .community-space-card strong {
    color: var(--luma-text);
}

.feed-page .community-space-card small {
    color: var(--luma-text-secondary);
}

.feed-page .community-space-card > svg {
    color: var(--luma-accent);
}

/* DIRETRIZES */

.feed-page .community-guidelines {
    background: var(--luma-input);
    border-color: var(--luma-border);
}

.feed-page .community-guidelines p {
    color: var(--luma-text-secondary);
}

.feed-page .community-guidelines button {
    color: var(--luma-accent);
}

/* NAVEGAÇÃO MOBILE */

@media (max-width: 768px) {

    .feed-page .community-sidebar,
    .feed-page .community-menu,
    .feed-page .mobile-bottom-nav {
        background: var(--luma-card);
        border-color: var(--luma-border);
    }

    .feed-page .community-menu-item {
        color: var(--luma-text-secondary);
    }

    .feed-page .community-menu-item.active {
        color: var(--luma-accent);
    }
}
/* =========================================
   ESCOLHA DE APARÊNCIA LUMA
   ========================================= */

.theme-modal {
    width: min(720px, calc(100% - 28px));
    max-height: 90dvh;
    padding: 0;
    border: 1px solid #F4D5DF;
    border-radius: 28px;
    background: #FFF8FA;
    color: #092633;
    box-shadow: 0 25px 90px rgba(0,0,0,.25);
    overflow-y: auto;
}

.theme-modal::backdrop {
    background: rgba(7,30,41,.65);
    backdrop-filter: blur(5px);
}

.theme-dialog {
    padding: 36px;
    text-align: center;
    background:
        radial-gradient(
            circle at 0% 0%,
            #F8B8C8 0%,
            transparent 30%
        ),
        radial-gradient(
            circle at 100% 100%,
            #FDE4EC 0%,
            transparent 30%
        ),
        #FFF8FA;
}

.theme-brand {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 24px;
}

.theme-brand span,
.mini-logo span {
    color: #D83E7C;
}

.theme-dialog h2 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0 0 12px;
    color: #092633;
}

.theme-description {
    max-width: 440px;
    margin: 0 auto 28px;
    font-size: 14px;
    line-height: 1.7;
    color: #526773;
}

/* CARTÕES DE SELEÇÃO */

.theme-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    margin: 0;
    border: none;
    min-width: 0;
}

.theme-options legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.theme-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 18px 22px;
    border: 2px solid transparent;
    border-radius: 22px;
    cursor: pointer;
    transition: transform .2s, border-color .2s;
}

.theme-option:hover {
    transform: translateY(-3px);
}

.theme-option:has(input:checked) {
    border-color: #D83E7C;
    box-shadow: 0 0 0 3px rgba(216,62,124,.15);
}

.theme-option:has(input:focus-visible) {
    outline: 3px solid #D83E7C;
    outline-offset: 4px;
}

.theme-option input {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 19px;
    height: 19px;
    accent-color: #D83E7C;
    cursor: pointer;
}

.light-preview {
    background: #F8F7F2;
    color: #092633;
    color-scheme: light;

    --preview-bg: #F0ECE8;
    --preview-card: #FFFFFF;
    --preview-line: #D5D0CE;
    --preview-image: #F8B8C8;
}

.dark-preview {
    background: #071E29;
    color: #F5F5EF;
    color-scheme: dark;

    --preview-bg: #092633;
    --preview-card: #103340;
    --preview-line: #64818D;
    --preview-image: #80566B;
}

/* MINIATURAS DO FEED */

.theme-mini-preview {
    width: 100%;
    max-width: 220px;
    padding: 14px;
    margin: 12px 0 20px;
    border-radius: 16px;
    background: var(--preview-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.mini-logo {
    text-align: left;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.mini-post {
    padding: 12px;
    border-radius: 12px;
    background: var(--preview-card);
}

.mini-avatar {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #F8B8C8;
    margin-bottom: 12px;
}

.mini-line {
    width: 90%;
    height: 6px;
    border-radius: 10px;
    background: var(--preview-line);
    margin-bottom: 7px;
}

.mini-line.short {
    width: 60%;
}

.mini-image {
    height: 65px;
    border-radius: 9px;
    background: var(--preview-image);
    margin: 13px 0;
}

.mini-actions {
    display: flex;
    gap: 12px;
    color: inherit;
}

.mini-actions svg {
    width: 14px;
    height: 14px;
}

.mini-actions svg:first-child {
    color: #D83E7C;
}

/* TÍTULOS DOS TEMAS */

.theme-option-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 19px;
}

.theme-option-title svg {
    width: 23px;
    height: 23px;
    color: #D83E7C;
}

.dark-preview .theme-option-title svg {
    color: #F8B8C8;
}

.theme-option small {
    font-size: 12px;
    margin-top: 8px;
    opacity: .9;
}

/* BOTÕES */

#confirm-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin: 28px auto 12px;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: #B82D63;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

#confirm-theme:hover:not(:disabled) {
    background: #9D2856;
}

#confirm-theme:disabled {
    opacity: .45;
    cursor: not-allowed;
}

#skip-theme {
    border: none;
    background: transparent;
    color: #526773;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
}

#theme-message {
    color: #B42318;
    font-size: 13px;
    margin: 8px 0 0;
}

/* RESPONSIVIDADE */

@media (max-width: 600px) {

    .theme-dialog {
        padding: 26px 16px;
    }

    .theme-brand {
        font-size: 36px;
    }

    .theme-dialog h2 {
        font-size: 24px;
    }

    .theme-options {
        gap: 10px;
    }

    .theme-option {
        padding: 25px 10px 16px;
        border-radius: 17px;
    }

    .theme-mini-preview {
        padding: 9px;
    }

    .mini-post {
        padding: 9px;
    }

    .mini-image {
        height: 48px;
    }

    .theme-option-title {
        font-size: 14px;
        gap: 5px;
    }

    .theme-option-title svg {
        width: 18px;
        height: 18px;
    }

    .theme-option small {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-option {
        transition: none;
    }

    .theme-option:hover {
        transform: none;
    }
}
/* CORREÇÃO DO TEXTO DAS NOTIFICAÇÕES */

html[data-theme] .feed-page #central-notificacoes {
    background: var(--luma-card);
    color: var(--luma-text);
}

html[data-theme] .feed-page .notification-content p,
html[data-theme] .feed-page .notification-content strong,
html[data-theme] .feed-page .notifications-header h2 {
    color: var(--luma-text) !important;
}

html[data-theme] .feed-page .notification-content small,
html[data-theme] .feed-page .notifications-header p,
html[data-theme] .feed-page .notifications-empty {
    color: var(--luma-text-secondary) !important;
}

html[data-theme] .feed-page .notification-item {
    background: var(--luma-card);
    border-color: var(--luma-border);
}

html[data-theme] .feed-page .notification-item.unread {
    background: var(--luma-tag-bg);
}

html[data-theme] .feed-page .notification-unread-dot {
    background: var(--luma-accent);
}
/* =========================================
   LUMA — MODAL DE DENÚNCIAS
   ========================================= */

.report-modal {
    width: min(480px, calc(100% - 28px));
    max-height: 90dvh;
    margin: auto;
    padding: 28px;
    background: var(--luma-card);
    color: var(--luma-text);
    border: 1px solid var(--luma-border);
    border-radius: 24px;
    box-shadow: 0 20px 70px rgba(0,0,0,.25);
    overflow-y: auto;
    box-sizing: border-box;
}

.report-modal::backdrop {
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(5px);
}

#report-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-header svg {
    color: var(--luma-accent);
    width: 25px;
    height: 25px;
}

.report-header h2 {
    color: var(--luma-text);
    font-size: 23px;
    font-weight: 900;
    margin: 0;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.report-reasons legend {
    color: var(--luma-text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.report-reasons label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--luma-border);
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
}

.report-reasons label:hover,
.report-reasons label:has(input:checked) {
    background: var(--luma-tag-bg);
    border-color: var(--luma-accent);
}

.report-reasons input {
    accent-color: var(--luma-accent);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

#report-description {
    width: 100%;
    box-sizing: border-box;
    background: var(--luma-input);
    color: var(--luma-text);
    border: 1px solid var(--luma-border);
    border-radius: 12px;
    padding: 12px;
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

#report-description::placeholder {
    color: var(--luma-text-secondary);
}

#report-description:focus {
    outline: 2px solid var(--luma-accent);
}

.report-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--luma-input);
    color: var(--luma-text-secondary);
}

.report-privacy svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.report-privacy p {
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

#submit-report,
#cancel-report {
    border: none;
    border-radius: 12px;
    padding: 13px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

#submit-report {
    background: var(--luma-accent);
    color: var(--luma-accent-text);
}

#cancel-report {
    background: transparent;
    color: var(--luma-text-secondary);
}

#submit-report:disabled,
#cancel-report:disabled {
    opacity: .5;
    cursor: wait;
}

#report-message {
    color: var(--luma-tag-text);
    font-size: 13px;
    text-align: center;
    margin: 0;
}

#report-message:empty {
    display: none;
}

html[data-theme="light"] #submit-report {
    background: #B82D63;
    color: white;
}

html[data-theme="light"] .report-header svg {
    color: #B82D63;
}

html[data-theme] .feed-page .post-options-menu .report-option {
    color: var(--luma-tag-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-option svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {

    .report-modal {
        padding: 20px;
        border-radius: 20px;
    }

    .report-header h2 {
        font-size: 20px;
    }

    #report-description {
        font-size: 16px;
    }
}
/* =========================================
   LUMA — DENÚNCIAS DE COMENTÁRIOS
   ========================================= */

.feed-page .comment-report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--luma-text-secondary);
    padding: 7px 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.feed-page .comment-report-button svg {
    width: 13px;
    height: 13px;
}

.feed-page .comment-report-button:hover {
    background: var(--luma-tag-bg);
    color: var(--luma-tag-text);
}

.feed-page .comment-report-button:focus-visible {
    outline: 2px solid var(--luma-accent);
    outline-offset: 2px;
}

html[data-theme="light"]
.feed-page .comment-report-button:hover {
    color: #B82D63;
}
