/* KALSU Blog - Common Styles */

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

:root {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --border-primary: #3f3f46;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --teal-400: #2dd4bf;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 2rem;
  line-height: 1.8;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

/* Navigation */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--emerald-400);
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--emerald-400);
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--emerald-400), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

ul, ol {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  color: var(--text-primary);
  font-weight: 500;
}

a {
  color: var(--emerald-400);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid var(--border-primary);
  margin: 2.5rem 0;
}

/* Article styles */
.article-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-primary);
}

.page-desc {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Content boxes */
.highlight-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.highlight-box p:last-child,
.highlight-box ol:last-child,
.highlight-box ul:last-child {
  margin-bottom: 0;
}

.summary-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.summary-box h3 {
  margin-top: 0;
  color: var(--emerald-400);
}

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

/* Pros and Cons */
.pros-cons {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros, .cons {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.25rem;
}

.pros {
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.cons {
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pros h3, .cons h3 {
  margin-top: 0;
}

.pros h3 {
  color: var(--emerald-400);
}

.cons h3 {
  color: #f87171;
}

.pros ul, .cons ul {
  margin-bottom: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border-primary);
}

th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

td {
  color: var(--text-secondary);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-400));
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.cta-box h3 {
  color: #000;
  margin-top: 0;
  font-size: 1.25rem;
}

.cta-box p {
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Blog index - Post cards */
.posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  border-color: var(--emerald-400);
  transform: translateY(-2px);
}

.post-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Mobile responsive */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  table {
    font-size: 0.75rem;
  }

  th, td {
    padding: 0.5rem;
  }

  .post-card {
    padding: 1.25rem;
  }

  .post-card h2 {
    font-size: 1.125rem;
  }
}

