
/*
Theme Name: NeuroBiz
Theme URI: https://aiblog1.fun
Author: Юлай
Author URI: https://aiblog1.fun
Description: Лёгкая минималистичная тема для сайта «NeuroБизнес»: ИИ в инфопродуктах. Темная палитра, адаптивная сетка, акцентный градиент, поддержка Gutenberg.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: neurobiz
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, editor-style, featured-images
*/

/* Базовая палитра */
:root {
  --bg: #0b1226;
  --bg-alt: #0f1833;
  --card: #121b37;
  --fg: #e8ecf5;
  --muted: #9aa4b2;
  --line: #26314e;
  --accent: #7c3aed;
  --accent-2: #22d3ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-alt: #f7f7fb;
    --card: #ffffff;
    --fg: #16181d;
    --muted: #5c667a;
    --line: #e7e9ef;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}
.nav .menu { display: flex; gap: 20px; align-items: center; }
.menu a { color: var(--fg); opacity: .9; padding: 10px 6px; border-radius: 10px; }
.menu a:hover { background: var(--bg-alt); opacity: 1; }

/* Мобайл меню */
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--fg); }
@media (max-width: 820px) {
  .nav .menu { display: none; }
  .nav .menu.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-alt); padding: 16px; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* Hero */
.hero {
  padding: 60px 0 36px;
  background:
   radial-gradient(1200px 600px at 80% -10%, color-mix(in oklab, var(--accent) 30%, transparent), transparent),
   radial-gradient(1200px 600px at 10% -10%, color-mix(in oklab, var(--accent-2) 35%, transparent), transparent);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.1; margin: 0 0 10px; }
.hero p  { font-size: clamp(16px, 2.5vw, 20px); color: var(--muted); margin: 0 0 20px; }
.cta {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 14px; cursor: pointer;
  color: var(--fg); background: var(--bg-alt);
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: white; box-shadow: var(--shadow); }
.btn:hover { transform: translateY(-1px); }

/* Карточки постов */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h2 { margin: 0 0 8px; font-size: 20px; }
.card .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.card .excerpt { color: var(--fg); opacity: .9; }

@media (max-width: 1100px) { .card { grid-column: span 6; } }
@media (max-width: 640px)  { .card { grid-column: span 12; } }

/* Основной контент */
.content { padding: 28px 0 60px; }
.content h1,.content h2,.content h3 { line-height: 1.2; }
.content img { max-width: 100%; border-radius: 12px; }
.content pre, .content code { background: #0b132b; color: #e6edf3; padding: 2px 6px; border-radius: 8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}
