    :root {
      --bg: #0a0a0a;
      --text: #eaeaea;
      --accent: #00ffcc;
      --secondary: #7a7aff;
      --dim: #888;
    }

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

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', sans-serif;
      overflow-x: hidden;
    }

    /* Subtle grid background */
    body::before {
      content: "";
      position: fixed;
      width: 100%;
      height: 100%;
      background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 40px 40px;
      z-index: -1;
    }

    header {
      padding: 20px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .logo {
      font-family: 'JetBrains Mono', monospace;
      font-size: 1.2rem;
      color: var(--accent);
    }

    nav a {
      margin-left: 25px;
      text-decoration: none;
      color: var(--dim);
      font-size: 0.9rem;
      transition: 0.2s;
    }

    nav a:hover {
      color: var(--accent);
    }

    .hero {
      height: 85vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 10%;
    }

    .title {
      font-size: 4rem;
      font-weight: 600;
      letter-spacing: 2px;
    }

    .title span {
      color: var(--accent);
    }

    .subtitle {
      margin-top: 20px;
      color: var(--dim);
      max-width: 600px;
      line-height: 1.6;
    }

    .terminal {
      margin-top: 40px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 10px;
      padding: 20px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.9rem;
      color: var(--accent);
      max-width: 600px;
    }

    #terminal-output::after {
          content: "_";
          animation: blink 1s infinite;
          margin-left: 5px;
    }
    
    .cursor {
      display: inline-block;
      width: 8px;
      height: 16px;
      background: var(--accent);
      animation: blink 1s infinite;
      margin-left: 5px;
    }

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

    section {
      padding: 80px 10%;
    }

    .section-title {
      font-size: 1.5rem;
      margin-bottom: 30px;
      color: var(--secondary);
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
    }

    .card {
      padding: 20px;
      border: 1px solid rgba(255,255,255,0.05);
      border-radius: 10px;
      background: rgba(255,255,255,0.02);
      transition: 0.2s;
    }

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

    .card h3 {
      font-family: 'JetBrains Mono', monospace;
      margin-bottom: 10px;
    }

    .card p {
      color: var(--dim);
      font-size: 0.9rem;
    }

    footer {
      text-align: center;
      padding: 40px;
      color: var(--dim);
      font-size: 0.8rem;
    }
    
/* Blog Cards */
.post-card {
  display: block;
  text-decoration: none;
  padding: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.25s;
}

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

.post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.post-card h3 {
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}

.post-card p {
  font-size: 0.9rem;
  color: var(--dim);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover .card {
  cursor: pointer;
}

/* Make the link behave like a block and take full height */
.card-link {
  display: block;        /* ensures it’s block-level */
  height: 100%;          /* take the height of its container */
  text-decoration: none;
  color: inherit;
}

.card-link .card {
  height: 100%;          /* make card fill the link */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#hack-console {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: rgba(0,0,0,0.95);
  border-top: 1px solid rgba(0,255,200,0.3);
  display: none;
  flex-direction: column;
  font-family: 'JetBrains Mono', monospace;
  z-index: 9999;
}

#hack-output {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  color: #00ffcc;
  font-size: 0.85rem;
}

#hack-input {
  border: none;
  outline: none;
  padding: 12px;
  background: black;
  color: #00ffcc;
  font-family: inherit;
}

  html {
    scroll-behavior: smooth;
  }
  
  
nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--dim);
  font-size: 0.9rem;
  transition: 0.2s;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
}

nav a:hover {
  color: var(--accent);
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(10,10,10,0.95);
  min-width: 200px;
  border: 1px solid rgba(0,255,200,0.3);
  border-radius: 6px;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  color: var(--accent);
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: rgba(0,255,200,0.05);
}

/* Show on hover */
.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}


/* login page */
/* LOGIN PAGE */

.login-container {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  width: 320px;
  padding: 30px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,200,0.2);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,255,200,0.05);
}

.login-title {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1px;
}

/* INPUTS */

.login-box input {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  background: black;
  border: 1px solid rgba(0,255,200,0.2);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

.login-box input:focus {
  outline: none;
  border-color: var(--accent);
}

/* BUTTON */

.login-box button {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: 0.2s;
}

.login-box button:hover {
  background: var(--accent);
  color: black;
}

.login-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 15px;
  text-align: center;
}

/* dashboard */

/* DASHBOARD PAGE */

.dashboard-container {
  padding: 60px 10%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
}

.dashboard-container h1 {
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 700 !important;
  font-size: 2rem !important;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1.3;
}

.post-title {
  font-size: 2.5rem;
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.dashboard-subtitle {
  font-family: 'JetBrains Mono', monospace;
  color: var(--dim);
  font-size: 0.9rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Reuse .card from homepage */
.card {
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: 0.2s;
}

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

.card h3 {
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--dim);
}

.dashboard-greeting {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  margin-bottom: 20px;
}
.dashboard-greeting .username {
  color: var(--secondary);
}

/* edit_post.html */
/* Form styling */
.post-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-label {
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', monospace;
  color: var(--dim);
}

.form-label input,
.form-label textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  transition: 0.2s;
}

.form-label input:focus,
.form-label textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,255,200,0.05);
}

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: #00e6b8;
}

.btn-danger {
  background: #ff0033;
  color: #fff;
}

.btn-danger:hover {
  background: #e6002b;
}

/* === Post Form === */
.post-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.post-form label {
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', monospace;
  color: var(--dim);
}

.post-form input,
.post-form textarea {
  margin-top: 5px;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s;
}

.post-form input:focus,
.post-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,255,200,0.05);
}

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: #00e6b8;
}

.btn-danger {
  background: #ff0033;
  color: #fff;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  transition: 0.2s;
  margin-top: 10px;
}

.btn-danger:hover {
  background: #e6002b;
}

  /* Back to Home link at top */
  .back-home {
    margin-bottom: 20px;
    font-size: 0.9rem;
  }

  .back-home a {
    color: #00ffcc;
    text-decoration: none;
    transition: 0.2s;
  }

  .back-home a:hover {
    text-decoration: underline;
  }
  
    .meta {
    font-family: 'JetBrains Mono', monospace;
    color: #7a7aff;
    font-size: 0.8rem;
    margin-bottom: 20px;
  }
  
  /* post.html */
  /* Article card container */
.article-card {
  margin: auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: 0.2s;
}

/* Back / action links */
.action-links {
  margin-bottom: 20px;
}

.btn-back {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--dim);
  background: rgba(255,255,255,0.02);
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-back:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,255,200,0.05);
}

/* Post meta */
.post-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

/* Post title */
.post-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.2;
}

/* Post content */
.post-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dim);
  margin-bottom: 20px;
}

/* Optional: style code snippets if post content has <code> */
.post-content code {
  background: rgba(255,255,255,0.05);
  padding: 3px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
}

/* Optional: style pre blocks */
.post-content pre {
  background: rgba(255,255,255,0.03);
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
}

/* Post content */
.post-content p {
  font-size: 1.1rem;          /* slightly bigger */
  line-height: 1.8;
  font-weight: 500;            /* bolder text */
  color: var(--text);          /* full text color for emphasis */
  margin-bottom: 20px;
}

/* Optional: code snippets inside post content */
.post-content code {
  background: rgba(255,255,255,0.08);  /* slightly brighter */
  padding: 4px 8px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-weight: 600;                     /* bolder code */
}

@media (max-width: 768px) {

  .hero {
    padding: 60px 20px;
    min-height: auto;
  }

  .title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .subtitle {
    font-size: 0.95rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  nav {
    flex-wrap: wrap;
  }

  nav a {
    margin: 5px 15px 0 0;
  }

  section {
    padding: 60px 20px;
  }

}

/* Base badge style */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Public badge */
.badge.public {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

/* Private badge */
.badge.private {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.settings-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-label {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: -5px;
}

/* 🔽 Modern select */
.settings-select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    color: white;
    outline: none;
    cursor: pointer;
    transition: 0.2s;
}

.settings-select:hover {
    border-color: rgba(0,255,200,0.4);
}

/* 🟢 Save button */
.settings-button {
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,200,0.3);
    background: rgba(0,255,200,0.08);
    color: white;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

.settings-button:hover {
    background: rgba(0,255,200,0.15);
    transform: translateY(-1px);
}

/* 🔴 danger-style select (optional) */
.settings-select-danger {
    border: 1px solid rgba(255,0,0,0.3);
}

.form-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 14px;
  color: #e5e5e5;
}

/* Hide default checkbox */
.toggle input {
  display: none;
}

/* Switch background */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

/* Track */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #333;
  border-radius: 999px;
  transition: 0.2s;
  border: 1px solid #444;
}

/* Knob */
.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #aaa;
  border-radius: 50%;
  transition: 0.2s;
}

/* Checked state */
.toggle input:checked + .slider {
  background-color: #4ade80; /* green accent */
  border-color: #22c55e;
}

.toggle input:checked + .slider::before {
  transform: translate(20px, -50%);
  background-color: white;
}

/* Text */
.toggle-text {
  user-select: none;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  margin-bottom: 5px;
  opacity: 0.7;
}

.form-group input,
.form-group textarea {
  background: #0a0a0a;
  border: 1px solid #222;
  color: #00ffcc;
  padding: 10px;
  font-family: 'JetBrains Mono', monospace;
}

button {
  background: transparent;
  border: 1px solid #00ffcc;
  color: #00ffcc;
  padding: 10px 20px;
  cursor: pointer;
}

button:hover {
  background: #00ffcc;
  color: #000;
}

/* =========================
   POST CONTENT IMPROVEMENTS
========================= */

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Headings (fix #1 + #2) */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  margin-top: 50px;
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.post-content h1 {
  font-size: 2.4rem;
  border-bottom: 1px solid rgba(0,255,200,0.2);
  padding-bottom: 10px;
}

.post-content h2 {
  font-size: 1.8rem;
  color: var(--secondary);
}

.post-content h3 {
  font-size: 1.4rem;
  color: var(--accent);
}

.post-content h4 {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Paragraphs */
.post-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 20px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}

/* Links (fix #3) */
.post-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,255,200,0.4);
  transition: all 0.2s;
}

.post-content a:hover {
  color: #00e6b8;
  border-bottom: 1px solid var(--accent);
}

/* Inline code (fix #3) */
.post-content code {
  background: rgba(0,0,0,0.6);
  color: #00ffcc;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.9rem;   /* smaller */
  font-family: 'JetBrains Mono', monospace;
}

/* Code blocks (fix #3) */
.post-content pre {
  background: #050505;
  border: 1px solid rgba(0,255,200,0.2);
  padding: 18px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 25px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;  /* smaller */
  color: #00ffcc;
}

/* Lists (fix #4, #5, #6) */
.post-content ul,
.post-content ol {
  padding-left: 28px;
  margin: 25px 0;
}

.post-content li {
  margin-bottom: 12px;
  line-height: 1.8;
  font-size: 1.05rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
}

/* Better bullet style */
.post-content ul li::marker {
  color: var(--accent);
}

/* Blockquotes (bonus) */
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  color: var(--dim);
  margin: 25px 0;
  font-style: italic;
}

.post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 30px 0;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Ordered lists (numbers) */
.post-content ol {
  padding-left: 28px;
  margin: 25px 0;
  list-style-position: outside;
}

/* List items */
.post-content ol li {
  margin-bottom: 12px;
  line-height: 1.8;
  font-size: 1.05rem;
  font-family: 'JetBrains Mono', monospace; /* ✅ match paragraphs */
  color: var(--text);
}

/* Style the numbers themselves */
.post-content ol li::marker {
  color: var(--secondary);   /* or var(--accent) if you want stronger */
  font-family: 'JetBrains Mono', monospace; /* subtle tech feel */
  font-size: 0.95rem;
}

/* Fix list text wrapped in <p> */
.post-content li p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;              /* 🔥 removes weird spacing */
}

/* =========================
   GLOBAL FORM STYLING
========================= */

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  transition: 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,255,200,0.05);
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.slider {
  position: absolute;
  inset: 0;
}

.slider::before {
  position: absolute;
}

.search-bar {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

.search-bar input {
  flex: 1;
  padding: 8px;
  background: #0a0a0a;
  border: 1px solid #222;
  color: #00ffcc;
  font-family: monospace;
}

.search-bar button {
  padding: 8px 12px;
  background: #000;
  border: 1px solid #00ffcc;
  color: #00ffcc;
  cursor: pointer;
}

/* =========================
   POST LINK RESET (CRITICAL)
========================= */

.post-card,
.post-card:link,
.post-card:visited,
.post-card:active {
  text-decoration: none;
  color: var(--text);       /* force normal text color */
}

/* Prevent purple visited links */
.post-card:visited {
  color: var(--text);
}

.post-card {
  display: block;
  text-decoration: none;
  padding: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* subtle glow scan effect */
.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0,255,200,0.08),
    transparent
  );
  opacity: 0;
  transition: 0.3s;
}

/* hover */
.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0,255,200,0.1);
}

.post-card:hover::before {
  opacity: 1;
}

/* clickable feedback */
.post-card:active {
  transform: scale(0.98);
}

.post-card h3 {
  transition: 0.2s;
}

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

.post-card:hover h3::after {
  content: " _";
  animation: blink 1s infinite;
  color: var(--accent);
}

#loading-indicator {
  text-align: center;
  opacity: 0.6;
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--dim);
}
