/* ═══════════════════════════════════════════════════════
   BOOTWHEEL - Western Cowboy Theme
   Fees Go Back In The Boot
   ═══════════════════════════════════════════════════════ */

:root {
  /* Western Color Palette */
  --boot-brown: #8B4513;
  --boot-tan: #D2B48C;
  --boot-leather: #654321;
  --boot-cream: #FFF8DC;
  --boot-sand: #F4A460;
  --boot-dark: #1C1410;
  --boot-rust: #B7410E;
  --boot-gold: #DAA520;
  --boot-sky: #87CEEB;
  
  /* Accent Colors */
  --pixel-green: #4ADE80;
  --pixel-red: #CD5C5C;
  --pixel-blue: #4682B4;
  
  /* Effects */
  --glow-gold: 0 0 20px rgba(218, 165, 32, 0.5);
  --pixel-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  --leather-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

html {
  font-size: 16px;
}

body {
  font-family: 'VT323', monospace;
  background: var(--boot-dark);
  color: var(--boot-cream);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  
  /* Desert sunset gradient */
  background: 
    radial-gradient(ellipse at bottom, rgba(183, 65, 14, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse at top, rgba(135, 206, 235, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #1C1410 0%, #2D1F15 50%, #1C1410 100%);
  background-attachment: fixed;
}

/* Dust particle overlay */
.dust-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 998;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(210, 180, 140, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(210, 180, 140, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(210, 180, 140, 0.03) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: dustDrift 20s linear infinite;
}

@keyframes dustDrift {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(50px) translateY(-50px); }
}

/* Scanlines Effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

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

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */

.header {
  text-align: center;
  padding: 40px 20px;
  border: 4px solid var(--boot-tan);
  background: 
    linear-gradient(180deg, rgba(139, 69, 19, 0.2) 0%, rgba(139, 69, 19, 0.05) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(139, 69, 19, 0.03) 10px,
      rgba(139, 69, 19, 0.03) 20px
    );
  margin-bottom: 30px;
  position: relative;
  box-shadow: var(--leather-shadow);
}

/* Western corner decorations */
.header::before,
.header::after {
  content: '★';
  position: absolute;
  font-size: 1.5rem;
  color: var(--boot-gold);
  text-shadow: var(--glow-gold);
}

.header::before {
  top: 10px;
  left: 15px;
}

.header::after {
  bottom: 10px;
  right: 15px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.boot-logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(218, 165, 32, 0.4));
  animation: bootFloat 4s ease-in-out infinite;
}

@keyframes bootFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.title {
  font-family: 'Rye', serif;
  font-size: 2.5rem;
  letter-spacing: 8px;
  color: var(--boot-gold);
  text-shadow: 
    3px 3px 0 var(--boot-leather),
    var(--glow-gold);
}

.tagline {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--boot-tan);
  letter-spacing: 4px;
  margin-top: 5px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 3px solid var(--boot-brown);
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--boot-gold);
  animation: blink 1s infinite;
}

.status-dot.online {
  background: var(--pixel-green);
  box-shadow: 0 0 12px var(--pixel-green);
}

.status-dot.offline {
  background: var(--pixel-red);
  animation: none;
}

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

.status-text {
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--boot-cream);
}

/* ═══════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: 
    linear-gradient(135deg, rgba(139, 69, 19, 0.25) 0%, rgba(101, 67, 33, 0.15) 100%);
  border: 4px solid var(--boot-brown);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  transition: all 0.2s;
  box-shadow: var(--pixel-shadow);
}

.stat-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--boot-leather);
  border-color: var(--boot-tan);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--boot-brown) 0%, var(--boot-gold) 50%, var(--boot-brown) 100%);
}

.stat-icon {
  font-size: 2.5rem;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.4));
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--boot-tan);
  letter-spacing: 2px;
}

.stat-value {
  font-size: 1.5rem;
  color: var(--boot-cream);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════
   CONTRACT ADDRESS DISPLAY
   ═══════════════════════════════════════════════════════ */

.ca-section {
  margin-bottom: 30px;
}

.ca-label {
  display: block;
  font-size: 1rem;
  color: var(--boot-gold);
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.ca-display-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ca-display {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 4px solid var(--boot-brown);
  color: var(--boot-gold);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  padding: 15px;
  word-break: break-all;
  user-select: all;
  cursor: pointer;
  transition: all 0.2s;
}

.ca-display:hover {
  border-color: var(--boot-gold);
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

.copy-btn {
  white-space: nowrap;
}

.pixel-btn {
  background: var(--boot-brown);
  border: 4px solid var(--boot-tan);
  color: var(--boot-cream);
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.1s;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: var(--pixel-shadow);
}

.pixel-btn:hover {
  background: var(--boot-tan);
  color: var(--boot-dark);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--boot-leather);
}

.pixel-btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════
   CHART SECTION
   ═══════════════════════════════════════════════════════ */

.chart-section {
  margin-bottom: 30px;
  border: 4px solid var(--boot-brown);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: var(--leather-shadow);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 4px solid var(--boot-brown);
  background: linear-gradient(90deg, rgba(139, 69, 19, 0.3) 0%, transparent 100%);
}

.chart-title {
  font-size: 1.2rem;
  color: var(--boot-gold);
  letter-spacing: 3px;
}

.token-info {
  display: flex;
  gap: 20px;
  font-size: 1.1rem;
}

#token-name {
  color: var(--boot-cream);
}

#token-price {
  color: var(--pixel-green);
}

.chart-container {
  height: 500px;
  position: relative;
  overflow: hidden;
}

.chart-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chart-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--boot-tan);
  font-size: 1.2rem;
}

/* Pixel Loader - spinning boot */
.pixel-loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--boot-leather);
  border-top-color: var(--boot-gold);
  border-radius: 50%;
  animation: pixelSpin 1s steps(12) infinite;
}

@keyframes pixelSpin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════
   BURN HISTORY
   ═══════════════════════════════════════════════════════ */

.history-section {
  margin-bottom: 30px;
}

.section-title {
  font-family: 'Rye', serif;
  font-size: 1.5rem;
  color: var(--boot-gold);
  margin-bottom: 15px;
  letter-spacing: 3px;
  text-shadow: 2px 2px 0 var(--boot-leather);
}

.history-table-wrapper {
  border: 4px solid var(--boot-brown);
  overflow: hidden;
  box-shadow: var(--pixel-shadow);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.history-table th {
  background: linear-gradient(180deg, var(--boot-brown) 0%, var(--boot-leather) 100%);
  color: var(--boot-cream);
  padding: 15px 10px;
  text-align: left;
  letter-spacing: 2px;
  border-bottom: 3px solid var(--boot-gold);
}

.history-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(139, 69, 19, 0.3);
  color: var(--boot-cream);
}

.history-table tr:nth-child(even) {
  background: rgba(139, 69, 19, 0.1);
}

.history-table tr:hover:not(.empty-row) {
  background: rgba(139, 69, 19, 0.25);
}

.empty-row td {
  text-align: center;
  color: var(--boot-tan);
  padding: 30px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 4px solid var(--boot-brown);
  background: linear-gradient(0deg, rgba(139, 69, 19, 0.15) 0%, transparent 100%);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pixel-link {
  color: var(--boot-cream);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 3px;
  padding: 10px 20px;
  border: 3px solid transparent;
  transition: all 0.2s;
}

.pixel-link:hover {
  color: var(--boot-gold);
  border-color: var(--boot-brown);
  background: rgba(139, 69, 19, 0.2);
}

.separator {
  color: var(--boot-gold);
  font-size: 1.2rem;
}

.copyright {
  font-size: 0.9rem;
  color: var(--boot-tan);
  letter-spacing: 4px;
}

/* ═══════════════════════════════════════════════════════
   COUNTDOWN TIMER
   ═══════════════════════════════════════════════════════ */

.countdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  padding: 15px 30px;
  border: 4px solid var(--boot-brown);
  background: rgba(0, 0, 0, 0.4);
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--boot-tan);
  letter-spacing: 3px;
}

.countdown-timer {
  font-family: 'Rye', serif;
  font-size: 2rem;
  color: var(--boot-gold);
  text-shadow: var(--glow-gold);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .title {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }
  
  .boot-logo {
    width: 100px;
  }
  
  .tagline {
    font-size: 0.9rem;
  }
  
  .logo-container {
    gap: 8px;
  }
  
  .ca-display-wrapper {
    flex-direction: column;
  }
  
  .chart-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .chart-container {
    height: 400px;
  }
  
  .history-table {
    font-size: 0.85rem;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */

/* Subtle glow pulse for values */
.stat-value {
  animation: subtleGlow 3s ease-in-out infinite;
}

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

/* Number counting animation */
.counting {
  animation: countPulse 0.3s ease-out;
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Fire effect for burn values */
.burning {
  animation: fireGlow 0.5s ease-in-out;
}

@keyframes fireGlow {
  0% { color: var(--boot-cream); }
  50% { color: var(--boot-gold); text-shadow: 0 0 20px var(--boot-gold); }
  100% { color: var(--boot-cream); }
}
