@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Global Branding Variables (Skill: Taste Redesign) --- */
:root {
  --bg: #0d0e12;         /* Deep Obsidian Ink - Not pure black */
  --bg-elev: #16181d;
  --bg-elev-2: #1e2128;
  --line: rgba(255, 255, 255, 0.05);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #10b981;     /* Vibrant Technical Emerald */
  --accent-dim: rgba(16, 185, 129, 0.1);
  --wp-blue: #3b82f6;
  --wp-hl: #60a5fa;
  --w-bar: #0a0b0e;
  --w-border: #1e293b;
  --max: 1400px;
  --pad: clamp(1.5rem, 6vw, 4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-synthesis: none;
}

/* --- Base Styling --- */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-top: 40px; /* Aligned with new WP bar height */
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, .tech-font {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

code, pre, .mono-font {
  font-family: 'JetBrains Mono', monospace;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* --- WordPress Admin Bar (Hard Tech Redesign) --- */
#wpadminbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  border-bottom: 1px solid var(--w-border);
  display: flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--muted);
}

#wpadminbar * {
  box-sizing: border-box;
}

#wpadminbar .quicklinks {
  width: 100%;
  display: flex;
  align-items: center;
  height: 40px;
  justify-content: space-between;
  padding: 0 20px;
}

#wpadminbar .quicklinks > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 32px;
  gap: 0;
}

#wpadminbar .quicklinks > ul > li {
  display: flex;
  align-items: center;
  height: 32px;
}

#wpadminbar .quicklinks > ul > li > a {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

#wpadminbar .quicklinks > ul > li > a:hover {
  color: var(--wp-hl);
  background: #27272a;
}

#wpadminbar .quicklinks > ul > li > a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Green Highlighted Active Icon */
#wpadminbar .quicklinks > ul > li > a.active .dashicons {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-radius: 5px;
  width: 24px;
  height: 24px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 8px !important;
  font-size: 17px !important;
}

#wpadminbar .ab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 32px;
  margin-right: 4px;
}

#wpadminbar .ab-icon svg {
  width: 20px;
  height: 20px;
  fill: #a1a1aa;
}

#wpadminbar .quicklinks > ul > li:hover .ab-icon svg {
  fill: var(--wp-hl);
}

#wpadminbar #wp-admin-bar-wp-logo {
  padding: 0 2px;
}

#wpadminbar #wp-admin-bar-wp-logo .ab-icon svg {
  fill: #3b82f6;
}

#wpadminbar .ab-left {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 32px;
  padding-left: 8px;
  gap: 0.75rem;
  flex-shrink: 0;
}

#wpadminbar .ab-reset {
  color: #a1a1aa;
  background: transparent;
  border: 1px solid var(--w-border);
  border-radius: 0.25rem;
  padding: 0.125rem 0.625rem;
  cursor: pointer;
  font-size: 0.75rem;
  height: 22px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, color 0.2s;
}

#wpadminbar .ab-reset:hover {
  border-color: var(--wp-hl);
  color: var(--wp-hl);
}

#wpadminbar .lcms-logo-btn {
  gap: 6px;
}

#wpadminbar .lcms-logo-btn img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

#wpadminbar .bar-discord {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.75rem;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--w-border);
  border-radius: 0.25rem;
  height: 22px;
  transition: border-color 0.2s, color 0.2s;
}

#wpadminbar .bar-discord:hover {
  border-color: #5865F2;
  color: #5865F2;
}

/* Animations from index.html */
@keyframes lcms-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.88; }
}
@keyframes lcms-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.lcms-onboard-highlight { animation: lcms-pulse 1.5s var(--ease) infinite; border-radius: 0.25rem; will-change: transform; }
