/* Modern Dark Tech Theme */
:root {
    --bg-dark: #0b0f19;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --border: #1f293d;
    --border-highlight: #3b82f6;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-text strong {
    color: var(--primary);
}

.badge {
    font-size: 0.7rem;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-sec {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border-color: rgba(16, 185, 129, 0.3);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3.5rem 0 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* Search Box */
.search-box {
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem 0.5rem 0.4rem 1.2rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--border-highlight);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.search-icon {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    color: var(--text-muted);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    outline: none;
    font-family: var(--font-mono);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    font-family: var(--font);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease-in-out;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #374151;
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
}

/* Example Pills */
.example-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.pill-label {
    color: var(--text-muted);
}

.pill {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.pill:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
    border-color: var(--primary);
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.88rem;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    display: inline-block;
    box-shadow: 0 0 8px var(--accent);
}

.status-dot.error {
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

.status-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, border-color 0.15s;
}

.card:hover {
    border-color: #2b3954;
    transform: translateY(-2px);
}

.card-security {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(17, 24, 39, 1) 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.92rem;
    border-bottom: 1px dashed rgba(31, 41, 61, 0.4);
}

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

.data-label {
    color: var(--text-muted);
}

.data-val {
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

.data-val a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.data-val a:hover {
    text-decoration: underline;
}

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-warning { color: var(--accent-orange); }

.highlight-row {
    background: rgba(59, 130, 246, 0.08);
    margin: -0.25rem -0.5rem 0.5rem -0.5rem;
    padding: 0.6rem 0.5rem;
    border-radius: 6px;
    border: none;
}

.highlight-row .data-val {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: #93c5fd;
    font-weight: 700;
}

.copyable-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.copy-btn:hover {
    opacity: 1;
}

.badge-sm {
    font-size: 0.75rem;
    background: #1e293b;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* Risk Badges */
.risk-badge {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.18rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.risk-low {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.risk-medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.risk-high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Security Badges Grid */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.sec-pill {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.15s;
    background: rgba(31, 41, 55, 0.4);
    color: #4b5563;
    border: 1px solid rgba(55, 65, 81, 0.4);
}

.sec-pill.active {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.sec-pill.active-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

/* Raw JSON Section */
.json-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 3.5rem;
}

.json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.json-header h3 {
    font-size: 1.05rem;
}

.json-pre {
    background: #070a12;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #a7f3d0;
    max-height: 420px;
}

/* Docs Section */
.docs-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.docs-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.docs-section > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.endpoints-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 1.25rem;
}

.endpoint-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.method.get {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.endpoint-card code {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #93c5fd;
}

.endpoint-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.endpoint-card pre {
    background: #070a12;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #e2e8f0;
    overflow-x: auto;
    border: 1px solid var(--border);
}

/* Pricing / Tiers Section */
.pricing-section {
    padding: 2.5rem 0 4rem;
    border-top: 1px solid var(--border);
}

.pricing-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.75rem;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.active-card {
    border-color: var(--border-highlight);
    box-shadow: 0 0 25px -5px rgba(59, 130, 246, 0.2);
}

.tier-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.future-card .tier-tag {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.features strong {
    color: var(--text-primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    background: #070a12;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.attribution a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 1.85rem; }
    .input-wrapper { flex-direction: column; gap: 0.5rem; padding: 0.5rem; }
    .input-wrapper input { width: 100%; padding: 0.5rem; }
    .input-wrapper .btn { width: 100%; }
    .endpoints-list { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }
}
