/* ============================================
   IncomeInClick — Dark Theme + Green Accent
   Clean, content-focused blog style
   ============================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: #161616;
  --text: #e0e0e0;
  --text-muted: #888888;
  --text-bright: #ffffff;
  --accent: #00e676;
  --accent-dim: #00c864;
  --accent-glow: rgba(0, 230, 118, 0.15);
  --border: #222222;
  --max-width: 720px;
  --max-width-wide: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--text-bright);
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.3;
}

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

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

strong {
  color: var(--text-bright);
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--accent);
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

blockquote p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

/* --- Header / Nav --- */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  margin: 0 auto 2rem;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

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

.hero .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- Content Section (long-form) --- */
.content-section {
  padding: 3rem 0;
}

.content-section p {
  font-size: 1rem;
  color: var(--text);
}

.content-section .lead {
  font-size: 1rem;
  color: var(--text-bright);
  line-height: 1.8;
}

.content-section .signature {
  margin-top: 3rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Accent divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 3rem auto;
  border-radius: 2px;
}

/* --- Blog Grid --- */
.blog-section {
  padding: 4rem 0;
}

.blog-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.blog-section .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

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

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.2s;
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.blog-card .card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Blog Post Page --- */
.post-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.post-header .post-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.post-header h1 {
  font-size: 2.2rem;
  max-width: 640px;
  margin: 0 auto 1rem;
}

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

.post-content {
  padding: 2rem 0 4rem;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 6rem 0;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.empty-state h2 {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  height: 24px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html { font-size: 18px; }

  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-photo { width: 110px; height: 110px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }

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

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .container { padding: 0 1rem; }
}

/* --- Newsletter Signup --- */
.newsletter-section {
  padding: 0 0 1.5rem;
  text-align: center;
  width: 100%;
}
.newsletter-section h3 {
  color: var(--text-bright);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.newsletter-section p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}
.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}
.newsletter-form button {
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover {
  background: var(--accent-dim);
}
.newsletter-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.newsletter-msg {
  font-size: 0.8rem;
  margin-top: 0.6rem;
  min-height: 1.2em;
}
.newsletter-msg.success { color: var(--accent); }
.newsletter-msg.error { color: #ff5252; }

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}
