/* Automatizatte Blog — Brand Kit consistente */
/* Palette: #0B0B12 (bg) / #161B22 (card) / #FFFFFF (text) / #A0A0A8 (gray) */
/* Gradient: #9B7CFF → #5A7CFF → #31C7A5 */

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

:root {
  --bg: #0B0B12;
  --card: #161B22;
  --text: #FFFFFF;
  --gray: #A0A0A8;
  --gradient: linear-gradient(135deg, #9B7CFF 0%, #5A7CFF 50%, #31C7A5 100%);
  --cyan: #3BB7D1;
  --pink: #D16477;
  --green: #40B883;
  --blue: #5A7CFF;
  --max-width: 760px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: var(--blue);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 48px;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border-bottom: none;
}

.site-logo:hover {
  border-bottom: none;
}

.site-nav a {
  color: var(--gray);
  font-size: 14px;
  margin-left: 24px;
}

/* Hero / Index */
.hero {
  padding: 64px 0 32px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--gray);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto;
}

/* Post list */
.posts-list {
  list-style: none;
  margin: 48px 0;
}

.posts-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0;
  transition: transform 0.2s;
}

.posts-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.posts-list a {
  display: block;
  color: var(--text);
  border-bottom: none;
}

.posts-list a:hover {
  border-bottom: none;
}

.posts-list a:hover h2 {
  color: var(--blue);
}

.posts-list h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.posts-list .meta {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 12px;
}

.posts-list .excerpt {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}

.tag {
  display: inline-block;
  background: var(--card);
  color: var(--gray);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-right: 8px;
  margin-top: 8px;
  border-bottom: none;
}

/* Article */
article {
  padding: 0 0 80px;
}

article header {
  margin-bottom: 48px;
}

article header h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

article header .meta {
  color: var(--gray);
  font-size: 14px;
}

article img.header-image {
  width: 100%;
  border-radius: 12px;
  margin: 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

article h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  color: var(--text);
}

article h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}

article p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
}

article strong {
  color: var(--text);
  font-weight: 700;
}

article ul, article ol {
  margin: 16px 0 24px 24px;
  color: rgba(255, 255, 255, 0.92);
}

article li {
  margin-bottom: 8px;
}

article blockquote {
  border-left: 3px solid var(--blue);
  padding: 8px 0 8px 24px;
  margin: 24px 0;
  color: var(--gray);
  font-style: italic;
}

article code {
  background: var(--card);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.9em;
}

article hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 48px 0;
}

/* CTA box */
.cta-box {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.cta-box h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
}

.cta-box p {
  color: var(--gray);
  margin-bottom: 24px;
}

.cta-button {
  display: inline-block;
  background: var(--gradient);
  color: var(--bg) !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  border-bottom: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(91, 124, 255, 0.3);
  border-bottom: none;
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 80px;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
}

.site-footer a {
  color: var(--gray);
}

.site-footer p {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  article header h1 { font-size: 32px; }
  article h2 { font-size: 24px; }
  .container { padding: 0 16px; }
}
