/* ============================================
   DCA Guide — Minimal Bitcoin Education Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #F7931A;
  --orange-hover: #e07f0a;
  --navy: #1F2937;
  --navy-light: #374151;
  --gray-100: #F9FAFB;
  --gray-200: #F3F4F6;
  --gray-300: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --white: #FFFFFF;
  --max-width: 1120px;
  --content-width: 720px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-hover);
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  line-height: 1.5;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}

.btn-orange:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.logo-text:hover {
  color: var(--navy);
}

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

.nav-links a {
  color: var(--navy-light);
  font-weight: 500;
  font-size: 0.938rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* --- Hero Section --- */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: var(--gray-100);
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--orange);
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Email Signup --- */
.signup-section {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.signup-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--gray-100);
  padding: 3rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-300);
}

.signup-box h2 {
  margin-bottom: 0.5rem;
}

.signup-box p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.signup-form input[type="email"]:focus {
  border-color: var(--orange);
}

.signup-form button {
  white-space: nowrap;
}

.signup-privacy {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.75rem;
}

/* --- Latest Posts Section --- */
.latest-posts {
  padding: 4rem 1.5rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
}

.section-header a {
  font-weight: 500;
  font-size: 0.938rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* --- Post Card --- */
.post-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.813rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.post-card-meta .tag {
  background: var(--gray-200);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
  color: var(--navy-light);
}

.post-card h3 {
  margin-bottom: 0.5rem;
}

.post-card h3 a {
  color: var(--navy);
}

.post-card h3 a:hover {
  color: var(--orange);
}

.post-card p {
  color: var(--gray-500);
  font-size: 0.938rem;
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 4rem 1.5rem;
  background: var(--navy);
  text-align: center;
}

.cta-banner-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--gray-400);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* --- Blog List Page --- */
.blog-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.blog-list h1 {
  margin-bottom: 0.5rem;
}

.blog-list > p {
  color: var(--gray-500);
  margin-bottom: 2.5rem;
}

/* --- Single Post --- */
.post-single {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-header h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.post-meta .tag {
  background: var(--gray-200);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
  color: var(--navy-light);
  font-size: 0.813rem;
}

.post-meta .separator {
  color: var(--gray-300);
}

/* --- Post Content (Prose) --- */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--gray-100);
  color: var(--navy-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content code {
  background: var(--gray-200);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--navy);
  color: var(--gray-200);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.post-content th, .post-content td {
  border: 1px solid var(--gray-300);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.post-content th {
  background: var(--gray-100);
  font-weight: 600;
}

/* --- Share Buttons --- */
.share-buttons {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
}

.share-buttons h4 {
  margin-bottom: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

.share-links {
  display: flex;
  gap: 0.75rem;
}

.share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: opacity var(--transition);
}

.share-link:hover {
  opacity: 0.85;
  color: var(--white);
}

.share-link.twitter  { background: #1DA1F2; }
.share-link.linkedin { background: #0A66C2; }
.share-link.email-share { background: var(--gray-500); }

/* --- Page (About, etc.) --- */
.page-single {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.page-single h1 {
  margin-bottom: 2rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 3rem 1.5rem 2rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 1.125rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-nav h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-nav a {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 1.5rem;
  font-size: 0.8rem;
}

.disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.25rem; }

  /* Mobile nav */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .signup-form {
    flex-direction: column;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .post-header h1 {
    font-size: 1.75rem;
  }

  .share-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero .tagline { font-size: 1.05rem; }
  .signup-box { padding: 2rem 1.25rem; }
}
