/* ================================================================
   docs.css — shared styles for marketing doc/content pages
   Used by: federation_guide, roadmap, run_your_own_node, privacy,
            node_api_docs
   ================================================================ */

/* ----- Hero ----- */
.doc-hero {
    text-align: center;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.doc-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    color: #ffffff;
}

.doc-hero .highlight {
    color: #7289da;
}

.doc-hero p {
    font-size: 18px;
    color: #8e9297;
    max-width: 700px;
    margin: 0 auto;
}

/* ----- Content area ----- */
.doc-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.doc-content h2 {
    font-size: 28px;
    color: #7289da;
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3a3a3a;
}

.doc-content h2:first-child {
    margin-top: 0;
}

.doc-content h3 {
    font-size: 18px;
    color: #ffffff;
    margin: 28px 0 10px;
}

.doc-content p {
    color: #b9bbbe;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.doc-content ul,
.doc-content ol {
    color: #b9bbbe;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 24px;
}

.doc-content li {
    margin-bottom: 8px;
}

.doc-content strong {
    color: #ffffff;
}

.doc-content code {
    background-color: #1e1e1e;
    color: #7289da;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* ----- Info / warn boxes ----- */
.info-box {
    background-color: rgba(114, 137, 218, 0.1);
    border-left: 4px solid #7289da;
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    margin: 16px 0 24px;
}

.info-box p {
    color: #b9bbbe;
    margin: 0;
    font-size: 15px;
}

.info-box strong {
    color: #7289da;
}

.warn-box {
    background-color: rgba(250, 166, 26, 0.1);
    border-left: 4px solid #faa61a;
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    margin: 16px 0 24px;
}

.warn-box p {
    color: #b9bbbe;
    margin: 0;
    font-size: 15px;
}

.warn-box strong {
    color: #faa61a;
}

/* ----- Setup tabs ----- */
.setup-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid #3a3a3a;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1rem;
    font-family: inherit;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover { color: #ddd; }

.tab-btn.active {
    color: #fff;
    border-bottom-color: #7289da;
}

.tab-badge {
    background: #7289da;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ----- Doc nav (prev/next links) ----- */
.doc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #3a3a3a;
}

.doc-nav a {
    color: #7289da;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}

.doc-nav a:hover {
    color: #5b6eae;
}

/* ----- Code blocks (self-host guide) ----- */
.code-block {
    background-color: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 20px 24px;
    margin: 16px 0 24px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #b9bbbe;
    white-space: pre;
}

.code-block .comment { color: #4a5060; }
.code-block .cmd     { color: #43b581; }
.code-block .key     { color: #7289da; }
.code-block .val     { color: #faa61a; }

/* ----- Numbered step list (self-host guide) ----- */
.step-list {
    counter-reset: steps;
    list-style: none;
    padding-left: 0;
}

.step-list > li {
    counter-increment: steps;
    padding-left: 48px;
    position: relative;
    margin-bottom: 20px;
}

.step-list > li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background-color: #7289da;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

/* ----- Prerequisite grid (self-host guide) ----- */
.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0 28px;
}

.req-card {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 16px 20px;
}

.req-card h4 {
    color: #7289da;
    font-size: 14px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.req-card p {
    color: #8e9297;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ----- Concept grid (federation guide) ----- */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.concept-card {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 20px;
}

.concept-card h4 {
    color: #7289da;
    font-size: 16px;
    margin-bottom: 8px;
}

.concept-card p {
    color: #8e9297;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ----- ASCII diagram (federation guide) ----- */
.diagram {
    background-color: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #b9bbbe;
    white-space: pre;
}

.diagram .node-a { color: #7289da; }
.diagram .node-b { color: #43b581; }
.diagram .arrow  { color: #faa61a; }
.diagram .label  { color: #8e9297; }

/* ----- Roadmap items ----- */
.roadmap-item {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.roadmap-item:hover {
    border-color: #7289da;
}

.roadmap-icon {
    font-size: 24px;
    color: #7289da;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    padding-top: 2px;
}

.roadmap-body h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 8px;
}

.roadmap-body p {
    color: #8e9297;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.roadmap-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

.tag-infra     { background-color: rgba(114, 137, 218, 0.2); color: #7289da; }
.tag-feature   { background-color: rgba(67,  181, 129, 0.2); color: #43b581; }
.tag-client    { background-color: rgba(250, 166,  26, 0.2); color: #faa61a; }
.tag-community { background-color: rgba(240,  71,  71, 0.2); color: #f04747; }

/* ----- Placeholder (api docs / coming-soon pages) ----- */
.placeholder-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 20px 120px;
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    color: #3a3a3a;
    margin-bottom: 24px;
}

.placeholder-content h2 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 12px;
}

.placeholder-content p {
    color: #8e9297;
    font-size: 16px;
    line-height: 1.7;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .doc-hero h1       { font-size: 28px; }
    .concept-grid      { grid-template-columns: 1fr; }
    .diagram           { font-size: 11px; }
    .roadmap-item      { flex-direction: column; gap: 12px; }
    .req-grid          { grid-template-columns: 1fr; }
    .code-block        { font-size: 11px; padding: 14px 16px; }
    .step-list > li    { padding-left: 40px; }
}
