:root {
    --ink-bg: #101826;
    --paper-bg: #f8fafc;
    --gold-accent: #C6A15B;
    --gold-hover: #b48a31;
    --border: rgba(16,24,38,0.1);
    --text-primary: #334155;
    --text-muted: #64748b;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--paper-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
    color: var(--ink-bg);
    margin-bottom: 12px;
}

a {
    color: var(--gold-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--ink-bg);
    color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 24px;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar h3 {
    color: var(--gold-accent);
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background: rgba(198,161,91,0.15);
    color: var(--gold-accent);
}

.sidebar ul li a i {
    width: 20px;
    text-align: center;
}

.sidebar .sub-menu {
    list-style: none;
    margin-left: 24px;
    margin-top: 4px;
    margin-bottom: 12px;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 8px;
}
.sidebar .sub-menu a {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0 40px 60px;
    background: #fff;
    min-height: 100vh;
}

/* Header & Dev Profiles */
.docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink-bg);
}

.dev-profiles {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dev-info {
    display: flex;
    flex-direction: column;
}

.dev-info .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.dev-info .brand {
    font-weight: 700;
    color: var(--ink-bg);
    font-size: 0.95rem;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-accent);
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink-bg);
}

.profile-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Content Sections */
.section-content section {
    margin-bottom: 60px;
    padding-top: 40px;
    border-bottom: 1px dashed var(--border);
}
.section-content section:last-child {
    border-bottom: none;
}

.section-content h1 { font-size: 2.2rem; }
.section-content h2 { font-size: 1.8rem; margin-top: 30px; border-bottom: 2px solid var(--gold-accent); display: inline-block; padding-bottom: 4px; }
.section-content h3 { font-size: 1.3rem; margin-top: 24px; }
.section-content p { margin-bottom: 16px; font-size: 1rem; color: var(--text-muted); }

/* Feature Boxes */
.role-box {
    background: var(--paper-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.role-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-bg);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.feature-item h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.feature-item h5 i {
    color: var(--gold-accent);
}

.feature-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Images */
.screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 20px 0;
    display: block;
}
.image-placeholder {
    width: 100%;
    height: 300px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin: 20px 0;
    font-family: monospace;
    font-size: 0.9rem;
}
.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #94a3b8;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
table th, table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}
table th {
    background: var(--paper-bg);
    font-weight: 600;
    color: var(--ink-bg);
}

@media(max-width: 768px) {
    .wrapper { flex-direction: column; }
    .sidebar { width: 100%; position: relative; height: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .main-content { margin-left: 0; padding: 20px; }
    .feature-list { grid-template-columns: 1fr; }
}
