/* SultraxAI Blog — shared styles. Dark theme matching the main platform. */

:root {
  --bg:      #0a0c12;
  --bg-card: #11141d;
  --border:  #1f2330;
  --text:    #eaeaea;
  --muted:   #98a0ad;
  --accent:  #ff3333;
  --link:    #9ec5ff;
  --maxw:    760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 197, 255, 0.25);
}
a:hover { border-bottom-color: var(--link); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-header a { border: none; }
.site-header .logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-header .logo .red { color: var(--accent); }
.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  margin-left: 22px;
}
.site-header nav a:hover { color: var(--text); }

h1 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 24px 0 12px;
  font-weight: 800;
}
h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 44px 0 10px;
  font-weight: 700;
}
h3 {
  font-size: 20px;
  margin: 32px 0 8px;
  font-weight: 700;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.meta .dot { color: var(--border); margin: 0 8px; }

p { margin: 14px 0; }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  color: var(--text);
  font-style: italic;
}

code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.92em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  margin: 24px 0 8px;
}
.cta:hover { opacity: 0.92; }

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 28px 0;
}
.callout strong { color: var(--text); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child  { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}
.card h3 { margin-top: 0; }
.card a { border: none; }
.card .cat {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

footer {
  max-width: var(--maxw);
  margin: 64px auto 32px;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .wrap { padding: 22px 18px 48px; }
}
