/* ================================================
   THE NEEDLE ARCHIVE — style.css
   y2k mcbling baddie ✦
   ================================================ */

/* fonts loaded via <link> tags in HTML instead */

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

body {
  background-image: url('https://the-needle-archive.neocities.org/bg.jpeg');
  background-repeat: repeat;
  background-size: 420px;
  font-family: 'Barlow Condensed', Arial Narrow, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
  min-width: 820px;
}

a { color: #ff1493; text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
a:visited { color: #ff69b4; }

::-webkit-scrollbar { width: 8px; background: #000; }
::-webkit-scrollbar-thumb { background: #ff1493; }

/* ── marquee ── */
#marquee-bar {
  background: #ff1493;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
}

/* ── wrapper ── */
#wrapper { width: 820px; margin: 0 auto; }

/* ── header ── */
#header {
  background: rgba(0,0,0,0.75);
  border-bottom: 3px solid #ff1493;
  text-align: center;
  padding: 30px 0 20px;
}

#site-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 56px;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 30px #ff1493,
    0 0 60px rgba(255,20,147,0.4),
    3px 3px 0 #000;
  line-height: 1;
}

#site-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 7px;
  color: #ff69b4;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ── nav ── */
#nav {
  background: rgba(0,0,0,0.8);
  border-bottom: 2px solid #ff1493;
  text-align: center;
}

#nav ul { list-style: none; display: inline-flex; }

#nav ul li a {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ccc;
  padding: 10px 18px;
  border-right: 1px solid rgba(255,20,147,0.2);
  text-decoration: none;
}

#nav ul li:first-child a { border-left: 1px solid rgba(255,20,147,0.2); }
#nav ul li a:hover,
#nav ul li a.active { color: #fff; background: rgba(255,20,147,0.25); text-decoration: none; }
#nav ul li a:visited { color: #ccc; }

/* ── layout ── */
#content-area { display: flex; }

#main {
  flex: 1;
  padding: 20px;
  min-width: 0;
  border-right: 1px solid rgba(255,20,147,0.25);
}

/* ── posts ── */
.post {
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,20,147,0.5);
  margin-bottom: 22px;
}

.post-header {
  border-bottom: 1px solid rgba(255,20,147,0.3);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.post-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.post-title a { color: #fff; text-decoration: none; }
.post-title a:hover { color: #ff69b4; }

.post-date {
  font-family: 'Barlow Condensed', sans-serif;
  color: #ff69b4;
  font-size: 12px;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.post-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,20,147,0.3);
}

.post-body {
  padding: 14px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  color: #eee;
  line-height: 1.7;
}

.post-body p { margin-bottom: 10px; }
.post-body p:last-child { margin-bottom: 0; }

.post-footer {
  padding: 8px 16px 12px;
  border-top: 1px solid rgba(255,20,147,0.15);
}

.post-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255,20,147,0.15);
  color: #ff69b4;
  border: 1px solid rgba(255,20,147,0.4);
  padding: 2px 9px;
  text-decoration: none;
}
.tag:hover { background: #ff1493; color: #fff; text-decoration: none; }
.tag:visited { color: #ff69b4; }

/* ── page heading ── */
.page-heading {
  border-left: 4px solid #ff1493;
  padding: 6px 12px;
  margin-bottom: 18px;
  background: rgba(0,0,0,0.7);
}

.page-heading h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
}

/* ── divider ── */
.divider {
  text-align: center;
  color: #ff1493;
  font-size: 14px;
  letter-spacing: 6px;
  padding: 10px 0;
}

/* ── sidebar ── */
#sidebar {
  width: 190px;
  flex-shrink: 0;
  padding: 16px 12px;
}

.sidebar-box {
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,20,147,0.5);
  margin-bottom: 14px;
}

.sidebar-title {
  background: #ff1493;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 5px 10px;
}

.sidebar-content {
  padding: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  color: #ddd;
  line-height: 2;
}

.sidebar-content a { display: block; color: #ff69b4; text-decoration: none; }
.sidebar-content a:hover { color: #fff; }
.sidebar-content a::before { content: '— '; color: #ff1493; }

/* ── status dot ── */
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff1493;
  margin-right: 6px;
  animation: blink 1.2s step-end infinite;
  box-shadow: 0 0 6px #ff1493;
  vertical-align: middle;
}

.status-label {
  font-family: 'Barlow Condensed', sans-serif;
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}

/* ── pattern grid ── */
.pattern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.pattern-card {
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,20,147,0.4);
}

.pattern-image-placeholder {
  height: 90px;
  background: rgba(255,20,147,0.07);
  display: flex; align-items: center; justify-content: center;
  color: #555;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,20,147,0.2);
}

.pattern-card-info { padding: 8px; }

.pattern-name {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2px;
}

.pattern-desc {
  font-family: 'Barlow Condensed', sans-serif;
  color: #888;
  font-size: 11px;
  letter-spacing: 1px;
}

/* ── footer ── */
#footer {
  background: rgba(0,0,0,0.85);
  border-top: 3px solid #ff1493;
  text-align: center;
  padding: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #666;
  line-height: 2;
}
#footer a { color: #ff69b4; }

/* ── animations ── */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── utility ── */
.center  { text-align: center; }
.small   { font-size: 11px; }
.muted   { color: #888; }
.pink    { color: #ff1493; }
.caps    { text-transform: uppercase; letter-spacing: 2px; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.mb-16   { margin-bottom: 16px; }