/* Professional design for soloprai.com */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --purple-dark: #5B21B6;
  --purple-bg: #F5F3FF;
  --purple-glow: rgba(124, 58, 237, 0.15);
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-50: #F1F5F9;
  --gray-100: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.05);
  --bg: var(--off-white);
  --bg-card: var(--white);
  --text: var(--gray-800);
  --text-muted: var(--gray-500);
  --border: var(--gray-100);
  --hero-from: var(--gray-900);
  --hero-to: #1E1B4B;
  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #0F0F1A;
  --bg-card: #1A1A2E;
  --text: #E8E8F0;
  --text-muted: #8888A0;
  --border: #2A2A3E;
  --purple-bg: rgba(124, 58, 237, 0.12);
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
  --hero-from: #0a0a1a;
  --hero-to: #12102a;
}

/* Base */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.site-title a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-title .accent { color: var(--purple); }

.logo,
.site-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo a,
.site-title a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 30px;
  width: auto;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 0;
}

.nav-links a:hover { color: var(--purple); }
.nav-links a[aria-current],
.nav-links a.active { color: var(--purple); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 5px 9px;
  border-radius: 8px;
  line-height: 1;
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: var(--purple);
  border-color: var(--purple);
  background: var(--purple-bg);
}

.mobile-nav-toggle { display: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
  transition: background 0.3s;
}

.hero-content { max-width: 680px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--purple-light); }

.hero p {
  font-size: 1.05rem;
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 13px 30px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* Article section (homepage grid) */
.article-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  background: var(--purple-bg);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, background 0.3s, transform 0.25s;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0 0 22px;
}

.article-card .card-meta,
.article-card h2,
.article-card .card-excerpt,
.article-card .tool-icons-row,
.article-card .card-cta {
  padding-left: 22px;
  padding-right: 22px;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.article-card-img-wrapper {
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .article-card-img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 0 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.article-card h2 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card h2 a:hover { color: var(--purple); }

.card-excerpt {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.tool-icons-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tool-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--purple-bg);
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--purple);
  font-weight: 500;
}

.tool-icon-badge img {
  width: 13px;
  height: 13px;
}

.card-cta {
  color: var(--purple);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  margin-top: auto;
}

.card-cta:hover {
  gap: 8px;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: 72px 24px;
  text-align: center;
  transition: background 0.3s;
}

.cta-card { max-width: 520px; margin: 0 auto; }

.cta-section h2 {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--gray-300);
  max-width: 460px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
footer,
.site-footer {
  background: var(--hero-from);
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.site-footer p,
.footer-inner p,
.copyright {
  color: var(--gray-500);
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--purple-light);
}

/* Article detail pages */
/* Article header (gradient hero for article pages) */
.article-hero,
.article-header {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: 64px 24px 52px;
  text-align: center;
  transition: background 0.3s;
}

.article-hero .section-label { margin-bottom: 16px; }

.article-hero .article-header {}

.article-hero .breadcrumb,
.article-header .breadcrumb {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.article-hero .breadcrumb a,
.article-header .breadcrumb a {
  color: var(--gray-400);
  text-decoration: none;
}

.article-hero .breadcrumb a:hover,
.article-header .breadcrumb a:hover {
  color: var(--purple-light);
}

.article-hero .article-meta,
.article-header .article-meta {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 12px;
}

.article-hero h1,
.article-header h1 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.35;
  font-weight: 700;
}

.article-body,
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-featured-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 32px;
  display: block;
}

.article-body h2,
.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 44px 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.article-body h3,
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.article-body p,
.article-content p {
  margin-bottom: 20px;
  color: var(--text);
}

.article-body a,
.article-content a {
  color: var(--purple);
  font-weight: 500;
}

.article-body ul,
.article-content ul,
.article-body ol,
.article-content ol {
  margin: 16px 0 24px;
  padding-left: 24px;
  color: var(--text);
}

.article-body li,
.article-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-body blockquote,
.article-content blockquote {
  border-left: 3px solid var(--purple);
  padding: 14px 22px;
  margin: 28px 0;
  background: var(--purple-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-style: italic;
}

.article-body blockquote strong,
.article-content blockquote strong { color: var(--purple); }

.article-body hr,
.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.comparison-table th {
  background: var(--purple);
  color: white;
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  line-height: 1.5;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--purple-bg); }
.comparison-table .winner { color: #16A34A; font-weight: 600; }
.comparison-table .loser { color: #DC2626; font-weight: 500; }

/* Affiliate CTA box */
.affiliate-cta {
  background: var(--bg-card);
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 36px 0;
  text-align: center;
}

.affiliate-cta h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.affiliate-cta p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.affiliate-cta .btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--purple);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}

.affiliate-cta .btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.affiliate-disclosure {
  text-align: center;
  padding: 20px 24px 40px;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.affiliate-disclosure a {
  color: var(--purple);
}

/* Subscribe page */
.subscribe-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.subscribe-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.subscribe-hero p {
  color: var(--gray-300);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.subscribe-form {
  max-width: 500px;
  margin: 32px auto 0;
  display: flex;
  gap: 8px;
}

.subscribe-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.08);
  color: white;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form input::placeholder { color: var(--gray-300); }
.subscribe-form input:focus { border-color: var(--purple-light); }

.form-note {
  color: var(--gray-400);
  font-size: 0.82rem;
  margin-top: 12px;
}

/* About page */
.about-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.about-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}

.about-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

.article-body img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .article-grid { grid-template-columns: 1fr; }
  
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; margin-bottom: 24px; }
  
  .header-inner { padding: 10px 16px; }
  .article-section { padding: 40px 16px 56px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 1.3rem; }
  .section-header p { font-size: 0.9rem; }
  
  .article-body { padding: 28px 16px 48px; font-size: 1rem; line-height: 1.75; }
  .article-body h2 { font-size: 1.2rem; }
  .article-hero { padding: 48px 16px 36px; }
  .article-hero h1 { font-size: 1.25rem; }
  
  .subscribe-form { flex-direction: column; }
  .subscribe-hero { padding: 56px 16px; }
  .subscribe-hero h1 { font-size: 1.5rem; }
  
  .cta-section { padding: 48px 16px; }
  .cta-section h2 { font-size: 1.3rem; }
  
  .about-hero { padding: 56px 16px; }
  .about-content { padding: 32px 16px 48px; }
  
  .mobile-nav-toggle { display: block; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open { display: flex; }
  
  footer, .site-footer { padding: 32px 16px; }
  .footer-links { gap: 14px; }
  
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th,
  .comparison-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.4rem; }
  .hero p { font-size: 0.9rem; }
  .section-header h2 { font-size: 1.2rem; }
  .article-card h2 { font-size: 0.95rem; }
  .card-excerpt { font-size: 0.85rem; }
  .article-body { font-size: 0.95rem; }
  .article-grid { gap: 16px; }
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
