/* SensorBees Hub - Wiki Style */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --bg: #ffffff;
    --bg-sidebar: #f8f9fa;
    --bg-code: #f1f3f5;
    --text: #333333;
    --text-light: #666666;
    --border: #e1e4e8;
    --accent: #ffab00;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --nav-height: 56px;
}

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

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

/* Top Nav */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #24292f;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.nav-logo {
    height: 32px;
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

/* Layout */
.main-layout {
    display: flex;
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-section h4 {
    padding: 8px 20px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.sidebar-link {
    display: block;
    padding: 6px 20px 6px 28px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.sidebar-link:hover {
    background: #eef1f5;
    color: var(--primary);
}

.sidebar-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: #e8f0fe;
}

/* Content */
.content {
    flex: 1;
    max-width: 900px;
    padding: 32px 48px;
}

.content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 8px;
}

.content p {
    margin-bottom: 16px;
    color: var(--text);
}

/* Hero */
.hero {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 16px !important;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.feature-card {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: var(--card-shadow);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.feature-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

/* Workflow */
.workflow {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: 600;
    font-size: 14px;
}

.workflow-arrow {
    font-size: 24px;
    color: var(--primary);
    padding-top: 20px;
}

.workflow-step h3 {
    font-size: 14px;
    margin: 8px 0;
}

.workflow-step p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: var(--card-shadow);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.product-img {
    font-size: 40px;
    margin-bottom: 12px;
}

.product-card h3 {
    margin: 0 0 4px;
}

.product-desc {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 12px !important;
}

.product-card ul {
    list-style: none;
    padding: 0;
}

.product-card li {
    font-size: 13px;
    color: var(--text-light);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.product-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Steps */
.steps {
    margin: 24px 0;
}

.step {
    background: var(--bg-sidebar);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 0 8px 8px 0;
}

.step h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.step p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .content { padding: 24px 16px; }
    .feature-grid { grid-template-columns: 1fr; }
    .workflow { flex-direction: column; }
    .workflow-arrow { display: none; }
    .nav-links { display: none; }
}
