/* === HUSTLE BLOG — DARK GOLD THEME === */

:root {
  --bg: #0a0e14;
  --bg-card: #131820;
  --bg-hover: #1a1f2b;
  --text: #c5cdd8;
  --text-muted: #7a8494;
  --gold: #f0b429;
  --gold-dim: #c99a2e;
  --green: #36d399;
  --red: #f87272;
  --blue: #58a6ff;
  --border: #252d3a;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", Consolas, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 760px;
}

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

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

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

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

/* === NAV === */

.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

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

.site-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.site-logo:hover { opacity: 0.8; }

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-links .bmc-link { color: var(--gold-dim); }

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.nav-dropdown-toggle:hover { color: var(--gold); }

.dropdown-arrow {
  font-size: 0.7rem;
  display: inline-block;
  transition: transform 0.2s;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 150px;
  z-index: 300;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-menu a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-hover);
}

/* === MAIN === */

main {
  flex: 1;
  padding: 2.5rem 0;
}

/* === LANDING === */

.landing h1 {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.landing h2 {
  color: var(--gold-dim);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.landing strong {
  color: var(--gold);
}

.landing a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.landing a:hover {
  border-bottom-color: var(--blue);
}

/* === POST LIST === */

.posts-list h1 {
  font-family: var(--font-mono);
  color: var(--gold);
  margin-bottom: 2rem;
}

.post-preview {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.post-preview:hover {
  border-color: var(--gold);
  background: var(--bg-hover);
}

.post-preview a {
  display: block;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
}

.post-preview time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-preview h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0.25rem 0 0.5rem;
}

.post-preview p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.revenue-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.revenue-badge.profit {
  background: rgba(54, 211, 153, 0.1);
  color: var(--green);
}

.revenue-badge.zero {
  background: rgba(240, 180, 41, 0.1);
  color: var(--gold-dim);
}

/* === SINGLE POST === */

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

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

.post-summary {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Revenue Cards */

.revenue-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.rev-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
}

.rev-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.rev-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

.rev-card.profit .rev-value { color: var(--green); }
.rev-card.zero .rev-value { color: var(--gold-dim); }
.rev-card.total { border-color: var(--gold-dim); }

/* Tags */

.post-tags {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  color: var(--text-muted);
}

/* Post content */

.post-content h2 {
  color: var(--gold-dim);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.post-content h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.post-content ul, .post-content ol {
  margin: 0 0 1rem 1.5rem;
}

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

.post-content strong {
  color: var(--gold);
}

.post-content em {
  color: var(--text-muted);
}

.post-content a {
  color: var(--blue);
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.post-content th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  color: var(--gold-dim);
  font-weight: 600;
}

.post-content td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.post-content tr:hover td {
  background: var(--bg-hover);
}

.post-content blockquote {
  border-left: 3px solid var(--gold-dim);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Post nav */

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-nav a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9rem;
}

.post-nav a:hover { text-decoration: underline; }

/* === PROJECTS LIST === */

.projects-page h1 {
  font-family: var(--font-mono);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.projects-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.project-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.project-card:hover {
  border-color: var(--gold);
  background: var(--bg-hover);
}

.project-icon {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-info { flex: 1; min-width: 0; }

.project-info h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.project-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-live {
  background: rgba(54, 211, 153, 0.12);
  color: var(--green);
}

.status-build {
  background: rgba(240, 180, 41, 0.12);
  color: var(--gold);
}

.status-killed {
  background: rgba(248, 114, 114, 0.12);
  color: var(--red);
}

.status-draft {
  background: rgba(88, 166, 255, 0.12);
  color: var(--blue);
}

.shop-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.shop-intro a {
  color: var(--gold);
  text-decoration: none;
}

.shop-intro a:hover {
  text-decoration: underline;
}

.shop-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(240, 180, 41, 0.12);
  color: var(--gold-dim);
}

.project-revenue {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-revenue.has-revenue {
  color: var(--green);
  font-weight: 700;
}

.projects-cta {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.projects-cta p { margin-bottom: 0.5rem; }
.projects-cta a { color: var(--gold); text-decoration: none; }
.projects-cta a:hover { text-decoration: underline; }

/* === PROJECT DETAIL === */

.project-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.project-detail-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-header h1 {
  font-size: 1.8rem;
  color: var(--text);
}

.project-header .project-summary {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.project-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.stat-value.has-revenue { color: var(--green); }

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

.project-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 0.85; }

.link-live {
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.link-source {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* === FOOTER === */

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

.rival-roast {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-dim);
  font-style: italic;
  margin-bottom: 0.5rem;
}

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

/* === NAV TOGGLE (mobile) === */

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* === RESPONSIVE === */

@media (max-width: 600px) {
  .landing h1 { font-size: 1.8rem; }
  .post-header h1 { font-size: 1.4rem; }
  .revenue-cards { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 1rem; }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 200;
    padding: 1rem;
  }

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

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    min-height: 48px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background: var(--bg-hover);
  }

  /* Flatten dropdown on mobile */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    min-height: 48px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    background: rgba(255,255,255,0.03);
  }

  .nav-dropdown-menu a {
    padding-left: 2rem;
    font-size: 1rem;
  }
}
