/* =============================================
   PitchDeckify Blog - Shared Stylesheet
   Dark SaaS · Premium Typography · Responsive
   ============================================= */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'Breul Grotesk';
  src: url('../fonts/breul-grotesk-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  unicode-range: U+0020, U+0041-005A, U+0061-007A, U+00C0-00FF;
}
@font-face {
  font-family: 'Breul Grotesk';
  src: url('../fonts/breul-grotesk-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  unicode-range: U+0020, U+0041-005A, U+0061-007A, U+00C0-00FF;
}
@font-face {
  font-family: 'Breul Grotesk';
  src: url('../fonts/breul-grotesk-black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  unicode-range: U+0020, U+0041-005A, U+0061-007A, U+00C0-00FF;
}

:root {
  --bg:            #050508;
  --bg-2:          #0a0a14;
  --bg-card:       rgba(255,255,255,0.035);
  --bg-card-hover: rgba(255,255,255,0.065);
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(82, 69, 229, 0.4);

  --purple-300: #c7d2fe;
  --purple-400: #818cf8;
  --purple-500: #5245e5;
  --purple-600: #4338ca;
  --purple-700: #3730a3;

  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255,255,255,0.62);
  --text-muted:     rgba(255,255,255,0.38);

  --font-sans:    'Breul Grotesk', 'Inter', -apple-system, sans-serif;
  --font-display: 'Breul Grotesk', 'Outfit', 'Inter', sans-serif;
  --font-reading: 'Breul Grotesk', 'Inter', Georgia, serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --content-width: 760px;
  --wide-width:    1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #5245e5 0%, #783bec 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  color: #FFFFFF !important;
}
.btn--primary {
  background: linear-gradient(135deg, #5245e5 0%, #783bec 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(82, 69, 229, 0.35);
  padding: 13px 26px;
  font-size: 15px;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.5);
}
.btn--ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 11px 22px;
  font-size: 14px;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* ╔══════════════════════════════════════════╗
   ║  HEADER / NAV                            ║
   ╚══════════════════════════════════════════╝ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.logo__icon { display: flex; align-items: center; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.site-nav a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.site-nav a.active { color: var(--purple-300); }

/* ╔══════════════════════════════════════════╗
   ║  BLOG INDEX - Hero                       ║
   ╚══════════════════════════════════════════╝ */
.blog-hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(82, 69, 229, 0.18), transparent 70%);
  pointer-events: none;
}
.blog-hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5245e5;
  margin-bottom: 16px;
}
.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.blog-hero__desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ╔══════════════════════════════════════════╗
   ║  BLOG CARD GRID                          ║
   ╚══════════════════════════════════════════╝ */
.blog-grid-section { padding: 0 0 100px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.blog-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(82, 69, 229, 0.12);
}

.blog-card__thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
  overflow: hidden;
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5245e5;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.blog-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.blog-card__read-more {
  font-size: 13px;
  font-weight: 600;
  color: #5245e5;
  margin-top: 4px;
}

/* ╔══════════════════════════════════════════╗
   ║  ARTICLE PAGE - Layout                   ║
   ╚══════════════════════════════════════════╝ */
.article-header {
  padding: 72px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 350px;
  background: radial-gradient(ellipse, rgba(82, 69, 229, 0.15), transparent 70%);
  pointer-events: none;
}
.article-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.article-header .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.article-header .breadcrumb a:hover { color: var(--purple-300); }

.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5245e5;
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  max-width: 720px;
  margin: 0 auto 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.article-intro {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 660px;
  margin: 32px auto 0;
  text-align: left;
}

/* ── Article Body ── */
.article-body {
  padding: 0 0 80px;
}
.article-content {
  font-family: var(--font-reading);
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 52px 0 18px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 36px 0 12px;
}
.article-content p { margin-bottom: 22px; }
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.article-content li { margin-bottom: 10px; line-height: 1.75; }
.article-content strong { color: var(--text-primary); font-weight: 700; }
.article-content em { color: #5245e5; font-style: normal; font-weight: 600; }
.article-content a {
  color: #5245e5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.article-content a:hover { opacity: 0.8; }

/* Blockquote */
.article-content blockquote {
  border-left: 3px solid var(--purple-500);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(82, 69, 229, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Key Point Box */
.key-box {
  background: rgba(82, 69, 229, 0.08);
  border: 1px solid rgba(82, 69, 229, 0.22);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.key-box strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5245e5;
  margin-bottom: 8px;
}
.key-box p { margin: 0; color: var(--text-secondary); font-size: 16px; }

/* ── CTA Box ── */
.article-cta {
  background: linear-gradient(135deg, rgba(82, 69, 229, 0.15), rgba(82, 69, 229, 0.07));
  border: 1px solid rgba(82, 69, 229, 0.28);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  text-align: center;
  margin: 56px 0 0;
}
.article-cta__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5245e5;
  margin-bottom: 14px;
}
.article-cta__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.article-cta__desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.article-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Article Nav ── */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 80px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.article-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.article-nav a:hover { color: var(--purple-300); }

/* ╔══════════════════════════════════════════╗
   ║  FOOTER                                  ║
   ╚══════════════════════════════════════════╝ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 24px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.site-footer__links { display: flex; gap: 24px; }
.site-footer__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__links a:hover { color: var(--text-secondary); }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ╔══════════════════════════════════════════╗
   ║  RESPONSIVE                              ║
   ╚══════════════════════════════════════════╝ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .article-header { padding: 48px 0 32px; }
  .article-cta { padding: 32px 24px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .article-nav { flex-direction: column; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.5); }
