/* ==========================================================================
   BULLION.FUN - DESIGN SYSTEM & UNIQUE STYLESHEET
   Aesthetics: Dark Luxury Onyx, Shimmering 24K Gold, Isometric Room Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Press+Start+2P&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg-dark: #090a0d;
  --bg-card: rgba(18, 20, 29, 0.75);
  --bg-modal: #11131c;
  
  --gold-primary: #ffc837;
  --gold-light: #fff0a5;
  --gold-dark: #d49400;
  --gold-glow: rgba(255, 200, 55, 0.35);
  --gold-gradient: linear-gradient(135deg, #ffe066 0%, #f39c12 50%, #b7791f 100%);

  --accent-green: #2ed573;
  --accent-red: #ff4757;
  
  --text-main: #f1f2f6;
  --text-muted: #95a5a6;
  
  --border-gold: rgba(255, 200, 55, 0.25);
  --border-gold-strong: rgba(255, 200, 55, 0.6);
  --border-dark: rgba(255, 255, 255, 0.08);

  --font-pixel: 'Press Start 2P', cursive, monospace;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 25px rgba(255, 200, 55, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  position: relative;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pixel-text { font-family: var(--font-pixel); }
.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mono-text { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0c0d10;
  box-shadow: 0 4px 15px rgba(255, 200, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 200, 55, 0.5);
}

.btn-outline-gold {
  background: rgba(255, 200, 55, 0.05);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background: rgba(255, 200, 55, 0.15);
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--gold-primary);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
}

/* Ticker */
.ticker-bar {
  background: rgba(18, 20, 29, 0.9);
  border-bottom: 1px solid var(--border-dark);
  padding: 8px 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.ticker-value {
  color: var(--gold-primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Hero */
.hero {
  padding: 60px 24px;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.pixel-room-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0d1017;
  border: 2px solid var(--border-gold-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), var(--shadow-gold);
  overflow: hidden;
  position: relative;
}

#heroRoomCanvas, #mineCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Game Hub */
.game-hub-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

.mine-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.upgrades-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
}

.upgrade-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 15, 22, 0.8);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

/* Sections */
.section {
  padding: 70px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 40px;
}

/* Catalog */
.miners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.miner-card {
  padding: 20px;
  text-align: center;
}

.footer {
  background: #07080b;
  border-top: 1px solid var(--border-gold);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero, .game-hub-grid {
    grid-template-columns: 1fr;
  }
}
