@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-gold: #F59E0B;
  --color-gold-light: #FEF3C7;
  --color-gold-dark: #D97706;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

.font-geist-mono {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Chart styles */
.chart-container {
  transition: height 0.3s ease;
}

/* Card hover effects */
.border {
  transition: all 0.2s ease-in-out;
}

.border:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Active chart period button */
.chart-period-btn.active {
  background-color: var(--color-gold);
  border-color: var(--color-gold-dark);
  color: white;
}

/* Sentiment indicator */
#sentiment-indicator {
  transition: width 1s ease-in-out;
}

/* Animation for price cards */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.animate-pulse-gold {
  animation: pulse 2s infinite;
}

/* Ensure charts have a nice background */
canvas {
  background-color: white;
  border-radius: 0.375rem;
}

/* Fix for tooltip positioning */
.chartjs-tooltip {
  opacity: 1;
  position: absolute;
  background: rgba(30, 30, 30, 0.9);
  color: white;
  border-radius: 3px;
  pointer-events: none;
  transform: translate(-50%, 0);
  z-index: 100;
  padding: 6px 10px;
}

/* Historical price grid styling */
.grid-cols-6 > div {
  position: relative;
}

.grid-cols-6 > div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  height: 70%;
  width: 1px;
  background-color: #E5E7EB;
  transform: translateY(-50%);
}

.grid-cols-6 > div:last-child::after {
  display: none;
}

/* ETF Flow Section styling */
.bg-white .h-2 {
  transition: width 1.5s ease-out;
}

/* Table styling for speculative positions */
table {
  border-collapse: separate;
  border-spacing: 0;
}

table th {
  background-color: #F9FAFB;
}

table tr:hover {
  background-color: #F9FAFB;
}

/* Responsive adjustments for small screens */
@media (max-width: 640px) {
  .chart-container {
    height: auto !important;
    min-height: 200px;
  }
  
  .grid-cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-6 > div:nth-child(3)::after {
    display: none;
  }
}
