/* The AI Business Blog - lassany.com/blog */
/* Author: Adam Haywood | Inter font | #2563eb blue */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --black: #111827;
  --grey: #6b7280;
  --light: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
  color: var(--black);
  background: #f0f9ff;
}

/* ---- HEADER ---- */
.blog-header {
  background: var(--blue);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.blog-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-header .logo {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.blog-header nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.blog-header nav a:hover { color: white; }
.blog-header nav a.cta-nav {
  background: white;
  color: var(--blue);
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
}
.blog-header nav a.cta-nav:hover {
  background: #e0eaff;
}

/* ---- HERO ---- */
.blog-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  color: white;
  text-align: center;
  padding: 64px 20px 56px;
}
.blog-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}
.blog-hero p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 28px;
  opacity: 0.92;
}
.hero-cta {
  display: inline-block;
  background: white;
  color: var(--blue);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ---- ARTICLE HERO ---- */
.article-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 52px 20px 44px;
}
.article-hero .inner {
  max-width: 800px;
  margin: 0 auto;
}
.article-hero .category-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.article-hero .article-meta {
  font-size: 0.88rem;
  opacity: 0.82;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.article-hero .article-meta i { margin-right: 4px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--grey);
}
.breadcrumb .inner {
  max-width: 800px;
  margin: 0 auto;
}
.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ---- MAIN CONTAINER ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ---- CATEGORY HEADERS ---- */
.category-header {
  border-left: 4px solid var(--blue);
  padding-left: 14px;
  margin: 48px 0 24px;
}
.category-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}
.category-header p {
  color: var(--grey);
  font-size: 0.92rem;
}

/* ---- ARTICLE CARDS GRID ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card .card-colour {
  height: 6px;
  background: var(--blue);
}
.article-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card .card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
  margin-bottom: 8px;
}
.article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--black);
}
.article-card p {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.55;
  flex: 1;
}
.article-card .card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- ARTICLE CONTENT ---- */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--black);
  margin: 36px 0 14px;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin: 28px 0 10px;
}
.article-body p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #1f2937;
  line-height: 1.8;
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 500;
}
.article-body a:hover { color: var(--blue-dark); }

/* ---- PULL QUOTE ---- */
.pull-quote {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
}
.pull-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: #1e3a8a;
  margin: 0;
  line-height: 1.65;
}
.pull-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--grey);
  font-style: normal;
  font-weight: 500;
}

/* ---- STATS BOX ---- */
.stats-box {
  background: var(--blue);
  color: white;
  border-radius: 10px;
  padding: 28px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}
.stats-box .stat h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.stats-box .stat p {
  font-size: 0.82rem;
  opacity: 0.88;
  margin: 0;
  color: white;
}

/* ---- INCOME TABLE ---- */
.income-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.income-table thead {
  background: var(--blue);
  color: white;
}
.income-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.income-table tbody tr:nth-child(even) {
  background: var(--blue-light);
}
.income-table tbody tr:nth-child(odd) {
  background: white;
}
.income-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.income-table tbody td:last-child {
  font-weight: 600;
  color: var(--blue);
}

/* ---- CTA BOX ---- */
.cta-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  border-radius: 12px;
  padding: 36px 32px;
  margin: 40px 0;
  text-align: center;
}
.cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}
.cta-box p {
  font-size: 0.98rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}
.cta-box a {
  display: inline-block;
  background: white;
  color: var(--blue);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.97rem;
  transition: transform 0.2s;
  margin: 4px;
}
.cta-box a:hover {
  transform: translateY(-2px);
  color: var(--blue-dark);
}

/* ---- FAQ ---- */
.faq-section {
  margin: 40px 0;
}
.faq-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: white;
}
.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: white;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--blue-light); }
.faq-toggle {
  font-size: 1.3rem;
  color: var(--blue);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  background: var(--light);
}
.faq-answer p { margin: 12px 0 0; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ---- RELATED ---- */
.related-section {
  margin: 48px 0 20px;
}
.related-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.related-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.related-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--black);
}
.related-card span {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 500;
}

/* ---- FOOTER ---- */
.blog-footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 36px 20px;
  font-size: 0.85rem;
}
.blog-footer a {
  color: #93c5fd;
  text-decoration: none;
}
.blog-footer a:hover { text-decoration: underline; color: white; }
.blog-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ---- AUTHOR BOX ---- */
.author-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  margin: 36px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
}
.author-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.author-info p {
  font-size: 0.85rem;
  color: var(--grey);
  margin: 0;
  line-height: 1.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .blog-hero h1 { font-size: 1.7rem; }
  .article-hero h1 { font-size: 1.45rem; }
  .stats-box { grid-template-columns: repeat(2, 1fr); }
  .blog-header nav { gap: 10px; }
  .author-box { flex-direction: column; }
}

/* ---- READING PROGRESS BAR ---- */
#reading-progress { position:fixed; top:0; left:0; width:100%; height:3px; background:rgba(255,255,255,0.2); z-index:9999; }
#reading-progress-bar { height:100%; background:#ffd700; width:0%; transition:width 0.1s linear; }

/* ---- BACK TO TOP ---- */
#back-to-top { position:fixed; bottom:2rem; right:2rem; background:var(--blue); color:white; border:none; width:44px; height:44px; border-radius:50%; cursor:pointer; font-size:1rem; box-shadow:var(--shadow-lg); opacity:0; transform:translateY(20px); transition:all 0.3s ease; z-index:1000; }
#back-to-top.visible { opacity:1; transform:translateY(0); }
#back-to-top:hover { background:var(--blue-dark); }

/* ---- SOCIAL SHARE ---- */
.social-share { display:flex; align-items:center; gap:0.75rem; padding:1.5rem 2rem; background:var(--light); border-top:1px solid var(--border); border-bottom:1px solid var(--border); flex-wrap:wrap; margin:2rem 0; }
.share-label { font-weight:600; font-size:0.9rem; color:var(--grey); margin-right:0.5rem; }
.share-btn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; text-decoration:none; font-size:0.95rem; transition:all 0.2s ease; }
.share-twitter { background:#000; color:white; }
.share-facebook { background:#1877f2; color:white; }
.share-linkedin { background:#0a66c2; color:white; }
.share-whatsapp { background:#25d366; color:white; }
.share-copy { background:var(--blue); color:white; }
.share-btn:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
#copy-toast { position:fixed; bottom:5rem; left:50%; transform:translateX(-50%) translateY(20px); background:#111; color:white; padding:0.75rem 1.5rem; border-radius:50px; font-size:0.9rem; opacity:0; transition:all 0.3s ease; z-index:9999; pointer-events:none; }
#copy-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ---- PROMO BANNER ---- */
.promo-banner { background:#000; color:white; padding:2.5rem 2rem; margin:2rem 0; border-radius:12px; border:2px solid #c9a84c; text-align:center; position:relative; overflow:hidden; }
.promo-banner::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,#c9a84c,#ffd700,#c9a84c); }
.promo-badge { display:inline-block; background:#c9a84c; color:#000; font-size:0.7rem; font-weight:700; letter-spacing:0.1em; padding:0.25rem 0.75rem; border-radius:50px; margin-bottom:1rem; text-transform:uppercase; }
.promo-banner h3 { font-size:1.6rem; font-weight:700; color:#fff; margin-bottom:0.75rem; line-height:1.3; }
.promo-banner p { color:#ccc; font-size:1rem; margin-bottom:1.5rem; max-width:600px; margin-left:auto; margin-right:auto; }
.promo-btn { display:inline-block; background:#c9a84c; color:#000; padding:0.875rem 2.5rem; border-radius:50px; text-decoration:none; font-weight:700; font-size:1rem; transition:all 0.3s ease; border:2px solid #c9a84c; }
.promo-btn:hover { background:#ffd700; border-color:#ffd700; transform:translateY(-2px); box-shadow:0 8px 20px rgba(201,168,76,0.4); }
