/* Yamata Scan - Custom Styles */

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

body {
  background-color: #202020;
  color: #D8CFCD;
  font-family: 'Eurostile', Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #181616;
}

::-webkit-scrollbar-thumb {
  background: #5FA9A7;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7ec9c7;
}

/* Navigation Active State */
.nav-tab.active {
  background: rgba(95, 169, 167, 0.1);
  color: #5FA9A7;
  border-bottom: 2px solid #5FA9A7;
}

/* Stat Cards */
.stat-card {
  background: linear-gradient(135deg, #2F2E2F 0%, #202020 100%);
  border: 1px solid #2F2E2F;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF336D 0%, #5FA9A7 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: #5FA9A7;
  box-shadow: 0 8px 32px rgba(95, 169, 167, 0.15);
  transform: translateY(-2px);
}

/* Stat Value */
.stat-value {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #5FA9A7 0%, #7ec9c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'HCapsule', Arial Black, sans-serif;
}

.stat-label {
  font-size: 0.875rem;
  color: #9F9598;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* Burn Stats - Blue Theme */
.burn-value {
  background: linear-gradient(135deg, #5FA9A7 0%, #7ec9c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Emission Stats - Blue Theme */
.emission-value {
  background: linear-gradient(135deg, #5FA9A7 0%, #7ec9c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Slider Styles */
.slider-container {
  background: linear-gradient(135deg, #2F2E2F 0%, #202020 100%);
  border: 1px solid #2F2E2F;
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2F2E2F 0%, #5FA9A7 50%, #7ec9c7 100%);
  outline: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #5FA9A7;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(95, 169, 167, 0.6);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #5FA9A7;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(95, 169, 167, 0.6);
  border: none;
}

/* Volume Presets */
.volume-preset {
  background: #2F2E2F;
  border: 1px solid #2F2E2F;
  color: #D8CFCD;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.volume-preset:hover {
  border-color: #5FA9A7;
  background: rgba(95, 169, 167, 0.1);
  color: #5FA9A7;
}

.volume-preset.active {
  border-color: #5FA9A7;
  background: rgba(95, 169, 167, 0.2);
  color: #5FA9A7;
}

/* Chart Container */
.chart-container {
  background: linear-gradient(135deg, #2F2E2F 0%, #202020 100%);
  border: 1px solid #2F2E2F;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  position: relative;
}

.chart-container canvas {
  max-height: 300px !important;
  height: 300px !important;
}

.chart-container .h-64 {
  height: 300px !important;
}

/* Deflation Indicator */
.deflation-indicator {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: bold;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}

.deflation-indicator.deflating {
  background: rgba(255, 51, 109, 0.2);
  color: #FF336D;
  border: 1px solid #FF336D;
}

.deflation-indicator.inflating {
  background: rgba(95, 169, 167, 0.2);
  color: #5FA9A7;
  border: 1px solid #5FA9A7;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 51, 109, 0.4);
  }
  50% {
    opacity: 0.9;
    box-shadow: 0 0 20px 4px rgba(255, 51, 109, 0.2);
  }
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #2F2E2F;
  border-radius: 12px;
  overflow: hidden;
}

.data-table thead {
  background: #181616;
}

.data-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #9F9598;
  border-bottom: 1px solid #2F2E2F;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(47, 46, 47, 0.5);
  color: #D8CFCD;
}

.data-table tr:hover {
  background: rgba(255, 51, 109, 0.05);
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-red {
  background: rgba(255, 51, 109, 0.2);
  color: #FF336D;
}

.badge-blue {
  background: rgba(95, 169, 167, 0.2);
  color: #5FA9A7;
}

.badge-green {
  background: rgba(52, 211, 153, 0.2);
  color: #34D399;
}

/* Counter Animation */
.counter {
  display: inline-block;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter.animating {
  animation: countUp 0.5s ease-out;
}

/* Glow Effects */
.glow-red {
  box-shadow: 0 0 40px rgba(255, 51, 109, 0.3);
}

.glow-blue {
  box-shadow: 0 0 40px rgba(95, 169, 167, 0.3);
}

/* Responsive Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 51, 109, 0.2);
  border-radius: 50%;
  border-top-color: #FF336D;
  animation: spin 1s linear infinite;
}

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

/* Gradient Background Accent */
.gradient-accent {
  position: relative;
}

.gradient-accent::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 51, 109, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Input Styles */
input[type="number"],
input[type="text"] {
  background: #2F2E2F;
  border: 1px solid #2F2E2F;
  color: #D8CFCD;
  padding: 12px 16px;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

input[type="number"]:focus,
input[type="text"]:focus {
  border-color: #5FA9A7;
  background: rgba(95, 169, 167, 0.05);
}

/* Button Styles */
button {
  background: linear-gradient(135deg, #5FA9A7 0%, #4a8a88 100%);
  color: #D8CFCD;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 169, 167, 0.3);
}

button:active {
  transform: translateY(0);
}

/* Orderbook Styles */
.orderbook-row.buy {
  border-left: 3px solid #5FA9A7;
}

.orderbook-row.sell {
  border-left: 3px solid #FF336D;
}

/* Page Transitions */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease-out;
}

/* Coming Soon Overlay */
.coming-soon-wrapper {
  position: relative;
  pointer-events: none;
}

.coming-soon-wrapper > *:not(.coming-soon-overlay) {
  filter: blur(8px);
  opacity: 0.4;
}

.coming-soon-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  pointer-events: auto;
}

.glass-card {
  background: rgba(47, 46, 47, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 51, 109, 0.3);
  border-radius: 24px;
  padding: 48px 64px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
              0 0 60px rgba(255, 51, 109, 0.2);
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.glass-card h2 {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'HCapsule', Arial Black, sans-serif;
  background: linear-gradient(135deg, #FF336D 0%, #5FA9A7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.glass-card p {
  font-size: 1.25rem;
  color: #D8CFCD;
  opacity: 0.9;
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  nav .flex {
    flex-direction: column;
    gap: 16px;
  }
  
  .glass-card {
    padding: 32px 40px;
  }
  
  .glass-card h2 {
    font-size: 2rem;
  }
  
  .glass-card p {
    font-size: 1rem;
  }
}

/* Transaction Table Styles */
#transaction-table-body tr {
  transition: all 0.3s ease;
}

#transaction-table-body tr:hover {
  background: rgba(47, 46, 47, 0.5);
}

#transaction-table-body a {
  text-decoration: none;
  transition: color 0.2s ease;
}

#transaction-table-body a:hover {
  color: #FF336D;
}

.transaction-row {
  animation: slideInFromTop 0.5s ease;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive table on mobile */
@media (max-width: 768px) {
  #transaction-table-body td {
    padding: 8px 12px;
    font-size: 0.875rem;
  }
  
  #transaction-table-body td:nth-child(3) {
    font-size: 0.75rem;
  }
}
