/* ============================================================
   CSSPlayground Blog & Tutorial System Stylesheet
   Matches CSSPlayground theme tokens and design language
   ============================================================ */

/* --- Centered Breadcrumbs on Blog Archive & Article Pages --- */
.site-breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto 20px;
  width: 100%;
}

/* --- Blog Archive Hero & Search Section --- */
.blog-hero {
  text-align: center;
  padding: 40px 16px 28px;
  max-width: 860px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 12px;
}

.blog-hero .gradient-text {
  background: linear-gradient(135deg, #6c63ff 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 28px;
}

/* --- Search & Filter Bar --- */
.blog-controls {
  max-width: 960px;
  margin: 0 auto 36px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-search-box {
  position: relative;
  width: 100%;
}

.blog-search-box input {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
}

.blog-search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
  background: var(--surface2);
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.blog-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.blog-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.blog-pill:hover {
  border-color: var(--accent2);
  color: var(--text);
  background: var(--surface2);
}

.blog-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.blog-pill .pill-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 9999px;
  background: var(--surface2);
  color: var(--muted);
}

.blog-pill.active .pill-count {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* --- Blog Post Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 16px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.blog-card-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.blog-badge-demo {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.blog-cat-badge, .blog-card-category {
  color: var(--accent2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h2,
.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-card h2 a,
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--accent2);
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-qa-tags {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-qa-item {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-qa-item span.qa-q {
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
}

.blog-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.read-guide-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-guide-link:hover {
  color: var(--accent2);
}

.open-tool-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
}

.open-tool-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   Individual Article Template Styles
   ============================================================ */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.article-header {
  margin-bottom: 32px;
}

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent2);
  margin-bottom: 10px;
}

.article-header h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Quick Answer / Featured Snippet Box --- */
.quick-answer-box {
  background: linear-gradient(145deg, rgba(108, 99, 255, 0.08) 0%, rgba(52, 211, 153, 0.05) 100%);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0 36px;
}

.quick-answer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent2);
  margin-bottom: 8px;
}

.quick-answer-box p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
}

.quick-answer-box p:last-child {
  margin-bottom: 0;
}

/* --- Interactive Live Demo Box --- */
.demo-sandbox-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0 40px;
}

.demo-sandbox-header {
  padding: 12px 18px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-sandbox-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-sandbox-stage {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090d;
}

.demo-controls-bar {
  padding: 12px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
}

.demo-control-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-control-item label {
  color: var(--muted);
  font-size: 12px;
}

.demo-control-item input[type="range"] {
  accent-color: var(--accent);
  width: 100px;
  cursor: pointer;
}

/* --- Code Snippet Containers with Copy Button --- */
.code-block {
  margin: 24px 0 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0b0b10;
  overflow: hidden;
}

.code-header {
  padding: 8px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.code-copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-copy-btn:hover {
  background: var(--surface3);
  color: var(--text);
  border-color: var(--accent);
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
}

/* --- Article Typography & Prose --- */
.article-prose {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.article-prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
  letter-spacing: -0.3px;
}

.article-prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 26px 0 10px;
}

.article-prose p {
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.75;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 20px 24px;
}

.article-prose li {
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.7;
}

.article-prose a:not(.cta-primary-btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.article-prose a:not(.cta-primary-btn):hover {
  color: var(--accent2);
}

.article-prose code:not(pre code),
.quick-answer-box code:not(pre code) {
  background: var(--surface2);
  color: var(--accent2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Consolas', 'Courier New', monospace;
  border: 1px solid var(--border);
}

/* --- Tool Deep-Link CTA Banner --- */
.tool-cta-banner {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
  border: 1px solid rgba(108, 99, 255, 0.4);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-cta-banner h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.tool-cta-banner p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.cta-primary-btn,
.article-prose a.cta-primary-btn,
.tool-cta-banner a.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.35);
  transition: all 0.2s ease;
}

.cta-primary-btn span,
.article-prose a.cta-primary-btn span,
.tool-cta-banner a.cta-primary-btn span {
  color: #ffffff !important;
  text-decoration: none !important;
}

.cta-primary-btn:hover,
.article-prose a.cta-primary-btn:hover,
.tool-cta-banner a.cta-primary-btn:hover {
  background: #5a51e6;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.5);
}

.cta-primary-btn:hover span,
.article-prose a.cta-primary-btn:hover span,
.tool-cta-banner a.cta-primary-btn:hover span {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* --- SERP People Also Ask (FAQ) Section --- */
.serp-faq-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.serp-faq-header {
  margin-bottom: 20px;
}

.serp-faq-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.serp-faq-header p {
  font-size: 13px;
  color: var(--muted);
}

.serp-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.serp-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.serp-item[open] {
  border-color: var(--accent);
}

.serp-question {
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.serp-question::-webkit-details-marker {
  display: none;
}

.serp-question::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.serp-item[open] .serp-question::after {
  content: "−";
  color: var(--accent2);
}

.serp-answer {
  padding: 0 20px 18px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.serp-answer p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.serp-answer p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Light Theme Adjustments
   ============================================================ */
html[data-theme="light"] .blog-search-box input,
html.light-theme .blog-search-box input {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="light"] .blog-search-box input:focus,
html.light-theme .blog-search-box input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

html[data-theme="light"] .blog-pill,
html.light-theme .blog-pill {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-secondary);
}

html[data-theme="light"] .blog-pill:hover,
html.light-theme .blog-pill:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--accent);
}

html[data-theme="light"] .blog-pill.active,
html.light-theme .blog-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

html[data-theme="light"] .blog-card,
html.light-theme .blog-card {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .blog-card:hover,
html.light-theme .blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
}

html[data-theme="light"] .blog-card-thumb,
html.light-theme .blog-card-thumb {
  background: #f1f5f9;
}

html[data-theme="light"] .blog-card-excerpt,
html.light-theme .blog-card-excerpt {
  color: var(--text-secondary);
}

html[data-theme="light"] .blog-qa-item,
html.light-theme .blog-qa-item {
  color: var(--text-secondary);
}

html[data-theme="light"] .read-guide-link,
html.light-theme .read-guide-link {
  color: var(--text);
}

html[data-theme="light"] .open-tool-btn,
html.light-theme .open-tool-btn {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
  color: var(--accent);
}

html[data-theme="light"] .open-tool-btn:hover,
html.light-theme .open-tool-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

html[data-theme="light"] .quick-answer-box,
html.light-theme .quick-answer-box {
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.06) 0%, rgba(16, 185, 129, 0.04) 100%);
  border-color: rgba(79, 70, 229, 0.28);
}

html[data-theme="light"] .quick-answer-box p,
html.light-theme .quick-answer-box p {
  color: var(--text);
}

html[data-theme="light"] .demo-sandbox-card,
html.light-theme .demo-sandbox-card {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .demo-sandbox-header,
html.light-theme .demo-sandbox-header {
  background: var(--surface2);
  border-color: var(--border);
}

html[data-theme="light"] .demo-controls-bar,
html.light-theme .demo-controls-bar {
  background: #ffffff;
  border-color: var(--border);
}

html[data-theme="light"] .addon-feature-card,
html.light-theme .addon-feature-card {
  background: #ffffff !important;
  border-color: var(--border) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .serp-item,
html.light-theme .serp-item {
  background: #ffffff;
  border-color: var(--border);
}

html[data-theme="light"] .serp-question,
html.light-theme .serp-question {
  color: var(--text);
}

html[data-theme="light"] .serp-answer,
html.light-theme .serp-answer {
  color: var(--text-secondary);
  border-color: var(--border);
}

html[data-theme="light"] .serp-answer p,
html.light-theme .serp-answer p {
  color: var(--text-secondary);
}

html[data-theme="light"] .tool-cta-banner,
html.light-theme .tool-cta-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(147, 51, 234, 0.06) 100%);
  border-color: rgba(79, 70, 229, 0.25);
}

html[data-theme="light"] .tool-cta-banner h3,
html.light-theme .tool-cta-banner h3 {
  color: var(--text);
}

html[data-theme="light"] .tool-cta-banner p,
html.light-theme .tool-cta-banner p {
  color: var(--text-secondary);
}

html[data-theme="light"] .cta-primary-btn,
html[data-theme="light"] .article-prose a.cta-primary-btn,
html[data-theme="light"] .tool-cta-banner a.cta-primary-btn,
html.light-theme .cta-primary-btn,
html.light-theme .article-prose a.cta-primary-btn,
html.light-theme .tool-cta-banner a.cta-primary-btn {
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  text-decoration: none !important;
}

html[data-theme="light"] .cta-primary-btn span,
html[data-theme="light"] .article-prose a.cta-primary-btn span,
html[data-theme="light"] .tool-cta-banner a.cta-primary-btn span,
html.light-theme .cta-primary-btn span,
html.light-theme .article-prose a.cta-primary-btn span,
html.light-theme .tool-cta-banner a.cta-primary-btn span {
  color: #ffffff !important;
  text-decoration: none !important;
}

html[data-theme="light"] .cta-primary-btn:hover,
html[data-theme="light"] .article-prose a.cta-primary-btn:hover,
html[data-theme="light"] .tool-cta-banner a.cta-primary-btn:hover,
html.light-theme .cta-primary-btn:hover,
html.light-theme .article-prose a.cta-primary-btn:hover,
html.light-theme .tool-cta-banner a.cta-primary-btn:hover {
  background: #4338ca;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
  text-decoration: none !important;
}

html[data-theme="light"] .cta-primary-btn:hover span,
html[data-theme="light"] .article-prose a.cta-primary-btn:hover span,
html[data-theme="light"] .tool-cta-banner a.cta-primary-btn:hover span,
html.light-theme .cta-primary-btn:hover span,
html.light-theme .article-prose a.cta-primary-btn:hover span,
html.light-theme .tool-cta-banner a.cta-primary-btn:hover span {
  color: #ffffff !important;
  text-decoration: none !important;
}

html[data-theme="light"] .code-block,
html.light-theme .code-block {
  background: #181822;
  border-color: #282c3f;
}

html[data-theme="light"] .code-header,
html.light-theme .code-header {
  background: #14141d;
  border-color: #282c3f;
}


/* ======================================================== */
/* BACKGROUNDS & CANVAS BATCH 1 ANIMATIONS                  */
/* ======================================================== */
@keyframes thumbFluidSwirl1 {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(18px, -14px); }
  100% { transform: scale(0.9) translate(-12px, 16px); }
}
@keyframes thumbFluidSwirl2 {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.15) translate(-20px, 12px); }
  100% { transform: scale(1.05) translate(14px, -18px); }
}
@keyframes thumbFluidSwirl3 {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0.9; }
  100% { transform: scale(0.95); opacity: 0.6; }
}
@keyframes thumbSmokeRise {
  0% { transform: translateY(12px) scale(0.7); opacity: 0.8; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-24px) scale(1.4); opacity: 0; }
}
@keyframes thumbFboProgress {
  0% { width: 25%; }
  50% { width: 95%; }
  100% { width: 25%; }
}
@keyframes thumbMatrixDrop {
  0% { transform: translateY(-16px); opacity: 0.3; }
  50% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0.3; }
}
@keyframes thumbMatrixRadar {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes thumbCurlSpin1 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes thumbCurlSpin2 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
@keyframes thumbMouseWell {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0.95; }
}
@keyframes thumbVoronoiPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.3); }
}
@keyframes thumbSeedInsert {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
@keyframes thumbPolyRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes thumbSynthBeat {
  0% { height: 10px; }
  100% { height: 28px; }
}
@keyframes thumbTriGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}
@keyframes thumbTouchRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes thumbRaysRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes thumbLightFollow {
  0% { transform: translate(-30px, 0); }
  50% { transform: translate(30px, 10px); }
  100% { transform: translate(-30px, 0); }
}


/* --- Batch 2 Background & Canvas Keyframes --- */
@keyframes thumbContourPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.18); opacity: 0.95; }
}
@keyframes thumbContourWave {
  0% { transform: scaleX(0.8); }
  100% { transform: scaleX(1.15); }
}
@keyframes thumbProbeRadar {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes thumbOceanSwell {
  0% { transform: translateY(6px); }
  100% { transform: translateY(-6px); }
}
@keyframes thumbOceanSparkle {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}
@keyframes thumbWakeExpand {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes thumbConfettiFlip {
  0% { transform: translateY(-10px) rotate(0deg) scaleX(1); }
  50% { transform: translateY(10px) rotate(180deg) scaleX(-1); }
  100% { transform: translateY(-10px) rotate(360deg) scaleX(1); }
}
@keyframes thumbPoolFill {
  0% { width: 40%; }
  100% { width: 95%; }
}
@keyframes thumbCannonBurst {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes thumbBokehBreathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.22); filter: brightness(1.35); }
}
@keyframes thumbFocusShift {
  0%, 100% { transform: scale(0.8); filter: blur(2px); }
  50% { transform: scale(1.25); filter: blur(0px); }
}
@keyframes thumbChromaFringe {
  0% { transform: translateX(-3px); }
  100% { transform: translateX(3px); }
}
@keyframes thumbHexGlow {
  0% { border-color: rgba(0, 255, 204, 0.4); }
  100% { border-color: rgba(0, 255, 204, 1); box-shadow: 0 0 16px rgba(0, 255, 204, 0.6); }
}
@keyframes thumbPacketDart {
  0% { transform: translate(-25px, -15px); }
  50% { transform: translate(25px, -15px); }
  100% { transform: translate(0, 25px); }
}
@keyframes thumbHexShockwave {
  0% { transform: scale(0.6) rotate(30deg); opacity: 1; }
  100% { transform: scale(1.8) rotate(30deg); opacity: 0; }
}
@keyframes thumbAudioBar {
  0% { height: 15px; }
  100% { height: 75px; }
}
@keyframes thumbRibbonFloat {
  0% { transform: scaleY(0.7); }
  100% { transform: scaleY(1.3); }
}
@keyframes thumbAudioGradient {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes thumbRadarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes thumbBlipFade {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}


/* --- Widget Studio Keyframe Animations --- */
@keyframes thumbFabPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes thumbFabBloom {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  100% { transform: translate(-10px, -10px) scale(1); opacity: 1; }
}
@keyframes thumbSpringSlide {
  0% { left: 0; }
  100% { left: calc(100% - 16px); }
}
@keyframes thumbBadgeGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(99,102,241,0.3); }
  50% { box-shadow: 0 0 14px rgba(99,102,241,0.8); }
}
@keyframes thumbPollGrow {
  0% { width: 25%; }
  100% { width: 85%; }
}
@keyframes thumbFlipClock {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(180deg); }
}
@keyframes thumbRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes thumbScratchFade {
  0% { opacity: 1; }
  100% { opacity: 0.2; }
}
@keyframes thumbShimmerSlide {
  0% { background-position: -80px 0; }
  100% { background-position: 80px 0; }
}
@keyframes thumbPricePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes thumbSnapSwipe {
  0% { transform: translateX(-15px); }
  100% { transform: translateX(15px); }
}
@keyframes thumbGridGrow {
  0% { width: 20%; }
  100% { width: 90%; }
}
@keyframes thumbCookieWiggle {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
@keyframes thumbVinylSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes thumbEqBar {
  0% { height: 20px; }
  100% { height: 80px; }
}
@keyframes thumbEqPulse {
  0% { height: 15px; }
  100% { height: 70px; }
}
@keyframes thumbPeakDrop {
  0% { transform: translateY(-30px); opacity: 1; }
  80% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes thumbEmojiBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes thumbBeaconPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes thumbFlyoutSlide {
  0% { transform: translateX(20px); opacity: 0.3; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes thumbProgressSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================
   Personal Touch: Chaam's Pro Tip & Author Sign-off Card
   ============================================================ */
.personal-callout {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.personal-callout-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
}

.personal-callout-content {
  flex: 1;
}

.personal-callout-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent2);
  margin-bottom: 6px;
}

.personal-callout p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}

html[data-theme="light"] .personal-callout,
html.light-theme .personal-callout {
  background: #f8fafc;
  border-color: rgba(79, 70, 229, 0.25);
  border-left-color: var(--accent);
}


