/* ============================================
   Tech & SaaS Stack — Professional Blog Theme
   Inspired by: WPBeginner, WPKube, Cloudwards
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.7;
  font-size: 17px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin: 20px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; color: var(--border); }

/* Hero */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}
.hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Affiliate Disclosure Bar */
.disclosure-bar {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: #92400e;
  margin: 16px 0 24px;
  text-align: center;
}

/* Post Header */
.post-header {
  margin-bottom: 32px;
}
.post-header h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Author Box */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 32px 0;
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.author-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Post Content */
.post-content {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.post-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.post-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.post-content h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.post-content p {
  margin-bottom: 16px;
}
.post-content ul, .post-content ol {
  margin: 0 0 16px 24px;
}
.post-content li { margin-bottom: 6px; }
.post-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.post-content a:hover { text-decoration: underline; }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
}
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Comparison Tables */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comparison-table thead {
  background: var(--primary);
  color: #fff;
}
.comparison-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.comparison-table tbody tr:hover {
  background: var(--bg-alt);
}
.comparison-table .check { color: var(--success); font-weight: bold; }
.comparison-table .cross { color: var(--danger); }
.comparison-table .cta-cell {
  text-align: center;
}

/* CTA Buttons */
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.cta-btn.accent {
  background: var(--accent);
  color: #1e293b !important;
}
.cta-btn.accent:hover {
  background: #d97706;
}
.cta-wrapper {
  text-align: center;
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cta-wrapper p {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Pros & Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.pros, .cons {
  padding: 20px;
  border-radius: var(--radius);
}
.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons { background: #fef2f2; border: 1px solid #fecaca; }
.pros h4 { color: #166534; margin-bottom: 8px; }
.cons h4 { color: #991b1b; margin-bottom: 8px; }
.pros ul, .cons ul { margin-left: 16px; }
.pros li { margin-bottom: 4px; color: #166534; }
.cons li { margin-bottom: 4px; color: #991b1b; }

/* Quick Verdict Box */
.verdict-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.verdict-box h3 {
  color: var(--primary-dark);
  margin-top: 0 !important;
  margin-bottom: 8px;
}
.verdict-box p {
  color: #1e40af;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  padding: 14px 16px;
  background: var(--bg);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 0 16px 14px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Post Cards (Homepage) */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.post-card h2 a:hover { color: var(--primary); }
.post-card .post-meta { margin-bottom: 8px; }
.post-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* Featured Post */
.featured-post {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 32px;
}
.featured-post h2 a { color: #fff; }
.featured-post .post-meta { color: rgba(255,255,255,.7); }
.featured-post p { color: rgba(255,255,255,.85); }
.featured-post .read-more { color: var(--accent); }

/* Sidebar / Category Filter */
.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.category-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .2s;
}
.category-tag:hover, .category-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 48px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.footer a { color: var(--primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .post-content { padding: 20px; }
  .pros-cons { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .post-header h1 { font-size: 24px; }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}

/* Scroll Top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.scroll-top.visible { display: flex; }

/* Table of Contents */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.toc h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.toc ul {
  list-style: none;
  margin: 0;
}
.toc li {
  margin-bottom: 4px;
  font-size: 14px;
}
.toc a {
  color: var(--primary);
  text-decoration: none;
}
.toc a:hover { text-decoration: underline; }
.toc .toc-h2 { padding-left: 0; font-weight: 500; }
.toc .toc-h3 { padding-left: 16px; }

/* Email Capture */
.email-capture {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}
.email-capture-inner { max-width: 440px; margin: 0 auto; }
.email-capture h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.email-capture p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.email-form { display: flex; gap: 8px; }
.email-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.email-input:focus { border-color: var(--primary); }
.email-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.email-btn:hover { background: var(--primary-dark); }
.email-note { font-size: 12px; color: var(--text-muted); margin-top: 8px !important; }

/* Coupon / Deals Page */
.deal-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.deal-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.deal-card h3 { font-size: 20px; margin: 0 0 8px; }
.deal-card h3 a { color: var(--primary); text-decoration: none; }
.deal-card h3 a:hover { text-decoration: underline; }
.deal-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.deal-discount {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.deal-expired {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.deal-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  transition: background .2s;
}
.deal-btn:hover { background: var(--primary-dark); }
.hero-deals {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.hero-deals h2 { font-size: 22px; margin-bottom: 8px; }
.hero-deals p { font-size: 15px; color: #92400e; }

