/*
Theme Name: GSXOPS Frosted
Theme URI: https://gsxops.com/
Author: GSXOPS
Description: Frosted-glass theme with etched content panes and pill navigation.
Version: 1.0.7
Text Domain: gsxops-frosted
*/

/* ---------- Base & background ---------- */
:root{
  --gsx-accent: #7a6df5;
  --gsx-accent-2: #5f8cff;
  --gsx-ink: #0b0d10;
  --gsx-ink-soft: #111318;
  --gsx-border: rgba(255,255,255,.60);
  --gsx-pane: rgba(255,255,255,.34);
  --gsx-pane-strong: rgba(255,255,255,.42);
  --gsx-menu-hover: rgba(255,255,255,.22);
  /* Set via Customizer; left empty by default */
  --gsx-bg-url: url("");
}

html, body { height: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  background:
    radial-gradient(60% 40% at 50% 20%, rgba(226, 82, 39, .25) 0%, rgba(0,0,0,0) 60%),
    var(--gsx-bg-url),
    #0b0f16;
  background-size: cover, cover, auto;
  background-attachment: fixed, fixed, scroll;
  background-position: center, center, left top;
  color:#eef2ff;
}
body::before{
  content:"";
  position:fixed; inset:0; z-index:0;
  background: rgba(8,13,22,.35);
  pointer-events:none;
}
.site-wrap{ position: relative; z-index:1; }

/* ---------- Header ---------- */
.container{ max-width:1200px; margin:0 auto; padding:0 12px; }

.site-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:.75rem 0;
  background: rgba(10,12,18,.55);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-brand{ display:flex; align-items:center; gap:.75rem; }
.site-title{ margin:0; font-size:1.75rem; letter-spacing:.5px; }
.site-title a{ color:#fff; text-decoration:none; }
.site-header .custom-logo{ max-height: 70px; width:auto; height:auto; }

/* ---------- Nav (pill menu) ---------- */
.primary-nav{ margin:0; }
.primary-nav ul{
  display:flex; flex-wrap:wrap; gap:.25rem .4rem; list-style:none; margin:0; padding:0;
}
.primary-nav li{ margin:0; padding:0; }
.primary-nav a{
  display:inline-block; padding:.6rem .9rem; border-radius:999px; text-decoration:none;
  color:#0b1220; font-weight:700; letter-spacing:.01em;
  background: rgba(255,255,255,.34);
  box-shadow: 0 0 0 1px rgba(0,0,0,.14) inset, 0 6px 16px rgba(0,0,0,.10);
  backdrop-filter: saturate(160%) blur(2px); -webkit-backdrop-filter: saturate(160%) blur(2px);
  transition:background .2s, color .2s, box-shadow .2s, transform .08s;
}
.primary-nav a:hover{
  background: rgba(255,255,255,.50); color:#0b1220; transform:translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.16) inset, 0 8px 18px rgba(0,0,0,.12);
}
.primary-nav .current-menu-item > a{
  background: #ffffff; color:#0b1220; font-weight:800;
  box-shadow: 0 0 0 1px rgba(0,0,0,.20) inset, 0 10px 22px rgba(0,0,0,.18);
}

/* ---------- Content containers (etched glass) ---------- */
.page-frame{
  background: rgba(255,255,255,.16);
  border:1px solid var(--gsx-border);
  border-radius:22px;
  padding:1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20), 0 12px 28px rgba(0,0,0,.26);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
}
.entry-content > *{
  position:relative;
  background: var(--gsx-pane);
  border: 1px solid var(--gsx-border);
  border-radius:18px;
  padding:1rem 1.25rem;
  margin:.75rem 0;
  color: var(--gsx-ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 12px 28px rgba(0,0,0,.20);
  backdrop-filter: blur(14px) saturate(170%) contrast(1.02) brightness(1.03);
  -webkit-backdrop-filter: blur(14px) saturate(170%) contrast(1.02) brightness(1.03);
}
.entry-content > *::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.70), inset 0 -1px 0 rgba(0,0,0,.12);
}
.entry-content > *::after{
  content:""; position:absolute; inset:8px; border-radius:calc(18px - 8px); pointer-events:none;
  background: radial-gradient(120% 120% at 50% 30%, rgba(255,255,255,.22) 0%, rgba(255,255,255,.10) 55%, rgba(0,0,0,0) 75%);
}
.entry-content > * h1, .entry-content > * h2, .entry-content > * h3{
  color:#0b0d10; font-weight:800;
}
.entry-content > * p, .entry-content > * li{
  color: var(--gsx-ink);
  font-size: 1.06rem;
  line-height: 1.8;
  font-weight: 500;
  max-width: 68ch;
}
.gsx-no-glass{ background:transparent !important; border:0 !important; box-shadow:none !important; backdrop-filter:none !important; }
.gsx-no-glass::after{ display:none !important; }

/* ---------- Page/Post Titles ---------- */
.entry-header h1{
  font-size: 3.25rem; line-height: 1.15; margin-bottom: 1rem; text-align:center; width:100%;
  color:#ffffff; text-shadow: 0 2px 10px rgba(0,0,0,.25); font-weight:900;
}

/* ---------- Buttons ---------- */
.button, .wp-block-button__link, button, input[type="submit"]{
  background: linear-gradient(180deg, var(--gsx-accent), var(--gsx-accent-2));
  border:none; color:#fff !important; font-weight:800; cursor:pointer;
  border-radius:12px; padding:.65rem 1rem; display:inline-block;
  box-shadow: 0 8px 18px rgba(16,24,55,.28);
}
.button:hover, .wp-block-button__link:hover, button:hover, input[type="submit"]:hover{
  filter:brightness(1.05); transform:translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer{ text-align:center; padding:2rem 1rem; color:#e5e9ff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .site-header{ flex-direction: column; align-items:center; text-align:center; }
  .site-brand{ flex-direction: column; align-items:center; gap:.5rem; margin-bottom:.75rem; }
  .site-title{ font-size:1.5rem; }
  .site-header .custom-logo{ max-height: 54px; }
  .primary-nav{ width:100%; }
  .primary-nav ul{ justify-content: center; }
  .entry-header h1{ font-size: 2.6rem; }
}
@media (max-width: 480px){
  .site-header .custom-logo{ max-height: 48px; }
  .site-title{ font-size: 1.35rem; }
  .entry-header h1{ font-size: 2.35rem; }
}

/* =====================================================================
   Global chatbot look (applies to any [mwai_chatbot]) – theme-aware
   ===================================================================== */
.mwai-chatbot-container,
.mwai-chatbot,
.mwai-container.mwai-chatbot-theme {
  background: var(--gsx-pane, rgba(255,255,255,.34));
  border: 1px solid var(--gsx-border, rgba(255,255,255,.6));
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 12px 28px rgba(0,0,0,.20);
  backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%);
  color: var(--gsx-ink, #0b0d10);
}
.mwai-chatbot-container .mwai-wrapper,
.mwai-chatbot .mwai-wrapper { padding: 10px 12px; border-radius: 14px; }
.mwai-chatbot-container input,
.mwai-chatbot-container textarea,
.mwai-chatbot-container button,
.mwai-chatbot input,
.mwai-chatbot textarea,
.mwai-chatbot button { border-radius: 10px; }

/* Compact option: wrap shortcode in <div class="chatbot-compact"> ... */
.chatbot-compact .mwai-chatbot-container,
.chatbot-compact .mwai-chatbot {
  max-width: 420px; margin: 0 auto 20px; transform: scale(.85); transform-origin: top center; overflow: hidden;
}
.chatbot-compact .mwai-header { display: none !important; }
.chatbot-compact .mwai-messages { max-height: 220px !important; overflow-y: auto !important; }
/* Or target a specific bot id:
   #mwai-chatbot-chatbot-SOAPNoteBot { max-width:420px; ... } */
/* Cover/hero contrast fixes */
.entry-content > .wp-block-cover{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}
.entry-content > .wp-block-cover::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.35);       /* subtle dark veil */
  backdrop-filter: blur(2px);
  pointer-events:none;
}
.entry-content > .wp-block-cover .wp-block-cover__inner-container{
  position: relative;
  color:#fff !important;             /* readable over dark image */
  text-shadow:0 1px 2px rgba(0,0,0,.55);
}