/* ===============================
   BASE STYLES
=============================== */
:root {
  --bg-light: #fdf6e3;
  --bg-dark: #1a1a1a;
  --text-light: #111;
  --text-dark: #eee;
  --accent1: #ff6f61;
  --accent2: #6bffb8;
  --accent3: #61b6ff;
  --accent4: #ff61e0;
  --header-height: 60px;
  --sidebar-width: 220px;
}

body {
  font-family: 'Press Start 2P', monospace;
  margin: 0;
  background: var(--bg-light);
  color: var(--text-light);
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}

/* ===============================
   HEADER & MARQUEE
=============================== */
header {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem 2rem;
  z-index: 10;
  text-shadow: 2px 2px #000;
}

.top-marquee, .bottom-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* ===============================
   NAVIGATION
=============================== */
nav {
  position: sticky;
  top: var(--header-height);
  background: linear-gradient(90deg, var(--accent3), var(--accent4));
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.5rem 0;
  z-index: 9;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

nav a:hover {
  color: var(--accent2);
  text-shadow: 2px 2px #111;
  transition: 0.2s;
}

/* ===============================
   LAYOUT
=============================== */
main {
  display: flex;
  max-width: 1200px;
  margin: 1rem auto;
  gap: 1rem;
}

aside.left, aside.right {
  width: var(--sidebar-width);
  background: linear-gradient(135deg, var(--accent1), var(--accent4));
  padding: 1rem;
  position: sticky;
  top: calc(var(--header-height) + 50px);
  height: fit-content;
  border: 2px solid #000;
  box-shadow: 2px 2px #444;
}

section.center {
  flex: 1;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  padding: 1rem;
  border: 2px solid #000;
  box-shadow: 2px 2px #444;
}

.blog-post {
  padding: 20px;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 0.8rem;
  margin-bottom: 20px;
  opacity: 0.7;
}

.post-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.post-content img {
  max-width: 100%;
  image-rendering: pixelated;
}

/* ===== PIXEL CODE BLOCKS ===== */

pre {
  background: #111;
  border: 3px solid #00ff99;
  padding: 16px;
  overflow-x: auto;
  box-shadow: 4px 4px 0 #000;
  margin: 2rem 0;
}

code {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #00ff99;
}

pre code {
  display: block;
  line-height: 1.6;
}

/* ===== PIXEL CODE BLOCKS ===== */

/* ===== PIXEL CODE BLOCKS ===== */

pre {
  background: #111;
  border: 3px solid #00ff99;
  padding: 16px;
  overflow-x: auto;
  box-shadow: 4px 4px 0 #000;
  margin: 2rem 0;
}

code {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #00ff99;
}

pre code {
  display: block;
  line-height: 1.6;
}

/* Optional terminal header bar */
.code-block {
  position: relative;
}

.code-block::before {
  content: "SCHMOOKEY@linux:~$";
  display: block;
  font-size: 0.7rem;
  color: #ff00ff;
  margin-bottom: 8px;
}


/* Optional terminal header bar */
.code-block {
  position: relative;
}

.code-block::before {
  content: "SCHMOOKEY@linux:~$";
  display: block;
  font-size: 0.7rem;
  color: #ff00ff;
  margin-bottom: 8px;
}

/* Optional terminal header bar */
.code-block {
  position: relative;
}

.code-block::before {
  content: "SCHMOOKEY@linux:~$";
  display: block;
  font-size: 0.7rem;
  color: #ff00ff;
  margin-bottom: 8px;
}

/* Optional terminal header bar */
.code-block {
  position: relative;
}

.code-block::before {
  content: "SCHMOOKEY@linux:~$";
  display: block;
  font-size: 0.7rem;
  color: #ff00ff;
  margin-bottom: 8px;
}

/* ===== BANDCAMP STYLING ===== */

.bandcamp-wrapper {
  margin: 2rem 0;
  border: 3px solid #0f91ff;
  padding: 8px;
  background: #111;
  box-shadow: 4px 4px 0px #000;
}

.bandcamp-wrapper iframe {
  width: 100%;
  height: 42px;
  border: none;
  display: block;
}

.bandcamp-embed {
  border: 0;
  width: 100%;
  height: 42px;
}

/* ===== TAGS ===== */

.post-tags {
  margin-bottom: 1.5rem;
}

.tag {
  display: inline-block;
  background: #222;
  border: 2px solid #0f91ff;
  padding: 4px 8px;
  font-size: 0.7rem;
  margin-right: 6px;
  text-decoration: none;
  box-shadow: 2px 2px 0 #000;
}

.tag:hover {
  background: #0f91ff;
  color: #000;
}

/* ===============================
   CARDS / BLOG / WEBRINGS
=============================== */
.blog-card, .webring-card {
  background: linear-gradient(135deg, var(--accent4), var(--accent1));
  border: 2px solid #000;
  margin: 1rem 0;
  padding: 1rem;
  color: #fff;
  text-shadow: 1px 1px #000;
  transition: transform 0.2s;
}

.blog-card:hover, .webring-card:hover {
  transform: scale(1.03);
}

/* Buttons */
.webring-buttons a, .read-more {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #000;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #fff;
  transition: 0.2s;
}

.webring-buttons a:hover, .read-more:hover {
  background: var(--accent2);
  color: #000;
  border-color: #000;
}

/* ===== BACK LINK ===== */

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  font-size: 0.8rem;
}

.back-link::before {
  content: "◀ ";
}

/* ===============================
   FOOTER
=============================== */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  border-top: 2px solid #fff;
}

/* ===============================
   DARK MODE OVERRIDES
=============================== */
body.dark-mode header {
  background: linear-gradient(90deg, var(--accent4), var(--accent3));
}

body.dark-mode nav {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

body.dark-mode aside.left, body.dark-mode aside.right {
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
}

#dark-mode-toggle.active .knob {
  transform: translateX(20px);
}

/* ===============================
   PIXEL ART / RETRO EFFECT
=============================== */
h1, h2, h3 {
  font-family: 'Press Start 2P', monospace;
  text-shadow: 2px 2px #000;
}

a {
  font-family: 'Press Start 2P', monospace;
}

/* Scrollbar retro style */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: var(--accent2);
  border: 2px solid #000;
  
  /* ===============================
   WEBRINGS TROPHY STYLE
=============================== */
.webrings-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.webring-trophy {
  width: 220px;
  border: 4px solid #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffe066, #ff6b6b);
  color: #111;
  text-align: center;
  padding: 1rem;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: trophy-drop 0.5s ease forwards;
  opacity: 0;
}

.webring-trophy:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 6px 6px 0 #000;
}

.trophy-image img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 2px solid #fff;
  background: #222;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 2px 2px #444;
}

.trophy-info h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1rem;
  text-shadow: 1px 1px #000;
}

.trophy-info p {
  font-size: 0.85rem;
}

.webring-buttons {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-around;
}

.webring-buttons a {
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  font-weight: bold;
  border: 2px solid #fff;
  transition: 0.2s;
}

.webring-buttons a:hover {
  background: #ff6b6b;
  color: #fff;
  border-color: #000;
}

.blog-post {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
}
.blog-post h3 {
  margin-top: 0;
}
.blog-post time {
  color: #666;
  font-size: 0.9em;
}

.webring-list {
  list-style: none;
  padding: 0;
}
.webring-list li {
  margin-bottom: 15px;
}

/* Webring List Styling */
.webring-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.webring-list li {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
}
.webring-list a {
  font-weight: bold;
  color: #000;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}
.webring-list a:hover {
  text-decoration: underline;
}
.webring-list p {
  margin: 0;
  color: #666;
}

/* Tablet */
@media (max-width: 900px) {
  .three-column {
    flex-direction: column;
  }
  .left-sidebar, .right-sidebar {
    position: static;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .site-nav a {
    display: block;
    margin: 5px 0;
  }
  .marquee-content {
    font-size: 0.8em;
  }
}

/* ===============================
   TROPHY ANIMATION
=============================== */
@keyframes trophy-drop {
  0% { transform: translateY(-50px) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
}