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

:root {
    /* Terminal Dark Theme */
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1425;
    --bg-card: #151a30;
    --bg-card-hover: #1a2038;

    /* Bull/Bear Colors */
    --bull-green: #00ff88;
    --bull-green-dim: #00cc6a;
    --bear-red: #ff4466;
    --bear-red-dim: #cc3355;

    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-blue: #4d9fff;
    --accent-purple: #a855f7;

    /* Text Colors */
    --text-primary: #e8ecf5;
    --text-secondary: #a0aec0;
    --text-dim: #64748b;

    /* Terminal Effects */
    --glow-green: 0 0 10px rgba(0, 255, 136, 0.5);
    --glow-cyan: 0 0 10px rgba(0, 212, 255, 0.5);
    --border-color: rgba(100, 116, 139, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Matrix Background Canvas */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Terminal Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bull-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: ">";
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-family: 'JetBrains Mono', monospace;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--bull-green);
}

/* CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--bull-green);
    color: var(--bg-primary);
    box-shadow: var(--glow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--bull-green);
    color: var(--bull-green);
}

.btn-secondary:hover {
    background: var(--bull-green);
    color: var(--bg-primary);
}

/* Page Container */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--bull-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--bull-green);
}

.hidden {
    display: none !important;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    border-top-color: var(--bull-green);
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

.error {
    text-align: center;
    padding: 2rem;
    color: var(--bear-red);
    font-family: 'JetBrains Mono', monospace;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-family: 'JetBrains Mono', monospace;
}

.pagination button {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--bull-green);
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: var(--bull-green);
    color: var(--bg-primary);
    box-shadow: var(--glow-green);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination span {
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Card Base Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-cyan);
}

/* Stats Summary */
.stats-summary {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Mobile Responsive - Base */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    nav {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-container {
        padding: 5rem 1.5rem 3rem;
    }
}
