/* ============================================================
   SmartProcessFlow.com — Main Stylesheet
   Premium Dark Theme with Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

/* ========== CSS Variables ========== */
:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --primary-light: #8b85ff;
  --accent: #00d4aa;
  --accent-dark: #00b891;
  --bg-dark: #0d0d1a;
  --bg-card: #13132a;
  --bg-card2: #1a1a35;
  --bg-glass: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(108,99,255,0.4);
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #6060a0;
  --gradient-main: linear-gradient(135deg, #6c63ff 0%, #00d4aa 100%);
  --gradient-card: linear-gradient(145deg, #13132a 0%, #1a1a35 100%);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(108,99,255,0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --max-width: 1200px;
  --content-width: 800px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background grid pattern */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ========== Layout ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.content-container { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(13,13,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(13,13,26,0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--text-primary); }

.nav-cta {
  background: var(--gradient-main);
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 {
  background: var(--primary);
  top: -200px; left: -200px;
}

.hero-glow-2 {
  background: var(--accent);
  bottom: -200px; right: -200px;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-badge span { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 560px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 24px rgba(108,99,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(108,99,255,0.1);
  color: var(--text-primary);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary-light);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ========== Cards ========== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-card2);
  position: relative;
  overflow: hidden;
}

.card-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(0,212,170,0.1));
}

.card-body { padding: 24px; }

.card-category {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-primary);
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary-light); }

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-read-time { display: flex; align-items: center; gap: 4px; }

/* ========== Grid Layouts ========== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ========== Section Headers ========== */
.section-header {
  margin-bottom: 48px;
}

.section-header.centered { text-align: center; }

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; }

/* ========== Featured Article ========== */
.featured-article {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transition: var(--transition);
  margin-bottom: 24px;
}

.featured-article:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.featured-img {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,212,170,0.1));
  position: relative;
  overflow: hidden;
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 { font-size: 1.75rem; margin-bottom: 16px; }
.featured-content p { margin-bottom: 28px; }

/* ========== Category Pills ========== */
.categories {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.category-pill {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover, .category-pill.active {
  background: rgba(108,99,255,0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* ========== Article Page ========== */
.article-header {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-meta-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-body {
  padding: 0 0 80px;
}

/* Article Content Styles */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.article-content p { color: var(--text-secondary); margin-bottom: 1.2rem; }

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin: 16px 0 24px;
  color: var(--text-secondary);
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--text-primary); }

.article-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 32px 0;
  padding: 20px 28px;
  background: rgba(108,99,255,0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-content blockquote p { margin: 0; font-style: italic; }

/* Article Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.9rem;
}

.article-content th {
  background: var(--primary);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}

.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.article-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.article-content tr:hover td { background: rgba(108,99,255,0.05); }

/* Verdict Box */
.verdict-box {
  background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(0,212,170,0.1));
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}

.verdict-box h3 { color: var(--text-primary); margin-bottom: 12px; }
.verdict-box p { margin: 0; color: var(--text-secondary); }

/* Info Box */
.info-box {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(0,212,170,0.05);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.info-box .icon { font-size: 1.5rem; flex-shrink: 0; }
.info-box p { margin: 0; }

/* TOC */
.toc {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}

.toc-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc ol { padding-left: 20px; margin: 0; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text-secondary); font-size: 0.9rem; }
.toc a:hover { color: var(--primary-light); }

/* Disclosure */
.disclosure {
  background: rgba(255,193,7,0.08);
  border: 1px solid rgba(255,193,7,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Tool Cards (for "Best of" articles) */
.tool-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 24px 0;
  transition: var(--transition);
}

.tool-card:hover { border-color: var(--border-hover); }

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-best { background: rgba(0,212,170,0.15); color: var(--accent); border: 1px solid rgba(0,212,170,0.3); }
.badge-popular { background: rgba(108,99,255,0.15); color: var(--primary-light); border: 1px solid rgba(108,99,255,0.3); }
.badge-budget { background: rgba(255,193,7,0.1); color: #ffc107; border: 1px solid rgba(255,193,7,0.3); }

.tool-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tool-desc { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; }

.tool-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.pros h4 { color: #4caf50; font-size: 0.85rem; margin-bottom: 8px; }
.cons h4 { color: #f44336; font-size: 0.85rem; margin-bottom: 8px; }

.pros ul, .cons ul { padding-left: 16px; font-size: 0.85rem; color: var(--text-secondary); }
.pros li, .cons li { margin-bottom: 4px; }

/* Affiliate CTA */
.affiliate-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-main);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-top: 8px;
}

.affiliate-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: white;
  box-shadow: 0 6px 20px rgba(108,99,255,0.35);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  transition: var(--transition);
}

.faq-item.open { border-color: rgba(108,99,255,0.3); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  background: var(--bg-card2);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  user-select: none;
  transition: var(--transition);
}

.faq-question:hover { background: rgba(108,99,255,0.08); }

.faq-icon {
  width: 24px; height: 24px;
  background: rgba(108,99,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--primary-light);
  transition: var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 16px 24px;
  background: rgba(108,99,255,0.03);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-answer { display: block; }

/* ========== Sidebar ========== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.sidebar { position: sticky; top: 100px; }

.sidebar-widget {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-links { list-style: none; }
.sidebar-links li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sidebar-links li:last-child { border: none; }
.sidebar-links a { color: var(--text-secondary); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.sidebar-links a:hover { color: var(--primary-light); }

.newsletter-widget {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(0,212,170,0.1));
  border: 1px solid rgba(108,99,255,0.3);
}

.newsletter-widget input {
  width: 100%;
  padding: 10px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.newsletter-widget input::placeholder { color: var(--text-muted); }
.newsletter-widget input:focus { outline: none; border-color: var(--primary); }

/* ========== AdSense placeholders ========== */
.ad-unit {
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 24px 0;
  text-align: center;
}

.ad-leaderboard { min-height: 90px; }
.ad-rectangle { min-height: 250px; }

/* ========== Footer ========== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p { font-size: 0.9rem; margin-top: 12px; }

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== Search Bar ========== */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  max-width: 480px;
  transition: var(--transition);
}

.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.1); }

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { outline: none; }

.search-bar button {
  padding: 12px 20px;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.search-bar button:hover { background: var(--primary-dark); }

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { color: var(--text-secondary); }

/* ========== Scroll to Top ========== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 999;
  border: none;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(108,99,255,0.4);
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ========== Progress Bar ========== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-main);
  z-index: 1001;
  transition: width 0.1s;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-img { min-height: 220px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13,13,26,0.98);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    backdrop-filter: blur(20px);
  }
  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .tool-pros-cons { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .content-container { padding: 0 16px; }
  .section { padding: 60px 0; }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.6s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Intersection observer animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Highlight / Mark ========== */
mark {
  background: linear-gradient(120deg, rgba(108,99,255,0.3), rgba(0,212,170,0.3));
  color: var(--text-primary);
  padding: 0 4px;
  border-radius: 3px;
}

/* ========== Code blocks ========== */
code {
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--primary-light);
  font-family: 'Monaco', monospace;
}

/* ========== Rating Stars ========== */
.stars { color: #ffc107; letter-spacing: 2px; }

/* ========== Page Header (Blog/About pages) ========== */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}

.page-header h1 { margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
