/* ===== PRICES PAGE SPECIFIC STYLES ===== */

.prices-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  min-height: calc(100vh - 74px);
}

.prices-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.prices-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #e8eaf6;
  margin: 0;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #6c63ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prices-subtitle {
  color: #7986cb;
  margin: 0.4rem 0 0;
  font-size: 1rem;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.last-updated {
  color: #7986cb;
  font-size: 0.85rem;
  margin: 0;
}

#refresh-btn {
  background: #6c63ff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#refresh-btn:hover {
  background: #00d4ff;
  color: #0d0f1a;
}

#refresh-btn:active {
  transform: scale(0.97);
}

.market-bar {
  display: flex;
  gap: 1rem;
  background: #151929;
  border: 1px solid #1f2640;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.10);
}

.market-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 120px;
}

.bar-label {
  color: #7986cb;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bar-value {
  color: #e8eaf6;
  font-weight: 600;
  font-size: 0.95rem;
}

.coin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.coin-card {
  background: #151929;
  border: 1.5px solid #1f2640;
  border-radius: 16px;
  padding: 1.4rem;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  min-height: 178px;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.10);
}

.coin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.coin-card:hover {
  border-color: #6c63ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.18);
}

.coin-card.selected {
  border-color: #00d4ff;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.25), 0 8px 32px rgba(0, 212, 255, 0.15);
}

.loading-card {
  cursor: default;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  gap: 0.8rem;
}

.coin-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.coin-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.coin-name-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.coin-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #e8eaf6;
  overflow-wrap: anywhere;
}

.coin-symbol {
  color: #7986cb;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.coin-change-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.coin-change-badge.up {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
}

.coin-change-badge.down {
  background: rgba(255, 23, 68, 0.15);
  color: #ff1744;
}

.coin-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 0.8rem;
  letter-spacing: 0;
}

.sparkline-wrapper {
  height: 55px;
  position: relative;
}

.featured-chart-section {
  background: #151929;
  border: 1px solid #1f2640;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.10);
}

.featured-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

#chart-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8eaf6;
  margin: 0;
}

.muted-text {
  color: #7986cb;
  font-size: 0.9rem;
  margin: 0.3rem 0 0;
}

.chart-range-btns {
  display: flex;
  gap: 0.5rem;
}

.range-btn {
  background: #1f2640;
  color: #7986cb;
  border: 1px solid #1f2640;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.range-btn:hover {
  border-color: #6c63ff;
  color: #e8eaf6;
}

.range-btn.active {
  background: #6c63ff;
  color: white;
  border-color: #6c63ff;
}

.chart-wrapper {
  position: relative;
  height: 300px;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7986cb;
  font-size: 1rem;
  text-align: center;
  background: rgba(13, 15, 26, 0.5);
  border-radius: 8px;
  padding: 1rem;
}

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

.stat-card {
  background: #151929;
  border: 1px solid #1f2640;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.10);
}

.stat-label {
  color: #7986cb;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}

.stat-value {
  color: #e8eaf6;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #1f2640 25%, #2a3050 50%, #1f2640 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  height: 1rem;
  margin-top: 3rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spinning {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 768px) {
  .prices-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    align-items: flex-start;
    width: 100%;
  }

  .featured-chart-section {
    padding: 1rem;
  }

  .chart-wrapper {
    height: 220px;
  }
}
