/* =======================================================
   PeerHubUSA Portal — DARK MODE MASTER VERSION
   - Page background: black
   - Portal text: white / PeepSo blue
   - PeepSo stream/login text: forced visible in dark mode
   - No theme / PeepSo core hacking
======================================================= */

/* BODY (only on portal page, via body.portal-body class) */
body.portal-body {
    background: #000000 !important;   /* dark background */
    /* IMPORTANT: do NOT force a global text color here,
       let components define their own unless we override below */
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
}

/* CONTAINER */
.portal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 15px;
    background: #000000;
}

/* LOGO */
.portal-logo {
    display: block;
    margin: 20px auto 30px;
    width: 250px;
    height: auto;
}

/* HEADERS — PeepSo Blue */
.portal-title,
.portal-subtitle {
    color: #1e88e5 !important;
    font-weight: 700;
    text-align: center;
    margin: 20px auto 12px;
}

/* PORTAL BODY TEXT ONLY */
.portal-text {
    color: #ffffff !important;
    font-size: 1.1rem;
    line-height: 1.55;
    text-align: center;
    margin: 14px auto 22px;
}

/* LOGIN BOX / PEEPSO WIDGET ON PORTAL PAGE */
.portal-login-box .ps-card,
.portal-login-box .peepso-card,
.portal-login-box .ps-stream,
.portal-login-box .ps-posts {
    background: #000000 !important;
    border-radius: 12px;
    padding: 18px !important;
    box-shadow: 0 0 18px rgba(0,0,0,0.25);
}

/* Make sure PeepSo text inside the login/stream on PORTAL is visible */
body.portal-body .portal-login-box,
body.portal-body .portal-login-box * {
    color: #ffffff !important;
}

/* EXTRA SAFETY: if any PeepSo stream/activity is visible on the portal,
   make sure the text is white and background is dark */
body.portal-body .ps-stream,
body.portal-body .ps-stream * {
    color: #ffffff !important;
}

body.portal-body .ps-stream .ps-post,
body.portal-body .ps-stream .peepso-post,
body.portal-body .ps-stream .ps-post *,
body.portal-body .ps-stream .peepso-post * {
    background-color: #000000 !important;
}

/* DO NOT TOUCH HEADERS OR FOOTER STRUCTURE, only stop filters */
header,
footer,
.ps-navbar,
.ps-bottom-bar {
    background: inherit !important;
    filter: none !important;
}
/* FIX PeepSo Login Box text back to black ONLY */
body.portal-body .portal-login-box,
body.portal-body .portal-login-box * {
    color: #000000 !important;
}

/* Text inside fields (placeholders) */
body.portal-body .portal-login-box input::placeholder {
    color: #444444 !important;
}

/* "Remember me" checkbox label */
body.portal-body .portal-login-box label {
    color: #000000 !important;
}

/* "Register" link */
body.portal-body .portal-login-box a {
    color: #1e88e5 !important;  /* PeepSo Blue */
}
