/* === Base Sparkle Trail === */
.mouse-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  opacity: 0.9;
  animation: sparkleFade 0.6s ease-out;
  z-index: 9999;
}

@keyframes sparkleFade {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.5); opacity: 0; }
}

/* === Sparkle Styles === */
.sparkle-style-1 {
  background: #ffcc00;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffcc00;
}

.sparkle-style-2 {
  background: #ff6ec7;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff6ec7;
}

.sparkle-style-3 {
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ffff;
}

.sparkle-style-4 {
  background: #00ff00;
  width: 6px;
  height: 6px;
  border-radius: 0;
  box-shadow: 0 0 2px #00ff00;
}

.sparkle-style-5::after {
  content: '🍍';
  font-size: 14px;
  position: absolute;
  top: -6px;
  left: -6px;
  pointer-events: none;
  user-select: none;
}

.sparkle-style-6::after {
  content: '☠️';
  font-size: 14px;
  position: absolute;
  top: -6px;
  left: -6px;
}

.sparkle-style-7::after {
  content: '💨';
  font-size: 16px;
  position: absolute;
  top: -6px;
  left: -6px;
  opacity: 0.9;
  animation: smokeFade 0.6s ease-out forwards;
  pointer-events: none;
  user-select: none;
}

@keyframes smokeFade {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5) translateY(-10px);
    opacity: 0;
  }
}

/* === Seasonal Floating Emojis === */
.floating-emoji {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  animation: floatUp 6s linear forwards;
  opacity: 0.8;
  z-index: 9999;
}

@keyframes floatUp {
  0% {
    transform: translateY(0vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg);
    opacity: 0;
  }
}

.falling-leaf {
  position: fixed;
  font-size: 24px;
  pointer-events: none;
  animation: fallDown 8s ease-in infinite;
  opacity: 0.8;
  z-index: 9999;
}

@keyframes fallDown {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* === Theme: Midnight === */
body.theme-midnight {
  background-color: #111;
  color: #eee;
}

body.theme-midnight header {
  background-color: #1a1a1a;
  color: #ffcc00;======
  border-bottom: 1px solid #333;
  padding: 10px;
}

body.theme-midnight nav {
  background-color: #222;
  border-bottom: 1px solid #333;
}

body.theme-midnight nav a,
body.theme-midnight nav button,
body.theme-midnight nav select {
  color: #ffcc00;
  background: none;
  border: none;
}

body.theme-midnight nav a:hover {
  text-decoration: underline;
}

body.theme-midnight .marquee {
  background-color: #1e1e1e;
  color: #ccc;
  border: 1px solid #444;
  padding: 8px;
  font-style: italic;
}

body.theme-midnight main h2,
body.theme-midnight main h3 {
  color: #ffcc00;
}

body.theme-midnight main a {
  color: #ffcc00;
  text-decoration: underline;
}

body.theme-midnight footer {
  background-color: #1a1a1a;
  color: #888;
  border-top: 1px solid #333;
}

/* === Theme: Vaporwave === */
body.theme-vaporwave {
  background: linear-gradient(135deg, #ff9ff3, #feca57);
  color: #222;
}

/* === Theme: Summer === */
body.theme-summer {
  background-color: #fffbe6;
  color: #333;
}

.theme-summer a {
  color: #ff6600;
}

.theme-summer .site-nav {
  background-color: #ffeb99;
  border-color: #ffcc00;
}

.theme-summer .profile-card,
.theme-summer .vault-custom {
  background: #fff8d9;
  border-color: #ffd966;
}

/* === Theme: Autumn === */
body.theme-autumn {
  background-color: #fdf6f0;
  color: #3b2f2f;
}

.theme-autumn a {
  color: #8b4513;
}

.theme-autumn .site-nav {
  background-color: #e0c9a6;
  border-color: #b85c38;
}

.theme-autumn .profile-card,
.theme-autumn .vault-custom {
  background: #f9e8d2;
  border-color: #d4a373;
}

/* Autumn Theme Header */
body.theme-autumn header {
  background-color: #e0c9a6;
  color: #3b2f2f;
  border-bottom: 1px solid #b85c38;
}

/* Midnight Theme Header */
body.theme-midnight header {
  background-color: #1a1a1a;
  color: #ffcc00;
  border-bottom: 1px solid #333;
}

/* Vaporwave Theme Header */
body.theme-vaporwave header {
  background: linear-gradient(135deg, #ff9ff3, #feca57);
  color: #222;
}

/* Summer Theme Header */
body.theme-summer header {
  background-color: #ffeb99;
  color: #ff6600;
  border-bottom: 1px solid #ffd966;
}

/* Autumn Theme Nav Bar */
body.theme-autumn nav.main-nav {
  background-color: #e0c9a6;
}

body.theme-autumn nav.main-nav a {
  color: #5a2e1a;
  text-decoration: none;
  font-weight: bold;
}

body.theme-autumn nav.main-nav a:hover {
  text-decoration: underline;
  color: #8b4513;
}

/* === Autumn Theme Nav Icons === */
body.theme-autumn nav.main-nav a::before {
  content: '🍂';
  margin-right: 6px;
}

/* === Summer Theme Nav Icons === */
body.theme-summer nav.main-nav a::before {
  content: '☀️';
  margin-right: 6px;
}

/* === Midnight Theme Nav Icons === */
body.theme-midnight nav.main-nav a::before {
  content: '🌙';
  margin-right: 6px;
}

nav.main-nav a::before {
  display: inline-block;
  width: 1.2em;
  text-align: center;
}

body.theme-midnight .sidebar {
  background-color: #1a1a1a;
  color: #ccc;
  border-right: 1px solid #333;
}

body.theme-midnight .sidebar a {
  color: #ffcc00;
  text-decoration: none;
}

body.theme-midnight .sidebar a:hover {
  text-decoration: underline;
}

/* Midnight theme: video card cleanup */
body.theme-midnight .video-card {
  background-color: #1a1a1a;
  border: none;
  color: #eee;
  box-shadow: none;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

body.theme-midnight .video-card:hover {
  background-color: #222;
}

/* Remove white lines around thumbnails */
body.theme-midnight .thumb-wrapper img {
  border: none;
  background: none;
  display: block;
  width: 100%;
  height: auto;
}

/* Optional: soften duration badge */
body.theme-midnight .duration-badge {
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffcc00;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  position: absolute;
  bottom: 6px;
  right: 6px;
}

/* === Theme: 2005 === */
body.theme-2005 {
  background-color: #f1f1f1; /* Off-white backdrop for that 'YouTube comments at 3am' vibe */
  color: #000;
  font-family: 'Verdana', 'Tahoma', sans-serif;
}

body.theme-2005 header {
  background-color: #cc0000; /* Classic YouTube red */
  color: #fff;
  border-bottom: 3px solid #999;
  padding: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.theme-2005 nav {
  background-color: #eeeeee;
  border-bottom: 2px solid #999;
  font-family: 'Trebuchet MS', sans-serif;
}

body.theme-2005 nav a,
body.theme-2005 nav button,
body.theme-2005 nav select {
  color: #0000cc;
  background-color: transparent;
  border: none;
  font-size: 14px;
  text-decoration: underline;
}

body.theme-2005 nav a:hover {
  color: #cc0000;
}

body.theme-2005 main h2,
body.theme-2005 main h3 {
  font-family: 'Impact', sans-serif;
  color: #cc0000;
  text-shadow: 1px 1px #fff;
}

body.theme-2005 main a {
  color: #0000cc;
  text-decoration: underline;
}

body.theme-2005 .comment-section {
  background-color: #fff;
  border: 2px dashed #cc0000;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
}

body.theme-2005 .comment-section::before {
  content: "Comment Madness Mode: ??";
  display: block;
  font-weight: bold;
  color: #ff6600;
  margin-bottom: 8px;
}

body.theme-2005 .mascot {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: url('/images/stickapl.png') no-repeat center;
  background-size: contain;
  animation: bounce 1.2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

body.theme-2005 footer {
  background-color: #dddddd;
  color: #444;
  border-top: 2px solid #999;
  padding: 12px;
  font-size: 12px;
  text-align: center;
}


/* === Theme: YouTube 2008 === */
body.theme-youtube2008 {
  background-color: #f1f1f1;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: #333;
}

body.theme-youtube2008 header {
  background-color: #eee;
  color: #000;
  border-bottom: 2px solid #ccc;
  padding: 10px;
}

body.theme-youtube2008 nav {
  background-color: #ddd;
  border-bottom: 2px solid #bbb;
}

body.theme-youtube2008 nav a,
body.theme-youtube2008 nav button,
body.theme-youtube2008 nav select {
  color: #000;
  background: none;
  border: none;
  font-weight: bold;
}

body.theme-youtube2008 nav a:hover {
  text-decoration: underline;
}

body.theme-youtube2008 .marquee {
  background-color: #fff;
  color: #444;
  border: 1px solid #999;
  padding: 8px;
  font-style: italic;
}

body.theme-youtube2008 main h2,
body.theme-youtube2008 main h3 {
  color: #cc0000;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

body.theme-youtube2008 main a {
  color: #cc0000;
  text-decoration: underline;
}

body.theme-youtube2008 footer {
  background-color: #eee;
  color: #333;
  border-top: 2px solid #ccc;
}

/* 🧱 UI Shell Styles (Scoped to theme) */
body.theme-youtube2008 .video-box {
  border: 2px solid #999;
  background-color: #000;
  padding: 10px;
}

body.theme-youtube2008 .video-player {
  width: 100%;
  height: 360px;
  background-color: #000;
  border: 3px solid #cc0000;
}

body.theme-youtube2008 .play-button {
  background-color: #cc0000;
  color: white;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}

body.theme-youtube2008 .view-counter {
  font-family: "Courier New", monospace;
  background-color: #eee;
  border: 1px solid #bbb;
  padding: 5px 10px;
  display: inline-block;
  margin-top: 5px;
}

body.theme-youtube2008 .comment-section {
  border-top: 2px solid #ccc;
  padding-top: 10px;
  margin-top: 20px;
}

body.theme-youtube2008 .comment {
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  display: flex;
  gap: 10px;
}

body.theme-youtube2008 .comment img {
  width: 48px;
  height: 48px;
  border: 1px solid #999;
}

body.theme-youtube2008 .comment-user {
  font-weight: bold;
  color: #2a2a2a;
}

body.theme-youtube2008 .comment-text {
  font-size: 14px;
  color: #444;
}

body.theme-youtube2008 .thumbnail {
  filter: contrast(120%) saturate(80%) blur(0.3px);
  image-rendering: pixelated;
  width: 160px;
  height: 90px;
  border: 2px solid #999;
}

