/* ============================================
   TUSHAR'S AWESOME HOMEPAGE - STYLESHEET
   Best viewed in Netscape Navigator 4.0
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=VT323&family=Press+Start+2P&display=swap');

/* --- CSS Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --hot-pink: #FF69B4;
  --lime: #00FF00;
  --cyan: #00FFFF;
  --yellow: #FFFF00;
  --magenta: #FF00FF;
  --bright-blue: #0000FF;
  --red: #FF0000;
  --orange: #FF6600;
  --purple: #9900CC;
  --bg-dark: #000033;
  --bg-panel: #C0C0C0;
  --border-light: #FFFFFF;
  --border-dark: #808080;
  --border-darker: #404040;
  --comic-sans: 'Comic Neue', 'Comic Sans MS', cursive;
  --pixel-font: 'Press Start 2P', monospace;
  --vt323: 'VT323', monospace;
}

body {
  font-family: var(--comic-sans);
  background-color: var(--bg-dark);
  color: var(--yellow);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%23FF00FF" opacity="0.7"/></svg>') 10 10, auto;
}

/* --- Starfield Background --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 60%, #fff 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 50% 10%, var(--cyan) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 40%, #fff 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 90% 80%, var(--yellow) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 75%, #fff 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 90%, #fff 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 15%, var(--hot-pink) 50%, transparent 50%),
    radial-gradient(1px 1px at 25% 45%, #fff 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 70%, #fff 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 55%, #fff 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 5% 50%, var(--lime) 50%, transparent 50%),
    radial-gradient(1px 1px at 95% 30%, #fff 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 35%, #fff 50%, transparent 50%),
    radial-gradient(1px 1px at 55% 55%, #fff 50%, transparent 50%),
    radial-gradient(1px 1px at 75% 95%, #fff 50%, transparent 50%);
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* --- Main Container --- */
.main-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
}

/* --- Under Construction Banner --- */
.under-construction {
  text-align: center;
  padding: 8px;
  background: repeating-linear-gradient(
    45deg,
    var(--yellow),
    var(--yellow) 10px,
    #000 10px,
    #000 20px
  );
  border: 3px outset var(--yellow);
  margin-bottom: 10px;
  animation: pulse-banner 1s ease-in-out infinite;
}

.under-construction span {
  background: #000;
  color: var(--yellow);
  font-family: var(--pixel-font);
  font-size: 10px;
  padding: 4px 12px;
  display: inline-block;
  letter-spacing: 1px;
}

@keyframes pulse-banner {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

/* --- Marquee Banner --- */
.marquee-container {
  background: var(--magenta);
  border: 2px inset var(--border-dark);
  padding: 4px 0;
  overflow: hidden;
  margin-bottom: 12px;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 15s linear infinite;
  font-family: var(--comic-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--yellow);
  text-shadow: 1px 1px 0 #000;
}

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

/* --- Profile Card --- */
.profile-card {
  background: linear-gradient(135deg, #1a0033 0%, #000066 50%, #003300 100%);
  border: 3px outset var(--bg-panel);
  padding: 20px;
  text-align: center;
  position: relative;
  margin-bottom: 12px;
}

/* Sparkle corners */
.profile-card::before,
.profile-card::after {
  content: "\2728";
  position: absolute;
  font-size: 20px;
  animation: sparkle-rotate 2s linear infinite;
}
.profile-card::before { top: 8px; left: 12px; }
.profile-card::after { top: 8px; right: 12px; animation-delay: 1s; }

@keyframes sparkle-rotate {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.3) rotate(180deg); opacity: 0.6; }
}

/* --- Profile Photo --- */
.profile-photo-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 4px solid var(--hot-pink);
  box-shadow:
    0 0 10px var(--hot-pink),
    0 0 20px var(--magenta),
    inset 0 0 10px rgba(255, 105, 180, 0.3);
  overflow: hidden;
  animation: glow-ring 3s ease-in-out infinite;
  position: relative;
  background: #333;
}

.profile-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #333, #555);
  color: var(--cyan);
  font-family: var(--vt323);
  font-size: 14px;
}

@keyframes glow-ring {
  0%, 100% { box-shadow: 0 0 10px var(--hot-pink), 0 0 20px var(--magenta); }
  50% { box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--bright-blue); }
}

/* --- Display Name & Username --- */
.display-name {
  font-family: var(--comic-sans);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-shadow:
    2px 2px 0 var(--hot-pink),
    -1px -1px 0 var(--cyan);
  margin-bottom: 2px;
}

.username {
  font-family: var(--vt323);
  font-size: 20px;
  color: var(--cyan);
  margin-bottom: 10px;
}

/* --- Bio --- */
.bio {
  font-family: var(--comic-sans);
  font-size: 14px;
  color: var(--lime);
  line-height: 1.6;
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.bio p {
  margin-bottom: 4px;
}

.bio .knife-quote {
  color: var(--yellow);
  font-weight: 700;
  font-style: italic;
  animation: blink-text 1.5s step-end infinite;
}

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

/* --- Stats Row --- */
.stats-row {
  display: flex;
  justify-content: space-around;
  border-top: 2px solid var(--hot-pink);
  border-bottom: 2px solid var(--hot-pink);
  padding: 12px 0;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.4);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--hot-pink);
}

.stat-value {
  font-family: var(--pixel-font);
  font-size: 16px;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--vt323);
  font-size: 14px;
  color: var(--hot-pink);
  text-transform: uppercase;
}

/* --- Hit Counter --- */
.hit-counter {
  display: inline-flex;
  background: #000;
  border: 2px inset #666;
  padding: 2px;
  gap: 1px;
}

.hit-digit {
  background: #001a00;
  color: var(--lime);
  font-family: var(--vt323);
  font-size: 18px;
  width: 16px;
  text-align: center;
  border: 1px solid #003300;
  padding: 1px 0;
}

/* --- Badges Row --- */
.badges-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px;
}

.badge {
  font-family: var(--pixel-font);
  font-size: 7px;
  padding: 6px 10px;
  border: 2px outset var(--bg-panel);
  background: var(--bg-panel);
  color: #000;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  max-width: 160px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.1s;
}

.badge:hover {
  transform: scale(1.05);
}

.badge:active {
  border-style: inset;
}

.badge-netscape {
  background: linear-gradient(180deg, #4a7ab5 0%, #2a4a85 100%);
  color: #fff;
  border-color: #6a9ad5;
}

.badge-guestbook {
  background: linear-gradient(180deg, #cc9900 0%, #996600 100%);
  color: #fff;
  border-color: #eebb33;
}

/* --- Link Buttons --- */
.link-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 10px;
}

.retro-button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-family: var(--comic-sans);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: 3px outset;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: all 0.1s;
  letter-spacing: 1px;
}

.retro-button:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.retro-button:active {
  border-style: inset;
  transform: translateY(1px);
  box-shadow: none;
}

/* --- Book Quote Widget --- */
.quote-widget {
  background: linear-gradient(180deg, #1a0a2e 0%, #0d0d3d 100%);
  border: 3px outset var(--purple);
  margin-bottom: 16px;
  overflow: hidden;
}

.quote-header {
  background: linear-gradient(90deg, var(--purple), var(--hot-pink), var(--purple));
  padding: 6px 12px;
  text-align: center;
  border-bottom: 2px outset var(--purple);
}

.quote-header-text {
  font-family: var(--pixel-font);
  font-size: 9px;
  color: var(--yellow);
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 1px;
}

.quote-body {
  padding: 16px;
  text-align: center;
}

.quote-text {
  font-family: var(--comic-sans);
  font-size: 16px;
  font-style: italic;
  color: var(--cyan);
  line-height: 1.5;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.quote-text::before { content: "\201C"; color: var(--hot-pink); font-size: 24px; }
.quote-text::after { content: "\201D"; color: var(--hot-pink); font-size: 24px; }

.quote-attribution {
  font-family: var(--vt323);
  font-size: 16px;
  color: var(--lime);
}

.quote-attribution a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-style: wavy;
}

.quote-attribution a:hover {
  color: var(--hot-pink);
  text-shadow: 0 0 8px var(--hot-pink);
}

/* --- Now Playing Bar --- */
.now-playing {
  background: #1a1a1a;
  border: 2px inset #444;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  text-decoration: none;
}

.now-playing:hover {
  background: #222;
}

.eq-bars.paused .eq-bar {
  animation: none;
  height: 3px !important;
  opacity: 0.4;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.eq-bar {
  width: 3px;
  background: var(--lime);
  animation: eq-bounce 0.8s ease-in-out infinite;
}
.eq-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.eq-bar:nth-child(3) { height: 6px; animation-delay: 0.4s; }
.eq-bar:nth-child(4) { height: 12px; animation-delay: 0.1s; }
.eq-bar:nth-child(5) { height: 10px; animation-delay: 0.3s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.3); }
}

.now-playing-text {
  font-family: var(--vt323);
  font-size: 16px;
  color: var(--lime);
  overflow: hidden;
  flex: 1;
}

.now-playing-scroll {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 12s linear infinite;
}

/* --- Photo Grid --- */
.photo-grid-header {
  border-top: 2px solid var(--hot-pink);
  padding: 10px 0;
  text-align: center;
  margin-bottom: 4px;
}

.photo-grid-header span {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--hot-pink);
  letter-spacing: 2px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 16px;
}

.photo-cell {
  aspect-ratio: 1;
  background: #111;
  border: 1px solid #333;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.photo-cell:hover {
  border-color: var(--hot-pink);
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
  transform: scale(1.02);
  z-index: 1;
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
  color: #555;
  font-family: var(--vt323);
  font-size: 12px;
  text-align: center;
  gap: 6px;
}

.photo-placeholder .broken-icon {
  font-size: 24px;
  opacity: 0.4;
  animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.2; }
}

/* --- Web Ring --- */
.webring {
  background: var(--bg-panel);
  border: 3px outset var(--border-light);
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
}

.webring-title {
  font-family: var(--pixel-font);
  font-size: 9px;
  color: #000;
  margin-bottom: 8px;
}

.webring-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.webring-nav a {
  font-family: var(--comic-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--bright-blue);
  text-decoration: underline;
  cursor: pointer;
}

.webring-nav a:hover {
  color: var(--red);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 20px 10px;
  border-top: 2px solid var(--hot-pink);
}

.footer p {
  font-family: var(--vt323);
  font-size: 14px;
  color: #888;
  margin-bottom: 6px;
}

.footer .copyright {
  color: var(--hot-pink);
  font-size: 16px;
}

.footer .made-with {
  font-size: 12px;
  color: #555;
}

/* --- Divider Flames --- */
.flame-divider {
  text-align: center;
  font-size: 20px;
  padding: 4px 0;
  letter-spacing: 8px;
  animation: flame-dance 0.5s ease-in-out infinite alternate;
}

@keyframes flame-dance {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

/* --- Cursor Trail --- */
.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: trail-fade 0.6s ease-out forwards;
}

@keyframes trail-fade {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .main-container {
    padding: 6px;
  }

  .display-name {
    font-size: 22px;
  }

  .username {
    font-size: 18px;
  }

  .bio {
    font-size: 13px;
  }

  .retro-button {
    font-size: 16px;
    padding: 12px 16px;
  }

  .stat-value {
    font-size: 14px;
  }

  .stat-label {
    font-size: 12px;
  }

  .badges-row {
    gap: 8px;
  }

  .badge {
    font-size: 6px;
    padding: 4px 8px;
  }

  .photo-grid {
    gap: 2px;
  }

  .quote-text {
    font-size: 14px;
  }

  .marquee-text {
    font-size: 12px;
  }

  .under-construction span {
    font-size: 8px;
  }
}

/* --- Selection Style --- */
::selection {
  background: var(--hot-pink);
  color: #000;
}

/* --- Scrollbar (webkit) --- */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hot-pink), var(--purple));
  border: 2px outset var(--bg-panel);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--cyan), var(--bright-blue));
}
