/* ==================================================
   Torlinks Dark Theme — Sanitized Global CSS
   ================================================== */

/* ---------- Reset / Safe Defaults ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* ---------- Links ---------- */
a {
  color: #00ffd0;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: #00e6bc;
  text-decoration: underline;
}

a:focus {
  outline: none;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00ffd0;
}

.navbar-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.navbar-menu a {
  color: #cfcfcf;
  font-weight: 600;
  font-size: 0.95rem;
}

.navbar-menu a:hover,
.navbar-menu a:focus-visible {
  color: #00ffd0;
}

/* ---------- Mobile Navbar ---------- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-menu {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .navbar-menu a {
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid #222;
  }
}

/* ---------- Footer ---------- */
footer {
  background-color: #1a1a1a;
  color: #888;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid #333;
}

footer a {
  color: #00ffd0;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
}

/* ---------- Tables (Dark-Safe) ---------- */
.opsec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.opsec-table th {
  background-color: #222;
  color: #e5e7eb;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #333;
  font-weight: 600;
}

.opsec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #2a2a2a;
  color: #d1d5db;
}

.opsec-table tr:nth-child(even) {
  background-color: #181818;
}

.opsec-table tr:hover {
  background-color: #222;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.text-center {
  text-align: center;
}

/* Margin utilities */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

/* ---------- Global Mobile Tweaks ---------- */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
}
