/* ==========================================================================
   Rock Noticias X — visual do tema
   Carregado depois do bootstrap.css. Todos os estilos do tema vivem aqui.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
    --bg: #ffffff;
    --bg-hover: rgba(15, 20, 25, 0.03);
    --bg-box: #f7f9f9;
    --bg-header: rgba(255, 255, 255, 0.85);
    --text: #0f1419;
    --muted: #536471;
    --border: #eff3f4;
    --border-strong: #cfd9de;
    --accent: #fe3560;
    --accent-hover: #e50132;
    --accent-soft: rgba(254, 53, 96, 0.1);
    --pill-bg: #0f1419;
    --pill-fg: #ffffff;
    --pill-bg-hover: #272c30;
    --shadow: 0 0 15px rgba(101, 119, 134, 0.2), 0 0 3px 1px rgba(101, 119, 134, 0.15);
    --input-bg: #eff3f4;
    --nav-w: 275px;
    --timeline-w: 600px;
    --right-w: 350px;
    --bar-h: 53px;
}

[data-theme="dark"] {
    --bg: #000000;
    --bg-hover: rgba(231, 233, 234, 0.03);
    --bg-box: #16181c;
    --bg-header: rgba(0, 0, 0, 0.65);
    --text: #e7e9ea;
    --muted: #71767b;
    --border: #2f3336;
    --border-strong: #536471;
    --pill-bg: #eff3f4;
    --pill-fg: #0f1419;
    --pill-bg-hover: #d7dbdc;
    --shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 0 3px 1px rgba(255, 255, 255, 0.15);
    --input-bg: #202327;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body.x-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 15px;
    line-height: 1.3333;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
}

/* Sprite SVG do core (usado por plugins via svg_icon): nao pode ocupar espaco */
#svg-sprite {
    display: none;
}

.x-ad-inline:empty {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    color: inherit;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Shell de 3 colunas
   -------------------------------------------------------------------------- */
.x-shell {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: calc(var(--nav-w) + var(--timeline-w) + var(--right-w) + 40px);
    margin: 0 auto;
    min-height: 100vh;
}

.x-nav {
    flex: 0 0 var(--nav-w);
    width: var(--nav-w);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0 8px 0 12px;
}

.x-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
}

.x-timeline {
    flex: 0 1 var(--timeline-w);
    width: var(--timeline-w);
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.x-right {
    flex: 0 0 var(--right-w);
    width: var(--right-w);
    margin-left: 30px;
}

.x-right-inner {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 4px 0 16px;
    scrollbar-width: none;
}

.x-right-inner::-webkit-scrollbar {
    display: none;
}

.x-timeline-footer {
    display: none;
}

/* --------------------------------------------------------------------------
   Nav esquerda
   -------------------------------------------------------------------------- */
.x-nav-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 4px 0 12px;
}

.x-logo {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 9999px;
    margin-bottom: 4px;
    align-self: flex-start;
}

.x-logo:hover {
    background-color: var(--bg-hover);
}

.x-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: none;
}

.x-logo-full {
    height: 34px;
    width: auto;
}

/* O logo do site e branco sobre transparente; no modo claro ele e invertido */
html:not([data-theme="dark"]) .x-logo-full,
html:not([data-theme="dark"]) .x-topbar-logo img,
html:not([data-theme="dark"]) .x-error-logo {
    filter: invert(1);
}

.x-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.x-menu > li {
    margin: 2px 0;
}

.x-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    width: auto;
    padding: 12px;
    border: 0;
    border-radius: 9999px;
    background: none;
    color: var(--text);
    font-size: 20px;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s;
}

.x-menu-link:hover,
.x-menu-link:focus {
    background-color: var(--bg-hover);
    color: var(--text);
    text-decoration: none;
    outline: none;
}

.x-menu-link.active {
    font-weight: 700;
}

.x-menu-link i {
    font-size: 24px;
    line-height: 1;
    width: 26px;
    text-align: center;
    flex: 0 0 auto;
}

.x-menu-caret {
    font-size: 12px !important;
    width: auto !important;
    margin-left: -4px;
    color: var(--muted);
    transition: transform .2s;
}

.x-menu-link[aria-expanded="true"] .x-menu-caret {
    transform: rotate(180deg);
}

.x-partners-collapse {
    max-height: 320px;
    overflow-y: auto;
    margin: 4px 0 8px;
    padding-left: 12px;
}

.x-nav-cta {
    margin: 16px 0 0;
    padding: 14px 32px;
    font-size: 17px;
    justify-content: center;
    width: 90%;
}

.x-nav-user {
    margin-top: auto;
    padding-top: 12px;
}

.x-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 9999px;
    background: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.x-user-card:hover,
.x-user-card:focus {
    background-color: var(--bg-hover);
    outline: none;
}

.x-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 20px;
}

.x-user-text strong,
.x-user-text small,
.x-partner-text strong,
.x-partner-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-user-text small,
.x-partner-text small {
    color: var(--muted);
    font-size: 15px;
}

.x-user-more {
    margin-left: auto;
    color: var(--text);
}

.x-nav-signin {
    width: 90%;
    justify-content: center;
}

.x-nav-register {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Pills e botoes
   -------------------------------------------------------------------------- */
.x-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}

.x-pill:hover,
.x-pill:focus {
    text-decoration: none;
    outline: none;
}

.x-pill-primary {
    background-color: var(--accent);
    color: #fff;
}

.x-pill-primary:hover,
.x-pill-primary:focus {
    background-color: var(--accent-hover);
    color: #fff;
}

.x-pill-dark {
    background-color: var(--pill-bg);
    color: var(--pill-fg);
}

.x-pill-dark:hover,
.x-pill-dark:focus {
    background-color: var(--pill-bg-hover);
    color: var(--pill-fg);
}

.x-pill-outline {
    background: none;
    border-color: var(--border-strong);
    color: var(--text);
}

.x-pill-outline:hover,
.x-pill-outline:focus {
    background-color: var(--bg-hover);
    color: var(--text);
}

.x-pill-small {
    padding: 4px 14px;
    font-size: 14px;
    line-height: 18px;
    background-color: var(--pill-bg);
    color: var(--pill-fg);
}

.x-pill-block {
    width: 100%;
}

/* Botoes do Bootstrap usados nos formularios da conta */
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    border-radius: 9999px;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline-secondary,
.btn-secondary {
    border-radius: 9999px;
}

/* --------------------------------------------------------------------------
   Dropdowns (Bootstrap) no visual do X
   -------------------------------------------------------------------------- */
.x-dropdown {
    background-color: var(--bg);
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 8px 0;
    min-width: 220px;
    overflow: hidden;
}

.x-dropdown .dropdown-item {
    padding: 12px 16px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.x-dropdown .dropdown-item:hover,
.x-dropdown .dropdown-item:focus {
    background-color: var(--bg-hover);
    color: var(--text);
    outline: none;
}

.x-dropdown .dropdown-divider {
    border-color: var(--border);
}

/* --------------------------------------------------------------------------
   Cabecalho sticky da coluna
   -------------------------------------------------------------------------- */
.x-column-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--bar-h);
    padding: 0 16px;
    background-color: var(--bg-header);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.x-column-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.x-column-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-column-subtitle {
    color: var(--muted);
    font-size: 13px;
}

.x-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: -8px;
    border-radius: 50%;
    color: var(--text);
    font-size: 20px;
    flex: 0 0 auto;
}

.x-back:hover {
    background-color: var(--bg-hover);
    color: var(--text);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Avatares
   -------------------------------------------------------------------------- */
.x-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-box);
    flex: 0 0 auto;
}

.x-avatar-sm {
    width: 32px;
    height: 32px;
}

.x-avatar-md {
    width: 48px;
    height: 48px;
}

.x-avatar-lg {
    width: 96px;
    height: 96px;
}

/* --------------------------------------------------------------------------
   Card da timeline
   -------------------------------------------------------------------------- */
.x-feed {
    display: block;
}

.x-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background-color .15s;
}

.x-card:hover {
    background-color: var(--bg-hover);
}

/* Overlay que deixa o card inteiro clicavel. Os links e botoes de dentro
   ficam acima dele (z-index 1). */
.x-card-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
}

.x-card a,
.x-card button,
.x-card .dropdown {
    position: relative;
    z-index: 1;
}

.x-card-avatar {
    flex: 0 0 auto;
    align-self: flex-start;
}

.x-card-body {
    flex: 1 1 auto;
    min-width: 0;
}

.x-card-head {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    font-size: 15px;
    line-height: 20px;
    color: var(--muted);
}

.x-card-author {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.x-card-author:hover {
    color: var(--text);
    text-decoration: none;
}

.x-card-author:hover strong {
    text-decoration: underline;
}

.x-card-author strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-card-handle {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.x-card-time {
    white-space: nowrap;
    flex: 0 0 auto;
}

.x-card-title {
    margin: 2px 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.x-card-title a {
    color: var(--text);
    text-decoration: none;
}

.x-card-title a:hover {
    color: var(--text);
    text-decoration: underline;
}

.x-card-excerpt {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 20px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.x-card-media {
    display: block;
    margin: 0 0 4px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--bg-box);
}

.x-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.x-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0 0 -8px;
    max-width: 425px;
    justify-content: space-between;
}

.x-card-actions > * {
    flex: 0 0 auto;
}

.x-card-ad {
    display: block;
    padding: 12px 16px;
}

.x-card-ad:hover {
    background: none;
}

/* Botoes de acao (compartilhar, salvar, hits, editar) */
.x-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s;
}

.x-action i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 17px;
    transition: background-color .15s;
}

.x-action:hover,
.x-action:focus {
    color: var(--accent);
    text-decoration: none;
    outline: none;
}

.x-action:hover i,
.x-action:focus i {
    background-color: var(--accent-soft);
}

.x-action.is-saved {
    color: var(--accent);
}

.x-action-danger:hover,
.x-action-danger:focus {
    color: #f4212e;
}

.x-action-danger:hover i {
    background-color: rgba(244, 33, 46, 0.1);
}

.x-action-static {
    cursor: default;
}

.x-action-static:hover {
    color: var(--muted);
}

.x-action-static:hover i {
    background: none;
}

.x-action[disabled] {
    opacity: .5;
    cursor: default;
}

/* No card, o texto dos botoes some; fica so o icone (o post mostra o texto) */
.x-card .x-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.x-share .dropdown-menu {
    z-index: 30;
}

/* --------------------------------------------------------------------------
   Loader, paginacao, vazio
   -------------------------------------------------------------------------- */
.x-loader {
    padding: 24px;
    text-align: center;
    color: var(--accent);
}

.x-pagination {
    padding: 16px;
    color: var(--muted);
    font-size: 13px;
}

.x-pagination-info {
    margin: 0 0 8px;
}

.x-pagination .pagination {
    margin: 0;
    flex-wrap: wrap;
}

.x-pagination .page-link {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text);
}

.x-pagination .page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.x-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
}

.x-empty-icon {
    display: block;
    font-size: 48px;
    margin-bottom: 12px;
}

.x-empty h4 {
    color: var(--text);
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   Perfil do portal (arquivo por feed)
   -------------------------------------------------------------------------- */
.x-profile {
    border-bottom: 1px solid var(--border);
}

.x-profile-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--accent) 0%, #1a1a1a 100%);
}

.x-profile-body {
    padding: 0 16px 16px;
}

.x-profile-avatar {
    margin-top: -48px;
    border: 4px solid var(--bg);
    background-color: var(--bg);
}

.x-profile-name {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
}

.x-profile-handle {
    color: var(--muted);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Post aberto
   -------------------------------------------------------------------------- */
.x-post {
    padding: 12px 16px 0;
}

.x-post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.x-post-author {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 20px;
    color: var(--text);
    text-decoration: none;
}

.x-post-author:hover {
    color: var(--text);
    text-decoration: none;
}

.x-post-author:hover strong {
    text-decoration: underline;
}

.x-post-author small {
    color: var(--muted);
    font-size: 15px;
}

.x-post-title {
    margin: 0 0 12px;
    font-size: 23px;
    font-weight: 800;
    line-height: 28px;
    overflow-wrap: anywhere;
}

.x-post-media {
    display: block;
    margin: 0 0 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--bg-box);
}

.x-post-media img {
    display: block;
    width: 100%;
    height: auto;
}

.x-post-content {
    font-size: 17px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.x-post-content p {
    margin: 0 0 16px;
}

.x-post-content h2,
.x-post-content h3 {
    margin: 24px 0 12px;
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
}

.x-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.x-post-content iframe {
    max-width: 100%;
    border-radius: 16px;
}

.x-post-content figure {
    margin: 0 0 16px;
}

.x-post-content blockquote {
    margin: 0 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--accent);
    color: var(--muted);
}

.x-post-continue {
    margin: 4px 0 16px;
}

.x-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 15px;
}

.x-post-meta .x-action {
    margin-left: 8px;
}

.x-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0;
    margin: 0 -16px;
    border-bottom: 1px solid var(--border);
}

.x-post-actions .x-action {
    font-size: 14px;
    padding: 4px 8px;
}

.x-post-actions .x-action i {
    font-size: 20px;
    width: 38px;
    height: 38px;
}

.x-post-source {
    padding: 16px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 18px;
}

.x-post-source a {
    color: var(--text);
    font-weight: 700;
}

.x-post-push {
    padding: 16px;
    margin: 0 -16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-box);
}

.x-post-push textarea,
.x-post-push input[type="date"],
.x-post-push input[type="time"] {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background-color: var(--bg);
    color: var(--text);
}

.x-post-push input[type="date"],
.x-post-push input[type="time"] {
    width: auto;
    margin-right: 8px;
}

.x-section-title {
    margin: 0;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
}

.x-related {
    display: block;
}

.x-related .x-card-title {
    margin: 0;
}

.x-ad-inline {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Coluna direita
   -------------------------------------------------------------------------- */
.x-search {
    position: relative;
    margin: 0 0 12px;
}

.x-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
}

.x-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 46px;
    border: 1px solid transparent;
    border-radius: 9999px;
    background-color: var(--input-bg);
    color: var(--text);
    font-size: 15px;
}

.x-search input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg);
}

.x-search input::placeholder {
    color: var(--muted);
}

.x-box {
    margin: 0 0 16px;
    border-radius: 16px;
    background-color: var(--bg-box);
    overflow: hidden;
}

.x-box-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
}

.x-trend {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    transition: background-color .15s;
}

.x-trend:hover {
    background-color: var(--bg-hover);
    color: var(--text);
    text-decoration: none;
}

.x-trend-label,
.x-trend-meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 16px;
}

.x-trend-title {
    margin: 2px 0;
    font-size: 15px;
    line-height: 20px;
}

.x-partners-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.x-partner-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    transition: background-color .15s;
}

.x-partner-link:hover {
    background-color: var(--bg-hover);
    color: var(--text);
    text-decoration: none;
}

.x-partner-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 20px;
}

.x-partner-text strong {
    font-size: 15px;
}

/* Na nav esquerda a lista de parceiros e mais compacta */
.x-nav .x-partner-link,
.x-drawer .x-partner-link {
    padding: 6px 12px;
    border-radius: 9999px;
}

.x-box-more {
    display: block;
    width: 100%;
    padding: 16px;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.x-box-more:hover {
    background-color: var(--bg-hover);
}

.x-box-more[aria-expanded="true"] {
    display: none;
}

.x-ad {
    margin: 0 0 16px;
    text-align: center;
    overflow: hidden;
}

.x-ad:empty {
    display: none;
}

.x-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 16px;
}

.x-footer a {
    color: var(--muted);
}

.x-footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Topbar, drawer e barra inferior (mobile)
   -------------------------------------------------------------------------- */
.x-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 30;
    align-items: center;
    justify-content: space-between;
    height: var(--bar-h);
    padding: 0 12px;
    background-color: var(--bg-header);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.x-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

.x-topbar-btn:hover,
.x-topbar-btn:focus {
    background-color: var(--bg-hover);
    outline: none;
}

.x-topbar-logo img {
    height: 26px;
    width: auto;
}

.x-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    width: 280px;
    max-width: 85vw;
    padding: 12px 8px;
    background-color: var(--bg);
    overflow-y: auto;
    transform: translate3d(-100%, 0, 0);
    transition: transform .25s ease;
    visibility: hidden;
}

.x-drawer.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
}

.x-drawer .x-nav-inner {
    min-height: 100%;
}

.x-drawer-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

.x-drawer-close:hover {
    background-color: var(--bg-hover);
}

.body-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.4);
}

body.offcanvas-open {
    overflow: hidden;
}

.x-bottombar {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    height: var(--bar-h);
    padding-bottom: env(safe-area-inset-bottom);
    background-color: var(--bg);
    border-top: 1px solid var(--border);
}

.x-bottombar-link {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 24px;
    text-decoration: none;
    cursor: pointer;
}

.x-bottombar-link:hover,
.x-bottombar-link:focus,
.x-bottombar-link.active {
    color: var(--text);
    text-decoration: none;
    outline: none;
}

.x-bottombar-link.active {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Area logada e formularios
   -------------------------------------------------------------------------- */
.x-account-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.x-account-tabs::-webkit-scrollbar {
    display: none;
}

.x-account-tab {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s;
}

.x-account-tab:hover {
    background-color: var(--bg-hover);
    color: var(--text);
    text-decoration: none;
}

.x-account-tab.active {
    color: var(--text);
    font-weight: 700;
}

.x-account-tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 2px;
    background-color: var(--accent);
}

.x-section {
    padding: 16px;
}

.x-section-lead {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.x-auth {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 16px;
}

.x-auth-logo {
    display: block;
    height: 40px;
    width: auto;
    margin: 0 auto 24px;
}

.x-auth h1 {
    margin: 0 0 24px;
    font-size: 31px;
    font-weight: 800;
    line-height: 36px;
}

.x-auth-alt {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.x-form label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.form-control,
.custom-select {
    background-color: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    height: auto;
    padding: 10px 12px;
}

.form-control:focus,
.custom-select:focus {
    background-color: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    color: var(--text);
}

.form-control::placeholder {
    color: var(--muted);
}

.form-control.is-invalid {
    border-color: #f4212e;
}

.form-text {
    color: var(--muted);
}

.custom-control-label {
    color: var(--text);
}

.custom-control-label::before {
    background-color: var(--input-bg);
    border: 1px solid var(--border-strong);
}

.x-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.x-label-row a {
    font-size: 13px;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-file-label {
    background-color: var(--bg);
    border-color: var(--border-strong);
    color: var(--text);
}

.custom-file-label::after {
    background-color: var(--bg-box);
    color: var(--text);
    border-color: var(--border-strong);
}

.alert {
    border-radius: 12px;
    border: 0;
    font-size: 14px;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(0, 186, 124, 0.15);
    color: #7fe5bf;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(244, 33, 46, 0.15);
    color: #ff8a92;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(29, 155, 240, 0.15);
    color: #8ecdf8;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(255, 212, 0, 0.15);
    color: #ffe680;
}

[data-theme="dark"] .text-muted {
    color: var(--muted) !important;
}

[data-theme="dark"] .close {
    color: var(--text);
    text-shadow: none;
}

.x-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Paginas de conteudo, busca, video
   -------------------------------------------------------------------------- */
.x-page-content {
    padding: 16px;
    font-size: 17px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.x-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.x-page-content h2,
.x-page-content h3 {
    margin: 24px 0 12px;
    font-size: 20px;
    font-weight: 800;
}

.x-cse {
    padding: 16px;
}

.x-video {
    padding: 0 0 16px;
}

.x-video .embed-responsive {
    border-bottom: 1px solid var(--border);
}

.x-video-title {
    margin: 16px;
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
}

.x-video-meta {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.x-video-description {
    padding: 16px;
    font-size: 15px;
    line-height: 20px;
    white-space: pre-wrap;
}

/* Google CSE (search.php e pages/busca.php) */
.gsc-control-cse {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

.gsc-control-cse .gs-spelling,
.gsc-control-cse .gs-result .gs-title,
.gsc-control-cse .gs-result .gs-title * {
    font-size: 17px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 22px !important;
    color: var(--text) !important;
}

.gsc-control-cse .gs-result .gs-snippet,
.gsc-control-cse .gs-result .gs-visibleUrl,
.gsc-control-cse .gsc-result-info,
.gsc-control-cse .gs-no-results-result .gs-snippet {
    color: var(--muted) !important;
    font-size: 15px !important;
    background: transparent !important;
}

.gsc-webResult.gsc-result {
    border-color: var(--border) !important;
    background: transparent !important;
    padding: 12px 0 !important;
}

.gsc-webResult.gsc-result:hover {
    background-color: var(--bg-hover) !important;
}

.gsc-results .gsc-cursor-box {
    text-align: center !important;
    margin: 16px 0 !important;
}

.gsc-results .gsc-cursor-box .gsc-cursor-page {
    background-color: transparent !important;
    color: var(--text) !important;
    font-size: 15px !important;
    border: 1px solid var(--border) !important;
    border-radius: 9999px !important;
    padding: 4px 12px !important;
    font-weight: normal !important;
    margin-right: 4px !important;
}

.gsc-results .gsc-cursor-box .gsc-cursor-current-page {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

.gsc-above-wrapper-area {
    border: 0 !important;
}

.gsc-above-wrapper-area,
.gsc-result-info-container {
    display: block !important;
}

.gcsc-more-maybe-branding-root,
.gcsc-branding,
.gsc-tabsArea,
.gs-richsnippet-box,
.gcsc-find-more-on-google-root,
.gsc-search-box,
.gsc-refinementsArea,
.gsc-adBlock {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Paginas sem shell (404 / 410)
   -------------------------------------------------------------------------- */
.x-bare {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.x-error {
    max-width: 480px;
    text-align: center;
}

.x-error-logo {
    height: 40px;
    width: auto;
    margin-bottom: 24px;
}

.x-error h1 {
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 8px;
}

.x-error p {
    color: var(--muted);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Breadcrumb (usado em pages)
   -------------------------------------------------------------------------- */
.x-timeline .breadcrumb {
    background: none;
    padding: 8px 16px 0;
    margin: 0;
    font-size: 13px;
}

.x-timeline .breadcrumb a {
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

/* Nav so com icones */
@media (max-width: 1279.98px) {
    :root {
        --nav-w: 88px;
    }

    .x-nav {
        padding: 0 4px;
    }

    .x-nav-inner {
        align-items: center;
    }

    .x-logo {
        align-self: center;
    }

    .x-logo-icon {
        display: block;
    }

    .x-logo-full {
        display: none;
    }

    .x-menu-link {
        justify-content: center;
        padding: 12px;
    }

    .x-menu-link span,
    .x-menu-caret {
        display: none;
    }

    .x-partners-collapse {
        display: none !important;
    }

    .x-nav-cta {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
    }

    .x-nav-cta span {
        display: none;
    }

    .x-nav-cta i {
        font-size: 22px;
    }

    .x-nav-user {
        width: 100%;
    }

    .x-user-card {
        justify-content: center;
        padding: 8px;
    }

    .x-user-text,
    .x-user-more {
        display: none;
    }

    .x-nav-signin {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        margin: 0 auto;
    }

    .x-nav-signin span,
    .x-nav-register {
        display: none;
    }

    .x-nav-signin i {
        font-size: 22px;
    }

    /* O dropdown dos menus abre a direita do icone */
    .x-nav .dropdown-menu {
        left: 100%;
        top: 0;
    }
}

/* Some a coluna direita */
@media (max-width: 999.98px) {
    .x-right {
        display: none;
    }

    .x-timeline {
        flex: 1 1 auto;
        border-right: 1px solid var(--border);
    }

    .x-timeline-footer {
        display: block;
        padding: 24px 0 32px;
    }
}

/* Mobile: some a nav; entram topbar, drawer e barra inferior */
@media (max-width: 767.98px) {
    body.x-body {
        padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
    }

    .x-shell {
        max-width: 100%;
    }

    .x-nav {
        display: none;
    }

    .x-timeline {
        width: 100%;
        border-left: 0;
        border-right: 0;
        min-height: calc(100vh - var(--bar-h) * 2);
    }

    .x-topbar,
    .x-bottombar {
        display: flex;
    }

    .x-column-header {
        top: var(--bar-h);
    }

    .x-card {
        padding: 12px;
    }

    .x-card-media,
    .x-post-media {
        border-radius: 12px;
    }

    .x-post {
        padding: 12px 12px 0;
    }

    .x-post-actions,
    .x-post-push {
        margin: 0 -12px;
    }

    .x-post-title {
        font-size: 20px;
        line-height: 24px;
    }

    .x-column-title {
        font-size: 18px;
    }

    /* No drawer o menu e completo, com texto */
    .x-drawer .x-nav-inner {
        align-items: stretch;
    }

    .x-drawer .x-logo-icon {
        display: block;
    }

    .x-drawer .x-logo-full {
        display: none;
    }

    .x-drawer .x-menu-link {
        justify-content: flex-start;
        font-size: 18px;
    }

    .x-drawer .x-menu-link span,
    .x-drawer .x-menu-caret {
        display: inline;
    }

    .x-drawer .x-partners-collapse {
        display: none;
    }

    .x-drawer .x-partners-collapse.show {
        display: block !important;
    }

    .x-drawer .x-nav-cta {
        width: 100%;
        height: auto;
        padding: 12px 24px;
        border-radius: 9999px;
    }

    .x-drawer .x-nav-cta span,
    .x-drawer .x-nav-signin span,
    .x-drawer .x-nav-register,
    .x-drawer .x-user-text,
    .x-drawer .x-user-more {
        display: block;
    }

    .x-drawer .x-user-text {
        display: flex;
    }

    .x-drawer .x-user-card {
        justify-content: flex-start;
        padding: 12px;
    }

    .x-drawer .x-nav-signin {
        width: 100%;
        height: auto;
        padding: 10px 16px;
        border-radius: 9999px;
    }

    .x-drawer .dropdown-menu {
        left: 0;
        top: auto;
    }

    .x-auth {
        padding: 24px 16px;
    }
}

/* Telas muito pequenas */
@media (max-width: 375px) {
    .x-card-actions {
        gap: 0;
    }

    .x-post-actions .x-action-label {
        display: none;
    }
}
