/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', monospace;
  background-color: #1a0a2e;
  color: #e0d0ff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== SPARKLE BACKGROUND ===== */
.sparkles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #ff69b4, transparent),
    radial-gradient(2px 2px at 80% 70%, #00ffff, transparent),
    radial-gradient(1px 1px at 50% 50%, #ffffff, transparent),
    radial-gradient(2px 2px at 10% 80%, #ff69b4, transparent),
    radial-gradient(1px 1px at 70% 20%, #ffff00, transparent),
    radial-gradient(2px 2px at 30% 60%, #00ffff, transparent),
    radial-gradient(1px 1px at 90% 40%, #ff69b4, transparent),
    radial-gradient(2px 2px at 60% 90%, #ffffff, transparent);
  animation: sparkle-drift 8s ease-in-out infinite alternate;
}

@keyframes sparkle-drift {
  0%   { opacity: 0.4; transform: translateY(0); }
  100% { opacity: 0.8; transform: translateY(-20px); }
}

/* ===== TOP MARQUEE BAR ===== */
.top-bar {
  background: linear-gradient(90deg, #ff69b4, #9b30ff, #00ffff, #ff69b4);
  color: #1a0a2e;
  font-size: 8px;
  padding: 6px 0;
  border-bottom: 3px solid #ff69b4;
  position: relative;
  z-index: 10;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.site-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(180deg, #2d1b69, #1a0a2e);
  border: 3px solid #ff69b4;
  border-radius: 12px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, #ff69b433, transparent, #00ffff33, transparent);
  animation: header-glow 6s linear infinite;
}

@keyframes header-glow {
  to { transform: rotate(360deg); }
}

.title {
  font-size: 22px;
  color: #ff69b4;
  text-shadow:
    0 0 10px #ff69b4,
    0 0 20px #ff69b488,
    3px 3px 0 #9b30ff;
  position: relative;
  animation: title-pulse 2s ease-in-out infinite alternate;
}

@keyframes title-pulse {
  from { text-shadow: 0 0 10px #ff69b4, 0 0 20px #ff69b488, 3px 3px 0 #9b30ff; }
  to   { text-shadow: 0 0 20px #ff69b4, 0 0 40px #ff69b4aa, 3px 3px 0 #9b30ff; }
}

.subtitle {
  font-size: 8px;
  color: #00ffff;
  margin-top: 12px;
  position: relative;
}

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

@keyframes blink-anim {
  50% { opacity: 0; }
}

/* ===== NAV BAR ===== */
.nav-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #ff69b4;
  text-decoration: none;
  padding: 8px 14px;
  border: 2px solid #ff69b4;
  border-radius: 6px;
  background: #2d1b69;
  transition: all 0.2s;
}

.nav-link:hover {
  background: #ff69b4;
  color: #1a0a2e;
  box-shadow: 0 0 15px #ff69b488;
  transform: scale(1.05);
}

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.avatar-box, .mood-box, .fun-facts, .now-playing, .visitor-box {
  background: #2d1b69;
  border: 2px solid #9b30ff;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.avatar-placeholder {
  font-size: 48px;
  margin-bottom: 8px;
}

.avatar-name {
  font-size: 10px;
  color: #ff69b4;
}

.mood-box h3, .fun-facts h3, .now-playing h3, .visitor-box h3 {
  font-size: 8px;
  color: #00ffff;
  margin-bottom: 10px;
}

.mood-text {
  font-size: 7px;
  color: #e0d0ff;
}

.fun-facts ul {
  list-style: none;
  padding: 0;
}

.fun-facts li {
  font-size: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed #9b30ff44;
}

.song-text {
  font-size: 7px;
  color: #e0d0ff;
}

.counter-digits {
  display: inline-block;
  background: #0a0a0a;
  color: #ff69b4;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 3px;
  margin-top: 5px;
  border: 2px inset #9b30ff;
}

/* ===== CARDS (shared) ===== */
.card {
  background: linear-gradient(180deg, #2d1b69ee, #1a0a2eee);
  border: 2px solid #9b30ff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 14px;
  color: #ff69b4;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 0 0 8px #ff69b488;
}

.pixel-icon {
  color: #00ffff;
}

/* ===== ABOUT SECTION ===== */
.about-content p {
  font-size: 8px;
  line-height: 2;
  margin-bottom: 12px;
  color: #d0c0f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.stat-item {
  background: #1a0a2e88;
  border: 1px solid #9b30ff66;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: 7px;
  color: #9b30ff;
}

.stat-value {
  font-size: 8px;
  color: #00ffff;
}

/* ===== BLOG POSTS ===== */
.blog-post {
  background: #1a0a2e88;
  border: 1px dashed #9b30ff66;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.blog-post:last-child {
  margin-bottom: 0;
}

.post-header h3 {
  font-size: 10px;
  color: #ff69b4;
  margin-bottom: 8px;
}

.post-date {
  display: block;
  font-size: 7px;
  color: #9b30ff;
  margin-bottom: 12px;
}

.blog-post p {
  font-size: 8px;
  line-height: 2;
  margin-bottom: 10px;
  color: #d0c0f0;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed #9b30ff44;
}

.tags {
  font-size: 7px;
  color: #00ffff;
}

.comments-link {
  font-size: 7px;
  color: #ff69b4;
  cursor: pointer;
}

/* ===== LINKS SECTION ===== */
.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  margin-bottom: 8px;
}

.retro-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #00ffff;
  text-decoration: none;
  transition: all 0.2s;
}

.retro-link:hover {
  color: #ff69b4;
  text-shadow: 0 0 10px #ff69b488;
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 25px 15px;
  margin-top: 10px;
  border-top: 3px solid #9b30ff66;
}

.site-footer p {
  font-size: 8px;
  color: #e0d0ff;
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 7px !important;
  color: #9b30ff !important;
}

.under-construction {
  margin-top: 15px;
  font-size: 8px;
  color: #ffff00;
  animation: blink-anim 1.2s step-end infinite;
}

.emoji-flag {
  font-size: 14px;
}

/* ===== SCROLLBAR (Y2K style) ===== */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #1a0a2e;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff69b4, #9b30ff);
  border-radius: 6px;
}
