/* ADSBiq — Light theme only */
:root {
    --accent: #0066cc;
    --accent-dark: #004d99;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}
.brand-icon {
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-admin { color: var(--accent) !important; }
.nav-login {
    background: var(--accent);
    color: white !important;
    padding: 6px 14px;
    border-radius: 6px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}
.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.accent { color: var(--accent); }
.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-google {
    background: white;
    color: #444;
    border: 1px solid var(--border);
    padding: 12px 32px;
    font-size: 16px;
}
.btn-google:hover { border-color: #4285F4; }

/* Stats bar */
.stats-bar, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 32px 0;
}
.stat-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.stat-card.large { padding: 32px; }
.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}
.stat-card.large .stat-value { font-size: 36px; }
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feature grid */
.features { margin: 48px 0; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* How it works */
.how-it-works {
    margin: 48px 0;
    text-align: center;
}
.how-it-works h2 { margin-bottom: 32px; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step { text-align: center; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* CTA bottom */
.cta-bottom {
    text-align: center;
    padding: 48px 0;
    margin: 32px 0;
    background: var(--bg-alt);
    border-radius: var(--radius);
}
.cta-bottom h2 { margin-bottom: 12px; }
.cta-bottom p { color: var(--text-muted); margin-bottom: 24px; }

/* Page header */
.page-header {
    margin-bottom: 32px;
}
.page-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}
.page-header p { color: var(--text-muted); }

/* Code/pre */
pre, code {
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.uuid-display {
    display: block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 16px;
    text-align: center;
    margin: 12px 0;
    word-break: break-all;
    user-select: all;
}
.uuid-small {
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    color: var(--text-muted);
}
.install-cmd {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 12px 0;
}
.install-cmd code { color: #e2e8f0; }
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
}
.code-block code { color: #e2e8f0; }

/* Forms */
.join-form {
    max-width: 500px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg);
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}
.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Join page */
.join-options { margin: 24px 0; }
.join-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 16px 0;
}
.join-card h2 { margin-bottom: 12px; }
.divider {
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
}
.divider span {
    background: var(--bg);
    padding: 0 16px;
    position: relative;
}
.note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}
.links-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.success-box {
    border: 2px solid #10b981;
    border-radius: var(--radius);
    padding: 32px;
    background: #f0fdf4;
}
.success-box h2 { color: #059669; }

/* Requirements */
.requirements {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}
.requirements ul {
    margin: 12px 0 12px 24px;
}
.requirements li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.data-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-alt);
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.data-table tr:hover { background: var(--bg-alt); }
.data-table .empty {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }

/* API docs */
.endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.endpoint-method {
    background: #10b981;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.endpoint-path {
    font-family: 'SF Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    flex-shrink: 0;
}
.endpoint p {
    width: 100%;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 14px;
    padding-left: 62px;
}
.api-auth, .api-endpoints, .api-response, .api-limits,
.api-section, .info-section, .feeder-charts, .link-account {
    margin: 32px 0;
}

/* Map embed */
.map-frame { margin: 16px 0; }

/* Login page */
.login-page {
    text-align: center;
    max-width: 400px;
    margin: 80px auto;
}
.login-page h1 { margin-bottom: 12px; }
.login-page p { color: var(--text-muted); margin-bottom: 16px; }
.login-page .btn-google { margin-top: 16px; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
    background: var(--bg-alt);
    border-radius: var(--radius);
}

/* Feeder info */
.feeder-location {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Footer */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 24px;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer p { color: var(--text-muted); font-size: 13px; }
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--accent); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .nav-links { gap: 12px; }
    .endpoint p { padding-left: 0; }
}
