/* describe.me — shared blog styles.
   Linked from blog/index.html and every blog post.
   Per-post overrides (page-specific callouts, tables, layouts) stay inline
   in the page's own <style> block, which comes after this file in source
   order and therefore wins specificity ties. */

:root {
  --primary-gradient: linear-gradient(135deg, #ff0066 0%, #6b46c1 100%);
  --accent-color: #ff0066;
  --purple: #6b46c1;
  --text-color: #333;
  --text-light: #666;
  --light-bg: #f8f9fa;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text-color);
}

/* Logo / brand */
.logo-text {
  font-family: "Gugi", sans-serif;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo-img {
  height: 1.5rem;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.logo-img.logo-img-sm {
  height: 1.05rem;
}

/* Navbar */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Blog post header (breadcrumb + title block above article) */
.blog-header {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 102, 0.05) 0%,
    rgba(107, 70, 193, 0.05) 100%
  );
  padding: 2rem 0;
}

.blog-content {
  max-width: 800px;
}

.blog-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.blog-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Inline emphasis: stat number in a sentence */
.highlight-stat {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Quote / pull-out callout */
.quote-callout {
  background: var(--light-bg);
  border-left: 4px solid #ff0066;
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
}

/* Stat tile (row of 2–4 in body) */
.key-stat {
  background: white;
  border: 2px solid rgba(107, 70, 193, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

/* Yellow warning callout (used across crisis-themed posts) */
.warning-callout {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 5px;
}

/* Further-reading block at end of article */
.further-reading {
  background: var(--light-bg);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}

.further-reading h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.further-reading ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.further-reading li {
  margin-bottom: 0.5rem;
}

/* Sticky social-share rail */
.social-share {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.share-btn:hover {
  transform: scale(1.1);
  color: white;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.facebook { background: #1877f2; }

/* Banner image (above article body) */
.banner-section {
  margin-bottom: 2rem;
}

.banner-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* CTA section (gradient band, bottom of post). Default .cta-button is the
   gradient-pill used on light backgrounds (e.g. inside .newsletter-signup).
   When .cta-button sits inside .cta-section it inverts to white-on-gradient. */
.cta-section {
  background: var(--primary-gradient);
  color: white;
  padding: 3rem 0;
  margin-top: 3rem;
}

.cta-button {
  background: var(--primary-gradient);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
  border: none;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 102, 0.3);
}

.cta-section .cta-button {
  background: white;
  color: #6b46c1;
  box-shadow: none;
}

.cta-section .cta-button:hover {
  color: #6b46c1;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-section .cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  margin-left: 0.75rem;
}

.cta-section .cta-button.secondary:hover {
  background: white;
  color: #6b46c1;
}

/* Newsletter signup (light-bg band, typically between CTA and footer) */
.newsletter-signup {
  background: var(--light-bg);
  padding: 3rem 0;
  margin-top: 0;
}

.newsletter-signup .form-control {
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
}

/* Force the gradient-pill style on the Subscribe button inside the newsletter
   signup. Higher specificity than the unscoped .cta-button rules that several
   older blog posts still carry inline (where .cta-button is the inverted
   white-on-gradient variant used inside their .cta-section). */
.newsletter-signup .cta-button {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.newsletter-signup .cta-button:hover {
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 102, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .social-share {
    position: relative;
    flex-direction: row;
    justify-content: center;
    margin: 2rem 0;
  }

  .banner-image {
    max-height: 250px;
    border-radius: 8px;
  }

  .cta-section .cta-button.secondary {
    margin-left: 0;
    margin-top: 0.75rem;
  }
}
