/*
Theme Name: CryptSecure Broker
Theme URI: https://broker.cryptsecure.opey.org
Author: Opey's IT
Description: Purpose-built, full-width theme for the CryptSecure Broker application. Dark navy/teal brand shell matching the marketing site, no posts/comments/blog chrome, no narrow content column. Broker VM only — not for the opey.org marketing site.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cryptsecure-broker
*/

/* ============ Brand tokens (matched to the opey.org marketing page) ============ */
:root{
  --navy:#0B1B30; --navy2:#0f2138; --navy3:#143a6b;
  --teal:#2dd4bf; --teal2:#4be3d0; --tealink:#052a26;
  --line-dark:#20405f; --muted:#9fb0c4; --muted2:#c6d2e0;
  /* app canvas (light, matches the plugin's own csb_styles) */
  --bg:#f5f7fb; --ink:#0b1f3a; --appnavy:#0f2a52; --appline:#e3e8f0; --appmuted:#5a6472;
  --shell-max:1200px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.cryptsecure-broker{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,system-ui,sans-serif;
  line-height:1.5; min-height:100vh; display:flex; flex-direction:column;
}

/* ============ Top brand bar (dark navy, teal accent) ============ */
.csbt-header{background:var(--navy); border-bottom:1px solid var(--line-dark); position:sticky; top:0; z-index:40}
.csbt-bar{max-width:var(--shell-max); margin:0 auto; padding:14px 24px; display:flex; align-items:center; gap:26px}
.csbt-brand{display:flex; align-items:center; gap:12px; text-decoration:none; white-space:nowrap}
.csbt-mark{width:34px; height:34px; border-radius:9px; background:linear-gradient(135deg,var(--teal),#17a89a);
  display:flex; align-items:center; justify-content:center; color:#05241f; font-size:19px; font-weight:800;
  box-shadow:0 6px 16px rgba(45,212,191,.28)}
.csbt-brandtext{display:flex; flex-direction:column; line-height:1.05}
.csbt-wordmark{font-size:18px; font-weight:800; letter-spacing:-.01em; color:#fff}
.csbt-wordmark span{color:var(--teal)}
.csbt-sub{font-size:9.5px; letter-spacing:.17em; text-transform:uppercase; color:var(--muted); margin-top:3px}
.csbt-nav{display:flex; align-items:center; gap:4px; flex-wrap:wrap; margin-left:6px}
.csbt-nav a{color:var(--muted2); text-decoration:none; font-size:14.5px; font-weight:500; padding:8px 12px; border-radius:7px}
.csbt-nav a:hover{color:#fff; background:rgba(255,255,255,.05)}
.csbt-nav a.active{color:var(--teal)}
.csbt-nav a.active::after{content:""; display:block; height:2px; background:var(--teal); border-radius:2px; margin-top:5px}
.csbt-account{margin-left:auto; display:flex; align-items:center; gap:14px}
.csbt-whoami{color:var(--muted2); font-size:13.5px; white-space:nowrap}
.csbt-btn{background:var(--teal); color:var(--tealink)!important; font-weight:700; font-size:14px;
  padding:9px 18px; border-radius:7px; text-decoration:none; white-space:nowrap}
.csbt-btn:hover{background:var(--teal2)}

/* mobile nav toggle */
.csbt-toggle{display:none; margin-left:auto; background:transparent; border:1px solid var(--line-dark);
  color:#fff; border-radius:8px; padding:8px 12px; font-size:16px; cursor:pointer}

/* ============ Full-width app canvas ============ */
.csbt-main{flex:1 0 auto; width:100%}
.csbt-shell{max-width:var(--shell-max); margin:0 auto; padding:34px 24px 48px}
.csbt-pagetitle{font-size:30px; line-height:1.15; font-weight:800; letter-spacing:-.015em;
  color:var(--appnavy); margin:4px 0 22px}

/* Let the plugin's own .csb-wrap breathe to full shell width (kill any narrow cap) */
.csbt-shell .csb-wrap{max-width:none!important; width:100%; margin:0; padding:0}

/* ============ Footer ============ */
.csbt-footer{flex-shrink:0; background:var(--navy); border-top:1px solid var(--line-dark); color:var(--muted)}
.csbt-foot{max-width:var(--shell-max); margin:0 auto; padding:22px 24px; display:flex; align-items:center;
  justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:12.5px}
.csbt-foot .tag{color:var(--muted2)}
.csbt-foot .tag b{color:var(--teal); font-weight:700}
.csbt-foot a{color:var(--muted2); text-decoration:none}
.csbt-foot a:hover{color:var(--teal)}

/* ============ Responsive ============ */
@media (max-width:860px){
  .csbt-nav,.csbt-account{display:none; width:100%}
  .csbt-toggle{display:block}
  .csbt-bar{flex-wrap:wrap; gap:14px}
  .csbt-header.open .csbt-nav{display:flex; flex-direction:column; align-items:stretch; gap:2px; margin:6px 0 2px}
  .csbt-header.open .csbt-nav a{padding:11px 10px}
  .csbt-header.open .csbt-account{display:flex; justify-content:space-between; border-top:1px solid var(--line-dark); padding-top:12px}
  .csbt-shell{padding:22px 16px 36px}
  .csbt-pagetitle{font-size:24px}
}
