/* ===== RETRO 80s CB RADIO MAGAZINE LOOK ===== */
:root {
  --red: #c41e1e;
  --orange: #e85d04;
  --yellow: #ffba08;
  --green: #2d6a4f;
  --dark: #1a1a1a;
  --paper: #f4e9d8;
  --ink: #1c1c1c;
  --accent: #d00000;
}

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

body {
  font-family: 'Roboto Condensed', sans-serif;
  background: #2b2b2b;
  color: var(--ink);
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 20% 30%, #3a3a3a 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, #333 0%, transparent 35%);
}

/* MASTHEAD */
.masthead {
  background: linear-gradient(180deg, #8b0000 0%, #c41e1e 40%, #8b0000 100%);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem 0;
  border-bottom: 8px solid #ffba08;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

.issue-tag {
  font-family: 'Special Elite', cursive;
  font-size: 0.85rem;
  letter-spacing: 3px;
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.logo {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(3.5rem, 12vw, 7rem);
  letter-spacing: 0.05em;
  line-height: 0.9;
  text-shadow: 4px 4px 0 #000, -1px -1px 0 #ffba08;
  margin: 0;
}

.tagline {
  font-family: 'Special Elite', cursive;
  font-size: 0.95rem;
  margin: 0.5rem auto 1rem;
  max-width: 600px;
  opacity: 0.95;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  background: #1a1a1a;
  padding: 0.6rem;
  margin-top: 0.5rem;
}

nav a {
  color: #ffba08;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0.9rem;
  border: 2px solid transparent;
  transition: all 0.2s;
}

nav a:hover {
  border-color: #ffba08;
  background: #c41e1e;
  color: white;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  background: var(--paper);
  border-bottom: 6px solid var(--red);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
}

.hero-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-text h2 span {
  color: var(--green);
  display: block;
  font-size: 2.2rem;
}

.lead {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.hero-covers {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.cover-float {
  width: 45%;
  max-width: 220px;
  border: 4px solid #222;
  box-shadow: 8px 8px 0 #000;
  transform: rotate(-3deg);
  transition: transform 0.3s;
}

.cover-float.delay {
  transform: rotate(4deg);
  margin-top: 1.5rem;
}

.cover-float:hover {
  transform: rotate(0) scale(1.05);
  z-index: 2;
}

/* SECTIONS */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--red);
  border-bottom: 4px solid var(--yellow);
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

/* TIMELINE */
.history {
  background: #1f1f1f;
  color: #eee;
  max-width: none;
  padding: 3rem 1.5rem;
}

.history .section-title {
  color: var(--yellow);
  display: block;
  text-align: center;
  border: none;
  margin: 0 auto 2rem;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tl-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  background: #2a2a2a;
  border-left: 6px solid var(--orange);
  padding: 1.2rem 1.5rem;
}

.tl-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--yellow);
  line-height: 1;
}

.tl-body h3 {
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.quote {
  font-family: 'Special Elite', cursive;
  font-style: italic;
  border-left: 3px solid var(--yellow);
  padding-left: 1rem;
  margin-top: 0.8rem;
  color: #ccc;
}

/* ARTICLES */
.articles {
  background: var(--paper);
}

.story {
  background: white;
  border: 3px solid #222;
  box-shadow: 6px 6px 0 #c41e1e;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.story-meta {
  font-family: 'Special Elite', cursive;
  font-size: 0.85rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.story h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  color: #111;
  margin-bottom: 0.8rem;
}

.pull-quote {
  font-family: 'Special Elite', cursive;
  font-size: 1.15rem;
  background: #fff3cd;
  border: 2px dashed var(--orange);
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

/* GALLERY */
.gallery {
  background: #222;
  color: #eee;
  max-width: none;
}

.gallery .section-title {
  color: var(--yellow);
  border-color: var(--orange);
}

.gallery-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cover-card {
  background: #111;
  border: 3px solid #444;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  overflow: hidden;
}

.cover-card:hover {
  transform: scale(1.06);
  border-color: var(--yellow);
  z-index: 5;
}

.cover-card img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.cover-card .cap {
  font-size: 0.7rem;
  text-align: center;
  padding: 0.3rem;
  background: #111;
  color: #ccc;
}

/* UPLOAD */
.upload {
  background: var(--paper);
}

.upload-box {
  background: white;
  border: 4px solid var(--red);
  padding: 2rem;
  box-shadow: 8px 8px 0 #000;
  max-width: 600px;
  margin: 0 auto;
}

.upload-box .note {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-style: italic;
}

form label {
  display: block;
  font-weight: 700;
  margin: 1rem 0 0.3rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

form input[type="text"],
form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid #333;
  font-family: inherit;
  font-size: 1rem;
  background: #fffef5;
}

form input[type="file"] {
  margin-top: 0.3rem;
}

.preview {
  margin: 1rem 0;
}

.preview img {
  max-width: 180px;
  border: 2px solid #333;
}

.btn-big {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--red);
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.15s;
}

.btn-big:hover {
  background: #a00000;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.uploaded-list {
  margin-top: 2.5rem;
  border-top: 3px solid #ddd;
  padding-top: 1.5rem;
}

.uploaded-list h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--red);
  margin-bottom: 0.8rem;
}

#uploadItems {
  list-style: none;
}

#uploadItems li {
  background: #f8f1e3;
  border-left: 4px solid var(--orange);
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}

#uploadItems li strong {
  color: var(--red);
}

/* FOOTER */
footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  border-top: 6px solid var(--red);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border: 6px solid white;
  box-shadow: 0 0 40px #000;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

/* MAGAZINES & LINKS */
.magazines {
  background: var(--paper);
}
.mag-category {
  margin-bottom: 2.5rem;
}
.mag-category h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
  padding-bottom: 0.2rem;
}
.mag-category .tag {
  font-size: 0.85rem;
  background: var(--yellow);
  color: #111;
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  font-family: 'Roboto Condensed', sans-serif;
}
.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
.mag-item {
  background: white;
  border: 2px solid #333;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mag-item a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}
.mag-item a:hover {
  text-decoration: underline;
}
.mag-item .meta {
  font-size: 0.8rem;
  color: #666;
}
.cat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}
.cat-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--orange);
}
.cat-list a:hover {
  color: var(--red);
}
.mag-link {
  display: inline-block;
  background: var(--red);
  color: white !important;
  padding: 0.5rem 1rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 0.8rem;
  box-shadow: 3px 3px 0 #000;
}
.mag-link:hover {
  background: #a00000;
}

.links-section {
  background: #1f1f1f;
  color: #eee;
  max-width: none;
}
.links-section .section-title {
  color: var(--yellow);
  border-color: var(--orange);
  display: block;
  text-align: center;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.link-card {
  background: #2a2a2a;
  border-left: 5px solid var(--orange);
  padding: 1.2rem 1.4rem;
}
.link-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--yellow);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.link-card ul {
  list-style: none;
}
.link-card li {
  margin-bottom: 0.4rem;
}
.link-card a {
  color: #ffba08;
  text-decoration: none;
  font-size: 0.95rem;
}
.link-card a:hover {
  color: white;
  text-decoration: underline;
}

.cover-card .dl-btn {
  display: block;
  text-align: center;
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.cover-card .dl-btn:hover {
  background: #a00000;
}
