/*
Theme Name: Codesoft OS
Theme URI: https://www.codesoft.app
Author: Codesoft
Description: Personal AI operating system control surface. Dark, precise, systems-oriented.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: codesoft-os
*/

:root {
  --bg: #070708;
  --bg-elevated: #0f0f11;
  --bg-card: #121215;
  --border: #1e1e24;
  --border-hover: #2a2a33;
  --text: #e8e8ed;
  --text-muted: #8b8b98;
  --text-dim: #5c5c6a;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.15);
  --accent-cyan: #22d3ee;
  --warn: #f59e0b;
  --danger: #ef4444;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --radius: 10px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: #5eecc0; }

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #000;
}

.nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a:hover, .nav a.active { color: var(--text); }

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.hero h1 span { color: var(--accent); }

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #5eecc0;
  color: #000;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

/* Section */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

/* Domain grid */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 4rem;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.domain-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.domain-card .status {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status.live { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.status.partial { background: var(--warn); }
.status.offline { background: var(--text-dim); }

.domain-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.domain-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.domain-card .source {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .nav { display: none; }
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.panel p, .panel li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.panel ul {
  list-style: none;
  margin-top: 0.75rem;
}

.panel li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.panel li:last-child { border-bottom: none; }

.panel .mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Constraint callout */
.callout {
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 3.5rem;
}

.callout strong {
  color: var(--accent);
  font-weight: 600;
}

.callout p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Inner pages */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 520px;
}

.content-prose {
  max-width: 680px;
}

.content-prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.content-prose p, .content-prose li {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.content-prose ul {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}

.content-prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Live status bar */
.status-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.status-bar span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-bar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
