/* ==========================================================================
   COMPONENTS — 2000s era: dense nav, news boxes, dot separators
   ========================================================================== */

/* ============================
   DECORATIVE METAL STRIP
   ============================ */

.metal-strip {
  height: 30px;
  background: var(--bg-surface);
  border-bottom: 1px solid #000;
  /* p5.js will apply texture via JS */
}

/* ============================
   NAVIGATION (image-button bar style)
   ============================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border-bottom: 1px solid #000;
  border-top: 1px solid var(--bevel-light);
}

.nav .container {
  display: flex;
  align-items: center;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  text-decoration: none;
  padding-right: 10px;
  border-right: 1px solid #000;
  margin-right: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 10px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-right: 1px solid #000;
  border-left: 1px solid var(--bevel-light);
  text-decoration: none;
  background: var(--bg-panel);
}

.nav__link:first-child {
  border-left: 1px solid #000;
}

.nav__link:hover {
  color: #fff;
  background: var(--bg-card);
}

.nav__link--active {
  color: var(--accent-gold);
  background: var(--bg-card);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-secondary);
  margin: 3px 0;
}

.nav__toggle.is-active .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav__toggle.is-active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

@media (max-width: 600px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-panel);
    border-bottom: 1px solid #000;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    height: auto;
    padding: 6px 10px;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid #000;
  }

  .nav__link:first-child {
    border-left: none;
  }
}

/* ============================
   HERO (forum-sig-card banner)
   ============================ */

.hero {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-panel);
  border-bottom: 1px solid #000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
}

.hero--has-banner .hero__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 600px) {
  .hero {
    height: 55px;
  }
  .hero__title {
    font-size: 18px;
    letter-spacing: 0.12em;
  }
}

/* ============================
   NEWS BOXES (Screaming Art style)
   ============================ */

.news-box {
  border: 1px solid #000;
  margin-bottom: 8px;
  position: relative;
}

.news-box__header {
  background: var(--bevel-light);
  padding: 3px 6px;
  border-bottom: 1px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-box__date {
  padding-left: 3%;
  font-weight: 700;
  font-size: 11px;
  color: #000;
}

.news-box__category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #333;
}

.news-box__body {
  background: var(--bg-card);
  padding: 8px;
}

.news-box__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.news-box__title a {
  color: var(--accent-gold);
}

.news-box__title a:hover {
  color: #fff;
}

.news-box__excerpt {
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.news-box__readmore {
  font-size: 10px;
  color: var(--accent-gold);
  text-decoration: underline;
}

.news-box__readmore:hover {
  color: #fff;
}

/* ============================
   DOT SEPARATOR
   ============================ */

.dot-separator {
  text-align: center;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}

/* ============================
   ENTRY ROWS (System Log)
   ============================ */

.entries-table {
  width: 100%;
  border: 1px solid #000;
}

.entry-row {
  display: flex;
  align-items: center;
  padding: 3px 6px;
  border-bottom: 1px solid #000;
  background: var(--bg-card);
  font-size: 11px;
}

.entry-row:last-child {
  border-bottom: none;
}

.entry-row:hover {
  background: var(--bg-surface);
}

.entry-row__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.entry-row__category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  width: 90px;
  flex-shrink: 0;
}

.entry-row__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.entry-row__title a {
  text-decoration: none;
}

.entry-row__title a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.entry-row__arrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 10px;
  width: 20px;
  text-align: right;
}

.entry-row:hover .entry-row__arrow {
  color: var(--accent-gold);
}

@media (max-width: 600px) {
  .entry-row__category {
    display: none;
  }
}

/* ============================
   OPERATOR PROFILE
   ============================ */

.profile__avatar-frame {
  border: 1px solid #000;
  padding: 2px;
  background: var(--bg-deepest);
}

.profile__avatar {
  width: 100%;
  display: block;
  filter: saturate(0.8) contrast(1.05);
}

.profile__status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: goldenrod;
  letter-spacing: 0.06em;
  margin: 4px 0;
}

.profile__status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: goldenrod;
  border-radius: 50%;
  margin-right: 4px;
}

.profile__bio {
  color: var(--text-secondary);
  font-size: 11px;
  margin-bottom: var(--space-sm);
}

/* Tags */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.tag {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 4px;
  background: var(--bg-panel);
  color: var(--text-muted);
  border: 1px solid #000;
}

/* ============================
   SIDEBAR INFO (visitor counter, last updated, links)
   ============================ */

.sidebar-info {
  border: 1px solid #000;
  background: var(--bg-card);
  padding: 6px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.sidebar-info__row {
  margin-bottom: 3px;
}

.sidebar-info__label {
  font-weight: 700;
  color: var(--text-secondary);
}

.visitor-counter {
  display: inline-block;
  background: #000;
  color: #0f0;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border: 1px inset #333;
  letter-spacing: 1px;
}

/* 88x31 link buttons */

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}

.link-button {
  width: 88px;
  height: 31px;
  border: 1px solid #000;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
}

.link-button:hover {
  color: #fff;
  background: var(--bg-surface);
}

/* ============================
   FOOTER (dense)
   ============================ */

.footer {
  background: var(--bg-panel);
  border-top: 1px solid #000;
  padding: 8px 0;
}

.footer__inner {
  border: 1px solid #000;
  padding: 8px;
  background: var(--bg-deepest);
}

.footer__grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__grid > div {
  flex: 1;
  min-width: 120px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.footer__link {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  padding: 1px 0;
  text-decoration: none;
}

.footer__link:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.footer__copyright {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #000;
}

@media (max-width: 600px) {
  .footer__grid {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================
   BUTTONS
   ============================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid #000;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  color: #fff;
  background: var(--bg-surface);
}

.btn:active {
  background: var(--bg-panel);
}

/* ============================
   BLOG POST ARTICLE (dense)
   ============================ */

.article {
  max-width: 100%;
}

.article__header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid #000;
}

.article__category {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 2px;
  display: block;
}

.article__title {
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 4px;
}

.article__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.article__body h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 13px;
}

.article__body h3 {
  margin-top: var(--space-md);
  margin-bottom: 2px;
  font-size: 12px;
}

.article__body p {
  margin-bottom: var(--space-sm);
  font-size: 12px;
  line-height: 1.6;
}

.article__body ul,
.article__body ol {
  margin-bottom: var(--space-sm);
  padding-left: 18px;
}

.article__body ul {
  list-style: disc;
}

.article__body ol {
  list-style: decimal;
}

.article__body li {
  margin-bottom: 2px;
  color: var(--text-secondary);
  font-size: 11px;
}

.article__body blockquote {
  border-left: 2px solid var(--accent-gold);
  padding-left: 8px;
  margin: var(--space-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 11px;
}

/* ============================
   BLOG LIST (blog/index.html) — stacked dense
   ============================ */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-list__item {
  display: block;
  padding: 6px 8px;
  background: var(--bg-card);
  border: 1px solid #000;
  margin-bottom: -1px;
}

.blog-list__item:hover {
  background: var(--bg-surface);
}

.blog-list__thumb-frame {
  display: none;
}

.blog-list__content {
  display: block;
}

.blog-list__category {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1px;
  display: block;
}

.blog-list__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.blog-list__excerpt {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.blog-list__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ============================
   TEXTURE TARGETS (applied by p5.js)
   ============================ */

.texture-rust {
  position: relative;
}

.texture-metal {
  position: relative;
}

/* Rivet corners */
.has-rivets {
  position: relative;
}

.rivet {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 5;
  pointer-events: none;
}

.rivet--tl { top: 4px; left: 4px; }
.rivet--tr { top: 4px; right: 4px; }
