/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === BASE — MYSPACE EMO === */
body {
  font-family: 'Gloria Hallelujah', 'Comic Sans MS', cursive;
  background-color: #0a0a0a;
  background-image:
    repeating-conic-gradient(#111 0% 25%, #0a0a0a 0% 50%) 0 0 / 20px 20px;
  color: #ccc;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ctext y='18' font-size='18'%3E%E2%9C%96%3C/text%3E%3C/svg%3E") 12 12, crosshair;
  min-height: 100vh;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

a, button, [data-spotify-id], .song-link, .gallery-item {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ctext y='18' font-size='18'%3E%E2%99%A5%3C/text%3E%3C/svg%3E") 12 12, pointer;
}

a {
  color: #ff3366;
  text-decoration: none;
  border-bottom: 1px solid #ff336644;
  transition: color 0.3s, border-color 0.3s, transform 0.2s, text-shadow 0.3s;
}

a:hover {
  color: #ff66aa;
  border-bottom: 1px dashed #ff66aa;
  text-shadow: 0 0 8px #ff336644;
  transform: scale(1.05);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  filter: url(#crayon);
}

/* === ANIMATIONS === */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.08); opacity: 1; }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes jiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
  75% { transform: rotate(-2deg); }
}

@keyframes emoGlow {
  0% { text-shadow: 0 0 8px #ff0033; }
  33% { text-shadow: 0 0 8px #cc00ff; }
  66% { text-shadow: 0 0 8px #ff3366; }
  100% { text-shadow: 0 0 8px #ff0033; }
}

@keyframes rainbowGlow {
  0% { text-shadow: 0 0 8px #ff0033; }
  25% { text-shadow: 0 0 8px #cc00ff; }
  50% { text-shadow: 0 0 8px #ff3366; }
  75% { text-shadow: 0 0 8px #990033; }
  100% { text-shadow: 0 0 8px #ff0033; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255,0,51,0.3); }
  50% { box-shadow: 0 0 20px rgba(255,0,51,0.6), 0 0 40px rgba(255,0,51,0.2); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(-1.5deg); }
  75% { transform: rotate(1.5deg); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scribbleDraw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes rainbowText {
  0% { color: #ff0033; }
  25% { color: #ff66aa; }
  50% { color: #cc00ff; }
  75% { color: #ff3366; }
  100% { color: #ff0033; }
}

@keyframes sparklePulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.blink {
  animation: blink 1s step-end infinite;
}

/* === EMO UTILITIES === */

.crayon-border {
  border: 2px solid #ff0033;
  border-radius: 0;
}

.scribble-underline {
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='8'%3E%3Cpath d='M0,5 Q25,0 50,5 T100,5 T150,5 T200,5' fill='none' stroke='%23ff0033' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 200px 8px;
  padding-bottom: 6px;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

.stars::before {
  content: "✖ ";
  color: #ff0033;
}

.stars::after {
  content: " ✖";
  color: #ff0033;
}

/* Under construction banner */
.under-construction {
  text-align: center;
  color: #ff0033;
  font-size: 1.1rem;
  filter: url(#crayon);
  transform: rotate(-0.5deg);
  animation: emoGlow 4s ease-in-out infinite, wiggle 3s ease-in-out infinite;
}

.under-construction::before { content: "✖ "; }
.under-construction::after { content: " ✖"; }

/* Navigation */
.retro-nav {
  text-align: center;
  padding: 10px 0;
  font-size: 1.2rem;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #0a0a0a;
  background-image: repeating-conic-gradient(#111 0% 25%, #0a0a0a 0% 50%) 0 0 / 20px 20px;
  border-bottom: 3px solid #ff0033;
  padding: 16px 0;
  filter: url(#crayon);
}

.retro-nav a {
  color: #ff3366;
  text-decoration: none;
  border-bottom: none;
  padding: 8px 14px;
  transition: background 0.3s, transform 0.2s, color 0.3s, text-shadow 0.3s;
  display: inline-block;
}

.retro-nav a:nth-child(even) {
  color: #cc00ff;
}

.retro-nav a:hover {
  color: #ff66aa;
  background: rgba(255, 0, 51, 0.1);
  border-bottom: none;
  text-shadow: 0 0 10px #ff003366;
  transform: scale(1.1) rotate(-2deg);
  animation: jiggle 0.4s ease-in-out;
}

.retro-nav .sep {
  color: #333;
  padding: 0 4px;
  font-size: 1.1rem;
}

/* Backgrounds */
.bg-tiled {
  background-color: #0a0a0a;
  background-image:
    repeating-conic-gradient(#0f0f0f 0% 25%, #0a0a0a 0% 50%) 0 0 / 20px 20px;
}

.bg-dotted {
  background-color: #0a0a0a;
  background-image:
    radial-gradient(circle, #1a0010 1px, transparent 1px);
  background-size: 16px 16px;
}

/* === EMO FLAIR === */

.rainbow-text {
  animation: rainbowText 4s linear infinite;
}

.glow {
  text-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}

/* Sparkle divider — now emo hearts and x's */
.sparkle-divider {
  text-align: center;
  padding: 12px 0;
  font-size: 1.2rem;
  letter-spacing: 8px;
  color: #ff0033;
  opacity: 0.6;
}

.sparkle-divider span {
  display: inline-block;
  animation: sparklePulse 2s ease-in-out infinite;
}

.sparkle-divider span:nth-child(2) { animation-delay: 0.3s; color: #cc00ff; }
.sparkle-divider span:nth-child(3) { animation-delay: 0.6s; color: #ff3366; }
.sparkle-divider span:nth-child(4) { animation-delay: 0.9s; color: #990033; }
.sparkle-divider span:nth-child(5) { animation-delay: 1.2s; color: #ff66aa; }
.sparkle-divider span:nth-child(6) { animation-delay: 0.4s; color: #cc00ff; }
.sparkle-divider span:nth-child(7) { animation-delay: 0.7s; }

/* Floating decorative stamps */
.deco-stamp {
  position: fixed;
  pointer-events: none;
  opacity: 0.1;
  font-size: 3rem;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
  color: #ff0033;
}

.deco-stamp:nth-child(1) { top: 15%; left: 3%; animation-delay: 0s; }
.deco-stamp:nth-child(2) { top: 40%; right: 4%; animation-delay: 1.5s; font-size: 2.5rem; }
.deco-stamp:nth-child(3) { top: 65%; left: 5%; animation-delay: 3s; font-size: 2rem; }
.deco-stamp:nth-child(4) { top: 85%; right: 6%; animation-delay: 4.5s; font-size: 2.8rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: #ff0033;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover { background: #ff3366; }

/* Selection */
::selection {
  background: #ff0033;
  color: #000;
}

/* Best viewed */
.best-viewed {
  text-align: center;
  color: #333;
  font-size: 0.8rem;
  padding: 8px;
  transform: rotate(0.5deg);
  animation: fadeInUp 1s ease-out 1.5s both;
}
