/* =========================
   HIDE THEME CHROME
   ========================= */

.site-header,
.main-navigation,
#site-navigation,
.site-footer,
.footer-widgets,
.entry-header,
.page-header,
.inside-page-header,
.separate-containers .inside-article .entry-header,
.separate-containers .inside-article h1.entry-title,
.entry-title,
.page-title,
h1.entry-title,
.sidebar,
.widget-area {
    display: none !important;
}

/* =========================
   RESET THEME CONTAINERS
   ========================= */

html,
body {
    margin: 0;
    padding: 0;
    background: #eef2f6;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow-x: hidden;
}

#page,
.site,
.site-content,
.content-area,
.site-main,
.inside-article,
.separate-containers .inside-article,
.one-container .site-content,
.separate-containers .site-main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.inside-article,
.site-main {
    padding: 0 !important;
}

/* =========================
   DASHBOARD WRAPPER
   ========================= */

.ns-social-dashboard {
    width: calc(100vw - 80px);
    max-width: none;
    margin: 24px 40px;
    padding: 0;
}

/* =========================
   TOOLBAR
   ========================= */

.ns-social-toolbar {
    background: #ffffff;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    padding: 18px 18px 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ns-social-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ns-social-toolbar-row:last-child {
    margin-bottom: 0;
}

.ns-social-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.ns-social-title {
    font-size: 28px;
    line-height: 1.1;
    margin: 0;
    color: #111827;
}

.ns-social-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.ns-social-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 360px;
}

.ns-social-search-form input[type="text"] {
    flex: 1;
    min-width: 260px;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #cfd8e3;
    background: #f8fafc;
}

.ns-social-search-form button {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.ns-social-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ns-social-chip,
.ns-social-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: #edf2f7;
    border: 1px solid #dbe3ec;
}

.ns-social-chip:hover,
.ns-social-filter-link:hover {
    background: #e4ebf3;
}

.ns-social-chip-clear {
    background: #fff7ed;
    color: #9a3412;
    border-color: #f3d0b2;
}

.ns-social-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* =========================
   MOSAIC
   ========================= */

.ns-social-mosaic {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    overflow-anchor: none;
}

.ns-social-card {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.ns-social-card-inner {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ns-social-card-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: start;
    padding: 14px 14px 12px;
}

.ns-social-platform-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.ns-social-platform-icon.platform-x {
    background: #111827;
}

.ns-social-platform-icon.platform-facebook {
    background: #1877f2;
}

.ns-social-platform-icon.platform-instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.ns-social-platform-icon.platform-threads {
    background: #111111;
}

.ns-social-platform-icon.platform-telegram {
    background: #229ed9;
}

.ns-social-platform-icon.platform-reddit {
    background: #ff4500;
}

.ns-social-platform-icon.platform-youtube {
    background: #dc2626;
}

.ns-social-platform-icon.platform-tiktok {
    background: #111111;
}

.ns-social-platform-icon.platform-whatsapp {
    background: #22c55e;
}

.ns-social-platform-icon.platform-official {
    background: #475569;
}

.ns-social-platform-icon.platform-blog {
    background: #7c3aed;
}

.ns-social-platform-icon.platform-generic {
    background: #64748b;
}

.ns-social-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ns-social-display-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.ns-social-verified {
    font-size: 12px;
    color: #2563eb;
}

.ns-social-username-row {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.ns-social-location-row {
    display: block;
    width: 100%;
}

.ns-social-location {
    display: block;
    width: 100%;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.ns-social-card-side {
    text-align: right;
    width: 110px;
    min-width: 110px;
}

.ns-social-platform-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 4px;
    white-space: nowrap;
}

.ns-social-time {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.35;
    white-space: normal;
    word-break: keep-all;
}

.ns-social-card-image {
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.ns-social-card-image {
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
    overflow: hidden;
}

.ns-social-card-image a {
    display: block;
    text-decoration: none;
}

.ns-social-card-image img {
    display: block;
    width: 100%;
    max-height: none;
    height: auto;
    object-fit: contain;
}

.ns-social-card-body {
    padding: 14px;
}

.ns-social-text {
    font-size: 15px;
    line-height: 1.5;
    color: #1f2937;
}

.ns-social-card.has-image .ns-social-card-inner {
    min-height: 0;
}

.ns-social-card.text-only .ns-social-card-inner {
    min-height: 180px;
}

.ns-social-empty-state {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: 24px;
    color: #64748b;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1500px) {
    .ns-social-mosaic {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .ns-social-mosaic {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ns-social-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ns-social-search-form {
        width: 100%;
        min-width: 0;
    }

    .ns-social-dashboard {
        width: calc(100vw - 40px);
        margin: 20px;
    }
}

@media (max-width: 640px) {
    .ns-social-mosaic {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .ns-social-dashboard {
        width: calc(100vw - 24px);
        margin: 12px;
    }

    .ns-social-card-head {
        grid-template-columns: 42px 1fr;
    }

    .ns-social-card-side {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 54px;
        min-width: 0;
    }
}
/* Reserve space even for external images without WordPress metadata. */
.ns-social-image-unmeasured a { aspect-ratio: 4 / 3; }
.ns-social-image-unmeasured img { width:100%; height:100%; object-fit:contain; }
.ns-social-empty-state { grid-column:1 / -1; }
.ns-social-subtitle { max-width:80ch; line-height:1.5; }
.nsim-new-posts { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:100; border:1px solid var(--nsim-border, #cfd8e3); border-radius:24px; padding:12px 20px; background:var(--nsim-accent, #0f172a); color:var(--nsim-on-accent, #fff); font:600 14px Arial, sans-serif; box-shadow:0 3px 16px #0003; cursor:pointer; }
.nsim-new-posts[hidden] { display:none; }

html:has(.nsim-social-image-dialog[open]) {
    overflow: hidden;
}

.nsim-social-image-dialog {
    box-sizing: border-box;
    width: min(56rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: #fff;
}

.nsim-social-image-dialog::backdrop {
    background: rgba(10, 15, 23, .82);
}

.nsim-social-image-stage {
    background: #111827;
}

.nsim-social-image-frame {
    display: grid;
    justify-content: center;
    grid-template-columns: minmax(0, max-content);
}

.nsim-social-image-full {
    grid-area: 1 / 1;
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 65dvh;
}

.nsim-screen .nsim-social-image-close {
    grid-area: 1 / 1;
    place-self: start end;
    z-index: 1;
    display: grid;
    place-items: center;
    margin: .625rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: .5rem;
    background: rgba(17, 24, 39, .82);
    color: #fff;
    cursor: pointer;
}

.nsim-social-image-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.nsim-screen .nsim-social-image-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.nsim-social-image-info {
    background: rgba(25, 35, 51, .96);
    color: #fff;
    overflow-wrap: anywhere;
}

.nsim-screen .nsim-social-image-info :is(.ns-social-display-name, .ns-social-username-row, .ns-social-location, .ns-social-platform-label, .ns-social-time, .ns-social-text, .ns-social-verified) {
    color: inherit;
}
