/*
Theme Name: bit4share
Theme URI: https://example.com/bit4share
Author: You
Description: Futuristic crypto dashboard theme with live coin prices, SEC news, and important crypto dates.
Version: 1.0
Text Domain: bit4share
*/

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #101827 0, #020617 40%, #000 100%);
  color: #e5e7eb;
}

a {
  color: #38bdf8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(12px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 118, 110, 0.3));
}

.header-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f97316;
}

.header-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
}

.main-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr;
  gap: 24px;
  padding: 24px 40px 40px;
}

@media (max-width: 960px) {
  .main-grid {
    grid-template-columns: 1fr;
    padding: 16px 16px 32px;
  }
}

.card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 118, 110, 0.15));
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-body {
  position: relative;
  z-index: 1;
}

/* Prices table */

.price-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(51, 65, 85, 0.8);
  align-items: baseline;
  font-size: 0.85rem;
}

.price-row.header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  border-bottom-style: solid;
}

.price-row:last-child {
  border-bottom: none;
}

.price-name {
  display: flex;
  flex-direction: column;
}

.price-symbol {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
}

.price-value {
  font-variant-numeric: tabular-nums;
}

.price-change-up {
  color: #22c55e;
}

.price-change-down {
  color: #f97373;
}

.price-marketcap {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* News list */

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 420px;
  overflow-y: auto;
}

.news-item {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(51, 65, 85, 0.7);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item-title {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.news-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Dates / events */

.timeline {
  border-left: 2px solid rgba(148, 163, 184, 0.6);
  margin-left: 12px;
  padding-left: 16px;
}

.timeline-item {
  margin-bottom: 16px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #020617;
  left: -21px;
  top: 4px;
}

.timeline-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5b4fc;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.timeline-coin {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Footer */

.footer {
  padding: 14px 40px 24px;
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  background: radial-gradient(circle at bottom, rgba(59, 130, 246, 0.2), rgba(2, 6, 23, 0.9));
}

@media (max-width: 960px) {
  .footer {
    padding: 14px 16px 24px;
    flex-direction: column;
    gap: 6px;
  }
}

/* Glitchy logo fx */

.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.4;
}
.glitch::before {
  transform: translate(2px, -1px);
}
.glitch::after {
  transform: translate(-2px, 1px);
}
