/*
 * ==========================================================================
 * VEEGAY.COM REVAMP - 8-BIT CINEMATIC GOLD DESIGN SYSTEM (V2 - CRT MOCKUP)
 * ==========================================================================
 * An architectural, low-fi, pixel-aligned CSS framework designed for 
 * Veronica Lee (李端嫻 / Veegay).
 * 
 * Version 2: Recreates the exact look and feel of the "lofi_8bit_portfolio_mockup.png"
 * featuring a responsive CRT TV Bezel framework, an elegant horizontal 
 * gold-pill navigation bar, pixel art SVGs, and a fully golden, 
 * consolidated audio visualizer ribbon.
 * ==========================================================================
 */

/* Import a crisp, readable retro pixel font and an elegant monospace font */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Press+Start+2P&display=swap');

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & SYSTEM VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Cinematic Gold Palette */
  --color-bg-darkest: #0a0b0e;     /* Deep cinema shadow */
  --color-bg-panel: #14161d;       /* Matte charcoal studio console */
  --color-gold-primary: #e5c158;   /* Luminous Champagne Gold (active state) */
  --color-gold-muted: #9e8130;     /* Burnished/dim gold */
  --color-ivory: #eadeca;          /* Warm soft text */
  --color-ivory-dim: #9c968c;      /* Metadata / inactive text */
  --color-dark-charcoal: #1c1d22;  /* Dark terminal body */
  
  /* System Borders */
  --pixel-border-gold: 4px solid var(--color-gold-primary);
  --pixel-border-muted: 4px solid var(--color-gold-muted);
  --pixel-border-dark: 4px solid var(--color-bg-darkest);
  
  /* Typography Stacks */
  --font-pixel: 'Press Start 2P', 'Courier New', monospace;
  --font-mono: 'Courier Prime', Courier, monospace;
}

/* --------------------------------------------------------------------------
   02. CORE RESET & CRT SCANLINE SIMULATION
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  image-rendering: pixelated;
}

body {
  background-color: #121316; /* Deep matte gray outside the monitor */
  color: var(--color-ivory);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   03. THE CRT MONITOR CHAMBER & SHIELD
   -------------------------------------------------------------------------- */
/* Responsive Bezel Wrapper */
.crt-monitor-frame {
  max-width: 1100px;
  width: 100%;
  background-color: #2b2c33; /* Gunmetal grey monitor plastic casing */
  border: 16px solid #1a1b20;
  border-radius: 32px;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.8),
    inset 0 4px 10px rgba(255,255,255,0.1),
    inset 0 -10px 20px rgba(0,0,0,0.6);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Monitor Stand Base - Desktop Only */
@media (min-width: 768px) {
  .crt-monitor-frame::after {
    content: "";
    display: block;
    width: 250px;
    height: 30px;
    background-color: #1a1b20;
    margin: 0 auto;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 10px 10px;
    z-index: -1;
  }
}

/* CRT Screen Area */
.crt-screen {
  background-color: var(--color-bg-darkest);
  border: 12px solid #08090b;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 1);
}

/* Scanlines and Flicker Overlay */
.crt-screen::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  z-index: 10;
  pointer-events: none;
}

/* CRT Screen Curved Phosphor Glare */
.crt-glass-glare {
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 11;
  pointer-events: none;
}

/* Screen Content Container */
.crt-screen-content {
  padding: 2.5rem 2rem 7rem 2rem;
  height: 75vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   04. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-pixel);
  color: var(--color-gold-primary);
  text-transform: uppercase;
  text-shadow: 2px 2px 0px var(--color-bg-darkest);
  letter-spacing: 0.05em;
}

h1 { font-size: 1.6rem; margin-bottom: 1.2rem; line-height: 1.4; }
h2 { font-size: 1.1rem; margin-bottom: 1.5rem; text-align: center; color: var(--color-gold-primary); }
h3 { font-size: 0.8rem; margin-bottom: 0.8rem; }

a {
  color: var(--color-gold-primary);
  text-decoration: none;
  transition: all 0.1s ease;
  cursor: pointer;
}

a:hover {
  color: var(--color-ivory);
  text-shadow: 0 0 4px var(--color-gold-primary);
}

.editorial-text {
  font-family: 'Courier Prime', "Songti TC", "Noto Serif TC", serif;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   05. MOCKUP PILL NAVIGATION BAR
   -------------------------------------------------------------------------- */
.pill-nav-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  width: 100%;
}

.pill-nav {
  background-color: var(--color-gold-primary);
  border: 4px solid var(--color-bg-darkest);
  border-radius: 50px;
  display: flex;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 4px 0 var(--color-gold-muted);
  max-width: 600px;
  width: 100%;
  justify-content: space-around;
  list-style: none;
}

.pill-nav-item {
  flex-grow: 1;
  text-align: center;
}

.pill-nav-link {
  display: block;
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: bold;
  padding: 10px 14px;
  color: var(--color-bg-darkest);
  border-radius: 30px;
  text-transform: uppercase;
  transition: all 0.1s steps(2);
}

.pill-nav-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--color-bg-darkest);
}

.pill-nav-link.active {
  background-color: var(--color-bg-panel);
  color: var(--color-gold-primary);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  border: 2px solid var(--color-gold-primary);
  padding: 8px 12px; /* compensate for border */
}

/* --------------------------------------------------------------------------
   06. RETRO BLOCK CARDS & HERO INTERFACE
   -------------------------------------------------------------------------- */
.retro-card {
  background-color: var(--color-bg-panel);
  border: 4px solid var(--color-gold-muted);
  box-shadow: 4px 4px 0px var(--color-bg-darkest);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: border-color 0.1s ease;
}

.retro-card:hover {
  border-color: var(--color-gold-primary);
}

/* Visual Synth Hero Area */
.hero-art-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 2rem 0;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--color-gold-primary);
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
  text-shadow: 2px 2px 0px var(--color-bg-darkest);
}

/* --------------------------------------------------------------------------
   07. MATISSE QUOTE & BILINGUAL ABOUT LAYOUT
   -------------------------------------------------------------------------- */
.quote-container {
  border: 4px double var(--color-gold-primary);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 3rem 0;
  background-color: var(--color-bg-panel);
  position: relative;
}

.quote-container::before {
  content: "“";
  font-family: var(--font-pixel);
  font-size: 2.5rem;
  color: var(--color-gold-primary);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-bg-darkest);
  padding: 0 15px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.band-project-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   08. PORTFOLIO TABS & MEDIA CARD GRID
   -------------------------------------------------------------------------- */
.tab-headers {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.retro-btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 10px 14px;
  background-color: var(--color-bg-panel);
  color: var(--color-gold-primary);
  border: 4px solid var(--color-gold-muted);
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--color-bg-darkest);
}

.retro-btn.active {
  background-color: var(--color-gold-primary);
  color: var(--color-bg-darkest);
  border-color: var(--color-gold-primary);
  box-shadow: none;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Media Cards */
.media-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.media-card:hover {
  transform: translateY(-2px);
}

.media-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--color-bg-darkest);
  border: 4px solid var(--color-gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-muted);
  font-family: var(--font-pixel);
  font-size: 2rem;
}

.media-card:hover .media-thumbnail-placeholder {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-primary);
}

.metadata-row {
  font-size: 10px;
  color: var(--color-ivory-dim);
  font-family: var(--font-mono);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

.award-badge {
  font-family: var(--font-pixel);
  font-size: 8px;
  background-color: var(--color-gold-primary);
  color: var(--color-bg-darkest);
  padding: 4px 6px;
  margin-top: 8px;
  display: inline-block;
  width: fit-content;
}

/* --------------------------------------------------------------------------
   09. THE CONSOLIDATED MOCKUP GOLD KEYBOARD AUDIO CONSOLE
   -------------------------------------------------------------------------- */
.gold-ribbon-player {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-gold-primary);
  border-top: 6px solid var(--color-bg-darkest);
  z-index: 100;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.6);
  flex-wrap: wrap;
  gap: 12px;
}

/* In the mockup, text inside the gold footer is dark charcoal */
.gold-ribbon-player, 
.gold-ribbon-player p,
.gold-ribbon-player span,
.gold-ribbon-player button {
  color: var(--color-bg-darkest) !important;
  font-family: var(--font-mono);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 250px;
}

.player-album-art {
  width: 36px;
  height: 36px;
  background-color: var(--color-bg-darkest);
  border: 2px solid var(--color-bg-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-gold-primary) !important; /* Art symbol remains gold inside dark container */
}

.player-track-meta {
  line-height: 1.3;
}

.player-title {
  font-weight: bold;
  font-size: 12px;
  font-family: var(--font-pixel) !important;
}

.player-subtitle {
  font-size: 11px;
}

/* Player buttons enclosed in pixelated squares */
.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-square-btn {
  background-color: var(--color-bg-panel);
  border: 3px solid var(--color-bg-darkest);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-pixel) !important;
  font-size: 10px;
  color: var(--color-gold-primary) !important; /* inverted look inside button */
}

.player-square-btn:active {
  transform: scale(0.9);
}

/* Gold Mockup Slider Bar Container */
.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 2 1 300px;
  font-family: var(--font-pixel) !important;
  font-size: 8px;
}

.pixel-progress-bar {
  flex-grow: 1;
  height: 10px;
  background-color: var(--color-gold-muted);
  border: 3px solid var(--color-bg-darkest);
  position: relative;
  cursor: pointer;
}

.pixel-progress-fill {
  height: 100%;
  width: 45%; /* Styled as in the mockup */
  background-color: var(--color-bg-darkest);
}

/* Waveform Visualizer on the right enclosed in a dark console card */
.audio-waveform-container {
  background-color: var(--color-bg-darkest);
  border: 3px solid var(--color-bg-darkest);
  padding: 4px 8px;
  display: flex;
  align-items: flex-end;
  height: 32px;
  gap: 2px;
}

.waveform-bar {
  width: 4px;
  height: 4px;
  background-color: var(--color-gold-primary);
  animation: bounceWaveform 0.8s infinite ease-in-out alternate;
}

.waveform-bar:nth-child(1) { animation-delay: 0.1s; }
.waveform-bar:nth-child(2) { animation-delay: 0.3s; }
.waveform-bar:nth-child(3) { animation-delay: 0.5s; }
.waveform-bar:nth-child(4) { animation-delay: 0.2s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounceWaveform {
  0% { height: 4px; }
  100% { height: 24px; }
}

/* Custom Scrollbar for CRT interior container */
.crt-screen-content::-webkit-scrollbar {
  width: 10px;
}

.crt-screen-content::-webkit-scrollbar-track {
  background: var(--color-bg-darkest);
}

.crt-screen-content::-webkit-scrollbar-thumb {
  background: var(--color-gold-muted);
  border: 2px solid var(--color-bg-darkest);
}

.crt-screen-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-primary);
}
