/* ═══════════════════════════════════════════════════════════
   PLANKO BLOG STYLES V2 - Based on planko-style-guide.html
   Light Theme Default
═══════════════════════════════════════════════════════════ */

/* ═══════════════ CSS VARIABLES ═══════════════ */
:root {
  /* Brand Colors */
  --mint: #84e390;
  --mint-dim: rgba(132, 227, 144, 0.12);
  --forest: #2e5038;
  --near-black: #18181b;

  /* Light Theme (Default) */
  --bg-page: #fafafa;
  --bg-card: #f4f4f5;
  --bg-deeper: #ffffff;
  --text-primary: #2e5038;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --text-dim: #a1a1aa;
  --border: #e5e5e5;
  --border-light: #d4d4d8;

  /* Priority Colors */
  --priority-high: #e38484;
  --priority-medium: #e3c584;
  --priority-low: #8e9aad;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ═══════════════ RESET & BASE ═══════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--mint);
  color: var(--bg-page);
}

/* Grain Overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.018;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════ CONTAINER ═══════════════ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ═══════════════ TYPOGRAPHY ═══════════════ */
h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* ═══════════════ LOGO ═══════════════ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--mint-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ═══════════════ HEADER ═══════════════ */
.site-header {
  padding: 8px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--mint);
  opacity: 1;
}

.nav-divider {
  color: var(--border);
  font-weight: 300;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--mint);
  color: var(--forest);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(132, 227, 144, 0.3);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--mint);
  border: 1px solid var(--mint);
}

.btn-secondary:hover {
  background: var(--mint-dim);
  opacity: 1;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--mint);
  opacity: 1;
}

/* ═══════════════ MOBILE MENU ═══════════════ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }

  .site-nav.active {
    display: flex;
  }

  .header-cta {
    display: none;
  }
}

/* ═══════════════ BREADCRUMB ═══════════════ */
.breadcrumb-container {
  padding-top: 80px;
  padding-bottom: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 8px;
  color: var(--text-dim);
}

.breadcrumb-item a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--mint);
  opacity: 1;
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* ═══════════════ BLOG ARTICLE ═══════════════ */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.blog-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-dim);
  font-size: 14px;
  flex-wrap: wrap;
}

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

.blog-meta svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ═══════════════ FEATURED IMAGE ═══════════════ */
.blog-featured-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ═══════════════ TABLE OF CONTENTS ═══════════════ */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 40px;
}

.toc h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc ul li {
  margin-bottom: 10px;
}

.toc ul li a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.toc ul li a:hover {
  color: var(--mint);
  opacity: 1;
}

/* ═══════════════ BLOG CONTENT ═══════════════ */
.blog-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-content h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.blog-content h3 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
}

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

.blog-content ul,
.blog-content ol {
  margin-bottom: 25px;
  padding-left: 24px;
}

.blog-content li {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.blog-content li::marker {
  color: var(--mint);
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.blog-content a {
  color: var(--mint);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.blog-content a:hover {
  border-bottom-color: var(--mint);
  opacity: 1;
}

.blog-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ═══════════════ BLOG CTA ═══════════════ */
.blog-cta {
  background: var(--mint);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}

.blog-cta h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.blog-cta p {
  font-size: 16px;
  margin-bottom: 24px;
  color: var(--forest);
  opacity: 0.9;
}

.blog-cta .btn {
  background: var(--near-black);
  color: #ffffff;
  padding: 14px 32px;
  font-size: 15px;
}

.blog-cta .btn:hover {
  background: #27272a;
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ═══════════════ HIGHLIGHT BOX ═══════════════ */
.blog-highlight-box {
  background: var(--bg-card);
  border-left: 4px solid var(--mint);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 12px 12px 0;
}

.blog-highlight-box h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.blog-highlight-box p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

/* ═══════════════ RELATED ARTICLES ═══════════════ */
.related-articles {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.related-article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.related-article-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-article-card h4 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.related-article-card h4 a:hover {
  color: var(--mint);
  opacity: 1;
}

.related-article-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  max-width: 300px;
  color: var(--text-muted);
}

.footer-brand .company-info {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--mint);
  opacity: 1;
}

/* ═══════════════ BACK TO TOP ═══════════════ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--mint);
  color: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 28px;
  }

  .blog-content {
    font-size: 16px;
  }

  .blog-content h2 {
    font-size: 24px;
    margin-top: 36px;
  }

  .blog-content h3 {
    font-size: 20px;
    margin-top: 28px;
  }

  .blog-cta {
    padding: 32px 24px;
  }

  .blog-cta h3 {
    font-size: 20px;
  }

  .toc {
    padding: 20px;
  }

  .blog-highlight-box {
    padding: 20px;
  }
}

/* ═══════════════ UTILITY CLASSES ═══════════════ */
.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* ═══════════════ ROW/COL (Bootstrap-like) ═══════════════ */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 10px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
