/* =============================================
   retro.css - Early 2000s web nostalgia layer
   for chavblog sitemap
   ============================================= */

/* --- Marquee banner --- */
.retro-marquee {
  background: #000080;
  color: #ffff00;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 6px 0;
  border-top: 3px solid #ff00ff;
  border-bottom: 3px solid #ff00ff;
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.retro-marquee marquee {
  display: inline-block;
}

/* --- Under Construction badge --- */
.retro-construction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: repeating-linear-gradient(
    45deg,
    #ffcc00,
    #ffcc00 10px,
    #000000 10px,
    #000000 20px
  );
  color: #fff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border: 3px solid #ff0000;
  text-shadow: 1px 1px 0 #000;
  margin: 8px 0;
}

/* --- Blink animation (RIP blink tag) --- */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.retro-blink {
  animation: blink 1s step-end infinite;
  color: #ff0000;
  font-weight: bold;
}

/* --- Hit counter widget --- */
.retro-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  border: 3px inset #888;
  padding: 8px 14px;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: #00ff00;
  text-align: center;
  gap: 4px;
}

.retro-counter .counter-label {
  color: #ffff00;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.retro-counter .counter-digits {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 4px;
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00;
}

/* --- Web ring strip --- */
.retro-webring {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(to right, #1a0033, #330066, #1a0033);
  border: 2px solid #9900ff;
  padding: 10px 16px;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: #cc99ff;
  margin: 12px 0;
}

.retro-webring a {
  color: #ff99ff;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #9900ff;
  padding: 2px 8px;
  background: #220044;
}

.retro-webring a:hover {
  background: #9900ff;
  color: #fff;
}

.retro-webring .ring-name {
  color: #ffccff;
  font-size: 0.8rem;
  font-weight: bold;
  text-shadow: 0 0 6px #cc00ff;
}

/* --- Guestbook CTA --- */
.retro-guestbook {
  background: #ffffcc;
  border: 2px dashed #ff6600;
  padding: 12px 16px;
  font-family: "Comic Sans MS", cursive;
  font-size: 0.85rem;
  color: #cc0000;
  text-align: center;
  margin: 12px 0;
}

.retro-guestbook a {
  color: #0000cc;
  font-weight: bold;
  text-decoration: underline;
}

/* --- Best viewed in badge --- */
.retro-bestviewed {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 6px 12px;
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  color: #000;
  text-align: center;
  line-height: 1.4;
}

.retro-bestviewed .bestviewed-logo {
  font-size: 1rem;
  font-weight: bold;
  color: #003399;
}

/* --- Glitter / rainbow heading --- */
@keyframes rainbow-shift {
  0%   { color: #cc0000; }
  16%  { color: #cc6600; }
  33%  { color: #aa8800; }
  50%  { color: #006600; }
  66%  { color: #004499; }
  83%  { color: #660099; }
  100% { color: #cc0000; }
}

.retro-rainbow {
  animation: rainbow-shift 2s linear infinite;
  font-family: "Comic Sans MS", cursive;
  font-weight: bold;
  font-size: 1.1rem;
  display: inline-block;
}

/* --- Sitemap tile retro badge overlay --- */
.retro-badge {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 6px;
  background: #ffee00;
  color: #000;
  border: 1px solid #cc8800;
  margin-top: 4px;
  font-weight: bold;
}

.retro-badge.new { background: #cc0000; color: #fff; border-color: #880000; }
.retro-badge.updated { background: #006600; color: #fff; border-color: #004400; }
.retro-badge.cool { background: #0044cc; color: #fff; border-color: #002288; }

/* --- Divider: the classic horizontal rainbow rule --- */
.retro-divider {
  height: 4px;
  border: none;
  background: linear-gradient(to right,
    #ff0000, #ff9900, #ffff00, #00cc00, #0099ff, #cc00ff, #ff0000
  );
  margin: 16px 0;
}

/* --- Footer: old-school copyright block --- */
.retro-footer {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: #555;
  text-align: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #aaa;
}

/* --- Retro section label --- */
.retro-section-label {
  font-family: "Comic Sans MS", cursive;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #7700cc;
  font-weight: bold;
  margin-bottom: 6px;
}

/* --- Sitemap-specific layout --- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.sitemap-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: #fff;
  border: 1px solid #d0d8e4;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, box-shadow 0.15s;
  min-height: 100px;
}

.sitemap-tile:hover {
  background: #eef4ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sitemap-tile .tile-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c2e;
  margin: 0 0 6px;
}

.sitemap-tile .tile-desc {
  font-size: 0.8rem;
  color: #4a4a6a;
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}

.sitemap-tile .tile-url {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: #8888aa;
  margin-top: 10px;
  word-break: break-all;
}

/* Section color strips */
.sitemap-section--pages    .sitemap-tile { border-left: 4px solid #0078d7; }
.sitemap-section--posts    .sitemap-tile { border-left: 4px solid #00a86b; }
.sitemap-section--styles   .sitemap-tile { border-left: 4px solid #9900ff; }
.sitemap-section--resources .sitemap-tile { border-left: 4px solid #ff6600; }
