/*
Theme Name: AI Auto-SEO Writer Docs
Theme URI: https://example.com/
Author: AI Auto-SEO Writer
Description: Documentation theme for the AI Auto-SEO Writer plugin.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: wpaiso-docs
*/

:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #11182b;
  --border: #202b40;
  --accent: #5b8dff;
  --accent-soft: rgba(91, 141, 255, 0.15);
  --text: #f5f7ff;
  --muted: #9ba3c6;
  --danger: #ff6b81;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-soft: 0 22px 40px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 16px 30px rgba(5, 8, 22, 0.9);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #3b82f6 0, transparent 55%),
              radial-gradient(circle at bottom right, #8b5cf6 0, transparent 55%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  max-width: 1120px;
  margin: 32px auto 40px;
  padding: 0 20px 40px;
}

header.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(91, 141, 255, 0.7);
  object-fit: cover;
}

.brand-title {
  font-weight: 650;
  letter-spacing: 0.06em;
  font-size: 17px;
  text-transform: uppercase;
}

.badge-wordpress {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(148, 163, 255, 0.5);
  color: var(--muted);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.26), transparent 55%);
}

nav.top-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
nav.top-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid transparent;
}
nav.top-nav a.active {
  border-color: rgba(91, 141, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(129, 140, 248, 0.25));
  color: #e5edff;
}

.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  aside.sidebar { order: 2; }
}

aside.sidebar {
  background: rgba(8, 11, 30, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 16px;
  align-self: flex-start;
}

.sidebar-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.sidebar-nav a {
  display: block;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--muted);
}
.sidebar-nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #e5edff;
}
.sidebar-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

main.content {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 55%),
              radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.16), transparent 55%),
              rgba(6, 10, 26, 0.96);
  border-radius: 20px;
  border: 1px solid rgba(30, 64, 175, 0.8);
  padding: 24px 24px 28px;
  box-shadow: var(--shadow-soft);
}

.page-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.page-title {
  font-size: 26px;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 255, 0.4);
  color: var(--muted);
  margin-right: 8px;
}

section.block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 41, 79, 0.7);
}

section.block h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

section.block p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px 14px 13px;
  border: 1px solid rgba(31, 41, 79, 0.9);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

.card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.card p {
  font-size: 13px;
  color: var(--muted);
}

ul.list {
  margin-top: 6px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}

ul.list li { margin-bottom: 4px; }

code.inline {
  background: rgba(15, 23, 42, 0.85);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid rgba(30, 64, 175, 0.8);
}

pre {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(5, 10, 28, 0.98);
  border-radius: 10px;
  border: 1px solid rgba(30, 64, 175, 0.9);
  font-size: 12px;
  overflow-x: auto;
}

footer.app-footer {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  opacity: 0.8;
}

#screenshots img {
  cursor: zoom-in;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#screenshots img:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.lightbox-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  position: relative;
  max-width: min(1180px, 94vw);
  width: 100%;
}

.lightbox-img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--bg);
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.lightbox-close:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}
