/*
Theme Name: Webbiverse Client Portal
Theme URI: https://webbiverse.com
Author: Webbiverse
Author URI: https://webbiverse.com
Description: Lightweight client portal theme for reports, roadmaps, approvals, and asset access on top of the Webbiverse Client Portal plugin.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: webbiverse-portal-theme
*/

:root {
  --wbv-portal-bg: #06111f;
  --wbv-portal-surface: rgba(10, 24, 43, 0.88);
  --wbv-portal-surface-strong: #10233d;
  --wbv-portal-border: rgba(148, 163, 184, 0.18);
  --wbv-portal-text: #f8fafc;
  --wbv-portal-muted: #94a3b8;
  --wbv-portal-accent: #e65616;
  --wbv-portal-accent-soft: rgba(230, 86, 22, 0.18);
  --wbv-portal-success: #22c55e;
  --wbv-portal-shadow: 0 30px 80px rgba(2, 12, 27, 0.45);
  --wbv-portal-radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top left, rgba(230, 86, 22, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 24%),
    linear-gradient(180deg, #08121f 0%, #050b14 100%);
  min-height: 100%;
}

body.portal-body {
  margin: 0;
  min-height: 100vh;
  color: var(--wbv-portal-text);
  font-family: Georgia, "Times New Roman", serif;
  background: transparent;
}

a {
  color: inherit;
}

.portal-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: rgba(7, 18, 32, 0.72);
  border: 1px solid var(--wbv-portal-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.portal-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-brand__eyebrow {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wbv-portal-muted);
}

.portal-brand__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
}

.portal-topbar__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--wbv-portal-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--wbv-portal-text);
  text-decoration: none;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
}

.portal-chip:hover,
.portal-chip:focus-visible {
  border-color: rgba(230, 86, 22, 0.45);
  background: rgba(230, 86, 22, 0.1);
}

.portal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  border: 1px solid rgba(230, 86, 22, 0.16);
  background:
    linear-gradient(145deg, rgba(15, 28, 48, 0.98), rgba(9, 17, 31, 0.92)),
    radial-gradient(circle at top right, rgba(230, 86, 22, 0.18), transparent 30%);
  box-shadow: var(--wbv-portal-shadow);
}

.portal-hero__kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--wbv-portal-accent-soft);
  border: 1px solid rgba(230, 86, 22, 0.25);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd7c5;
}

.portal-hero h1 {
  margin: 0 0 14px;
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.96;
}

.portal-hero p {
  margin: 0;
  max-width: 760px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #d7e3f4;
}

.portal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.portal-button:hover,
.portal-button:focus-visible {
  transform: translateY(-1px);
}

.portal-button--primary {
  background: var(--wbv-portal-accent);
  color: #fff7f3;
  box-shadow: 0 18px 36px rgba(230, 86, 22, 0.24);
}

.portal-button--ghost {
  border: 1px solid var(--wbv-portal-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--wbv-portal-text);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.portal-card {
  grid-column: span 4;
  padding: 22px;
  border-radius: var(--wbv-portal-radius);
  border: 1px solid var(--wbv-portal-border);
  background: var(--wbv-portal-surface);
  backdrop-filter: blur(12px);
}

.portal-card--wide {
  grid-column: span 8;
}

.portal-card--full {
  grid-column: 1 / -1;
}

.portal-card h2,
.portal-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.portal-card p,
.portal-card li {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  color: #c7d5e7;
}

.portal-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.portal-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-metric__value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fffaf6;
}

.portal-metric__label {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wbv-portal-muted);
}

.portal-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: #d8ffe4;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.portal-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--wbv-portal-success);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.portal-footer {
  margin-top: 24px;
  padding: 18px 2px 4px;
  color: var(--wbv-portal-muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .portal-card,
  .portal-card--wide {
    grid-column: span 12;
  }

  .portal-topbar {
    border-radius: 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-topbar__links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .portal-shell {
    width: min(100% - 24px, 1200px);
    padding-top: 16px;
  }

  .portal-hero {
    border-radius: 24px;
  }

  .portal-button {
    width: 100%;
  }
}