/* ============================================================
   Digimany Blog — shared stylesheet for standalone post pages
   Reuses the same design tokens as the main site (digimany_website.html)
   ============================================================ */

:root {
  --navy: #1a2e4a;
  --navy-dark: #0f1e31;
  --navy-light: #243a5a;
  --blue: #2e6fad;
  --blue-light: #3a8fd1;
  --accent: #f0a500;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text: #1e293b;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAV (matches main site) ── */
nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy-dark);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.logo { color: var(--white); font-size: 1.5rem; font-weight: 800; text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.current { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--navy-dark) !important; font-weight: 700 !important;
  padding: 0.5rem 1.2rem; border-radius: 6px; transition: background 0.2s !important;
}
.nav-cta:hover { background: #ffb627 !important; }
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ── ARTICLE LAYOUT ── */
main { max-width: 720px; margin: 0 auto; padding: 48px 5% 80px; }

.post-breadcrumb { font-size: 0.85rem; margin-bottom: 24px; }
.post-breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 600; }
.post-breadcrumb a:hover { text-decoration: underline; }

.post-hero {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 32px; display: block;
}

.post-tag {
  display: inline-block; background: rgba(240,165,0,0.12); color: #a36c00;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 20px; margin-bottom: 16px;
}

article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; color: var(--navy);
  margin: 0 0 12px;
}
.post-meta { color: var(--gray-400); font-size: 0.9rem; margin-bottom: 32px; }

article h2 {
  font-size: 1.4rem; color: var(--navy); margin: 40px 0 14px;
}
article p { margin: 0 0 18px; font-size: 1.02rem; color: var(--gray-800); }
article ul, article ol { margin: 0 0 18px; padding-left: 1.3rem; }
article li { margin-bottom: 8px; font-size: 1.02rem; color: var(--gray-800); }
article strong { color: var(--navy); }
article blockquote {
  border-left: 4px solid var(--accent); margin: 24px 0; padding: 4px 0 4px 18px;
  font-style: italic; color: var(--gray-600);
}

/* ── CTA BOX ── */
.post-cta {
  margin-top: 48px; padding: 32px; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: var(--radius); text-align: center;
}
.post-cta h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.25rem; }
.post-cta p { margin: 0 0 20px; color: var(--gray-600); }
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--navy-dark);
  font-weight: 700; padding: 0.8rem 1.8rem; border-radius: 6px; text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: #ffb627; }

.post-back {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gray-200);
}
.post-back a { color: var(--blue); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.post-back a:hover { text-decoration: underline; }

/* ── FOOTER (simplified) ── */
footer.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7);
  text-align: center; padding: 28px 5%; font-size: 0.85rem;
}
footer.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
