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

:root {
    --gj-bg: #080808;
    --gj-surface: #101010;
    --gj-surface-hover: #141414;
    --gj-border: rgba(255, 255, 255, 0.06);
    --gj-border-hover: rgba(255, 255, 255, 0.1);
    --gj-text: rgba(255, 255, 255, 0.90);
    --gj-text-secondary: rgba(255, 255, 255, 0.60);
    --gj-text-muted: rgba(255, 255, 255, 0.40);
    --gj-cyan: #06b6d4;
    --gj-cyan-light: #22d3ee;
    --gj-cyan-glow: rgba(6, 182, 212, 0.25);
    --gj-amber: #f59e0b;
    --gj-success: #10b981;
    --gj-danger: #f43f5e;
    --gj-info: #3b82f6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gj-bg);
    color: var(--gj-text);
    font-size: 14px;
    letter-spacing: -0.01em;
    margin: 0;
}

a { color: var(--gj-cyan); text-decoration: none; }
a:hover { color: var(--gj-cyan-light); }

h1, h2, h3 { color: rgba(255, 255, 255, 0.95); font-weight: 600; }

.gj-nav {
    background: #090909;
    border-bottom: 1px solid var(--gj-border);
    padding: 0.75rem 0;
}
.gj-nav .brand { font-weight: 700; font-size: 1.125rem; color: var(--gj-cyan); }
.gj-nav a { color: rgba(255, 255, 255, 0.5); font-size: 0.8125rem; }
.gj-nav a:hover { color: rgba(255, 255, 255, 0.9); }
.gj-nav-inner { display: flex; justify-content: space-between; align-items: center; }

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

.gj-card {
    background: var(--gj-surface);
    border: 1px solid var(--gj-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}
.gj-card:hover {
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.08);
}
.gj-card a { text-decoration: none; color: inherit; }
.gj-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.375rem;
}
.gj-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--gj-text-muted);
}
.gj-card-meta span { display: flex; align-items: center; gap: 0.25rem; }

.gj-badge {
    display: inline-block; padding: 2px 10px; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 600;
}
.gj-badge-success, .gj-badge-approved, .gj-badge-active, .gj-badge-resolved, .gj-badge-closed {
    background: rgba(16, 185, 129, 0.15); color: #34d399;
}
.gj-badge-warning, .gj-badge-under-review, .gj-badge-awaiting-acceptance, .gj-badge-on-hold {
    background: rgba(245, 158, 11, 0.15); color: #fbbf24;
}
.gj-badge-danger, .gj-badge-rejected, .gj-badge-abandoned {
    background: rgba(244, 63, 94, 0.15); color: #fb7185;
}
.gj-badge-info, .gj-badge-submitted, .gj-badge-new, .gj-badge-assigned, .gj-badge-lawyer-assigned {
    background: rgba(6, 182, 212, 0.15); color: #22d3ee;
}
.gj-badge-draft {
    background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4);
}
.gj-badge-escalated {
    background: rgba(245, 158, 11, 0.2); color: #fbbf24;
}
.gj-badge-ready-for-matching, .gj-badge-pending-resolution {
    background: rgba(139, 92, 246, 0.15); color: #a78bfa;
}

.gj-grid { display: grid; gap: 0.75rem; }
.gj-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gj-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gj-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.gj-stat { text-align: center; padding: 1rem; }
.gj-stat .number, .gj-stat-value { font-size: 2rem; font-weight: 700; color: var(--gj-cyan); }
.gj-stat .label, .gj-stat-label {
    color: var(--gj-text-secondary); font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.05em; margin-top: 0.25rem;
}

.gj-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.gj-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.gj-table th {
    font-weight: 600; color: var(--gj-text-muted); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.05em; padding: 0.75rem;
    border-bottom: 1px solid var(--gj-border);
}
.gj-table td { padding: 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.gj-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.gj-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.gj-btn {
    display: inline-block; padding: 0.5rem 1.25rem; border-radius: 8px;
    font-weight: 500; cursor: pointer; border: none; font-size: 0.8125rem;
    transition: all 0.2s ease; font-family: inherit; text-decoration: none;
}
.gj-btn-primary { background: var(--gj-cyan); color: #ffffff; }
.gj-btn-primary:hover { background: #0891b2; box-shadow: 0 4px 14px var(--gj-cyan-glow); color: #ffffff; }

.gj-section-title {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--gj-text-secondary); margin-bottom: 0.75rem;
}

/* Page header */
.gj-page-header { margin-bottom: 1.5rem; }
.gj-page-header h2 { font-size: 1.5rem; font-weight: 700; color: rgba(255, 255, 255, 0.95); }
.gj-page-header p { color: var(--gj-text-muted); font-size: 0.9375rem; margin-top: 0.25rem; }

/* Empty state */
.gj-empty { text-align: center; padding: 3rem 1rem; color: var(--gj-text-muted); }
.gj-empty h3 { font-size: 1.125rem; margin-bottom: 0.5rem; color: rgba(255, 255, 255, 0.9); }
.gj-empty p { font-size: 0.9375rem; margin-bottom: 1rem; }
.gj-empty a {
    display: inline-block; background: var(--gj-cyan); color: white;
    padding: 0.5rem 1.5rem; border-radius: 8px; text-decoration: none;
    font-weight: 500; font-size: 0.875rem;
}
.gj-empty a:hover { background: #0891b2; box-shadow: 0 4px 14px var(--gj-cyan-glow); color: #ffffff; }

/* Navigation */
.gj-nav-links {
    display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap;
}
.gj-nav-links a {
    color: rgba(255, 255, 255, 0.5); text-decoration: none;
    font-size: 0.8125rem; padding: 0.375rem 0.625rem;
    border-radius: 0.375rem; transition: all 0.2s; white-space: nowrap;
}
.gj-nav-links a:hover, .gj-nav-links a.active {
    color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.05);
}
.gj-nav-toggle {
    display: none; background: none; border: none;
    color: rgba(255, 255, 255, 0.7); font-size: 1.5rem; cursor: pointer; padding: 0.25rem;
}

/* Utility */
.gj-text-muted { color: var(--gj-text-muted); }
.gj-text-sm { font-size: 0.8125rem; }
.gj-mt-1 { margin-top: 0.5rem; }
.gj-mt-2 { margin-top: 1rem; }
.gj-mb-1 { margin-bottom: 0.5rem; }
.gj-flex { display: flex; }
.gj-flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Stars */
.gj-stars { color: #fbbf24; font-size: 0.875rem; }

/* Evidence page specific */
.evidence-hash {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    word-break: break-all;
    color: var(--gj-text-muted);
}
.evidence-icon {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.25rem;
}
.evidence-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.evidence-details { flex: 1; min-width: 0; }

/* Loading */
.gj-loading { text-align: center; padding: 2rem; color: var(--gj-text-muted); }
.gj-loading .spinner {
    display: inline-block; width: 24px; height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--gj-cyan);
    border-radius: 50%; animation: gj-spin 0.6s linear infinite;
}
@keyframes gj-spin { to { transform: rotate(360deg); } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

@media (max-width: 768px) {
    .gj-nav-toggle { display: block; }
    .gj-nav-links {
        display: none; width: 100%; flex-direction: column;
        gap: 0; padding-top: 0.5rem;
    }
    .gj-nav-links.open { display: flex; }
    .gj-nav-links a {
        padding: 0.625rem 0.5rem; border-radius: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }
    .gj-nav-inner { flex-wrap: wrap; }
    .gj-grid-2, .gj-grid-3, .gj-grid-4 { grid-template-columns: 1fr; }
    .gj-table { font-size: 0.8rem; }
}
