:root {
    --bg-primary: #000000;
    --bg-card: #0a0a0a;
    --bg-hover: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-primary: #00ff9d;
    --accent-secondary: #ff00ff;
    --accent-tertiary: #00ffff;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'Lekton', monospace;
    font-size: 1.25rem;
    font-weight: 700;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--text-secondary);
    border-radius: 1em;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
}

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

.stat-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 1em;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.25rem;
    background: linear-gradient(45deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Transaction Feed */
.transaction-feed {
    background: var(--bg-card);
    border-radius: 1em;
    padding: 1rem;
}

.feed-header {
    font-family: 'Lekton', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.transaction {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 1em;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.transaction:hover {
    background: var(--bg-hover);
}

.tx-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 1em;
}

.tx-details {
    overflow: hidden;
}

.tx-hash {
    font-family: 'Lekton', monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}

.tx-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.tx-amount {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--accent-primary);
}

/* Attribution */
.attribution {
    position: fixed;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.attribution span {
    color: var(--accent-primary);
}

/* Add back transaction type-specific colors */
.transaction[data-type="mining"] .tx-icon {
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent-primary);
}

.transaction[data-type="transfer"] .tx-icon {
    background: rgba(255, 0, 255, 0.1);
    color: var(--accent-secondary);
}

.transaction[data-type="swap"] .tx-icon {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-tertiary);
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pools-feed, .tokens-feed {
    background: var(--bg-card);
    border-radius: 1em;
    padding: 1rem;
}

.pool-card, .token-card {
    background: var(--bg-primary);
    border-radius: 1em;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.pool-card:hover, .token-card:hover {
    background: var(--bg-hover);
}

.pool-pairs {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.pool-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pool-stats span {
    color: var(--accent-primary);
}

.token-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.token-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 1em;
    color: var(--accent-primary);
}

.token-name {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.token-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.token-ticker {
    color: var(--accent-secondary);
    margin-right: 0.5rem;
}

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.empty-subtext {
    color: var(--accent-primary);
    font-size: 0.75rem;
}

.address {
    font-family: 'Lekton', monospace;
}

/* Headers and headings use Lekton */
.logo-text,
.feed-header,
.stat-label,
.section-title {
    font-family: 'Lekton', monospace;
}

/* Everything else uses JetBrains Mono */
.tx-hash,
.tx-meta,
.tx-amount,
.pool-pairs,
.token-name,
.token-meta,
.address,
.search-bar {
    font-family: 'JetBrains Mono', monospace;
}

/* Raw JSON Display */
.raw-json {
    background: var(--bg-primary);
    border-radius: 1em;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-x: auto;
}

.raw-json .key {
    color: var(--accent-secondary);
}

.raw-json .string {
    color: var(--accent-primary);
}

.raw-json .number {
    color: var(--accent-tertiary);
}

.ref-pill {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 1em;
    font-weight: 500;
}

/* Make reference links not change color on hover */
.tx-hash {
    text-decoration: none !important;
}

.tx-hash:hover .ref-pill {
    filter: brightness(1.2);
} 