/* ============================================================
   info-page.css — content styling for public info pages
   (Documentation, API Reference, Support, Changelog, Status,
   Trust, Security, Privacy, Terms).

   Page chrome (head, site-header, nav, footer, body background) comes
   from the shared app includes (header.php / navigation.php / footer.php),
   exactly like index.php. This file only styles the page CONTENT that
   lives inside <main class="info-container">.
   ============================================================ */

.info-container,
.info-container *,
.info-container *::before,
.info-container *::after { box-sizing: border-box; }

/* ── Page shell ── */
.info-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.info-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}

.info-header .eyebrow {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem;
}

.info-header p {
    color: #94a3b8;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.info-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.info-meta span { display: flex; align-items: center; gap: 0.5rem; }

/* ── Content cards ── */
.info-card {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.info-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 2rem 0 1rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(71, 85, 105, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.info-card h2 svg { color: #3b82f6; flex-shrink: 0; }

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 1.75rem 0 0.75rem 0;
}

.info-card p { color: #94a3b8; margin-bottom: 1rem; font-size: 0.9375rem; line-height: 1.7; }

.info-card ul, .info-card ol { margin: 1rem 0 1rem 1.5rem; color: #94a3b8; }

.info-card li { margin-bottom: 0.5rem; font-size: 0.9375rem; }

.info-card strong { color: #e2e8f0; font-weight: 600; }

.info-card a { color: #60a5fa; text-decoration: none; transition: color 0.2s ease; }

.info-card a:hover { color: #93c5fd; text-decoration: underline; }

/* ── Feature / link grid ── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-tile {
    display: block;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.15);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

a.info-tile:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -12px rgba(59, 130, 246, 0.2);
}

.info-tile strong { display: block; color: #f1f5f9; margin-bottom: 0.35rem; font-size: 0.9375rem; }

.info-tile span { font-size: 0.8125rem; color: #64748b; line-height: 1.5; }

/*
 * Small "Certification pending" / similar subtitle under a tile's main
 * status line. Dimmer + smaller + italic so it reads as a footnote, not
 * another status claim — the certification is genuinely pending so the
 * note must not look like a positive claim.
 */
.info-tile-note {
    display: block;
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-style: italic;
    margin-top: 0.35rem;
}

/* ── Code blocks (API docs) ── */
.code-block {
    background: #0b1120;
    border: 1px solid rgba(71, 85, 105, 0.25);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8125rem;
    color: #cbd5e1;
    line-height: 1.6;
    white-space: pre;
}

code.inline {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8125rem;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    padding: 0.125rem 0.4rem;
    border-radius: 6px;
}

/* HTTP verb badges */
.verb {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    margin-right: 0.5rem;
    text-transform: uppercase;
}
.verb.get  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.verb.post { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.verb.put  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.verb.del  { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.endpoint {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.15);
    border-radius: 10px;
    margin-bottom: 0.625rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8125rem;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.endpoint .path { color: #e2e8f0; }
.endpoint .desc { color: #64748b; font-family: 'Inter', sans-serif; margin-left: auto; font-size: 0.8125rem; }

/* ── Highlight box ── */
.highlight-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}
.highlight-box.success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.highlight-box.warning { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.2); }
.highlight-box p { margin-bottom: 0; }

/* ── Status page ── */
.status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid transparent;
}
.status-banner.ok       { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.25); }
.status-banner.degraded { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.25); }
.status-banner .dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.status-banner.ok .dot       { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }
.status-banner.degraded .dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2); }
.status-banner h2 { margin: 0; font-size: 1.25rem; font-weight: 700; color: #f1f5f9; border: none; padding: 0; }
.status-banner p { margin: 0.15rem 0 0; font-size: 0.875rem; color: #94a3b8; }

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.15);
}
.status-row:last-child { border-bottom: none; }
.status-row .name { font-size: 0.9375rem; color: #e2e8f0; font-weight: 500; }
.status-row .name span { display: block; font-size: 0.8125rem; color: #64748b; font-weight: 400; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
}
.status-pill.ok       { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.status-pill.degraded { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-pill.ok .dot       { background: #34d399; }
.status-pill.degraded .dot { background: #fbbf24; }

/* ── Changelog ── */
.changelog-entry {
    position: relative;
    padding: 0 0 2rem 1.75rem;
    border-left: 2px solid rgba(71, 85, 105, 0.25);
}
.changelog-entry:last-child { padding-bottom: 0; }
.changelog-entry::before {
    content: '';
    position: absolute;
    left: -7px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.changelog-entry .date { font-size: 0.8125rem; color: #64748b; margin-bottom: 0.25rem; }
.changelog-entry h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; color: #f1f5f9; }
.changelog-entry .tag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.tag.feature { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag.fix     { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tag.perf    { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

/* ── Contact box ── */
.contact-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}
.contact-box h3 { font-size: 1.25rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.75rem; }
.contact-box p { color: #94a3b8; margin-bottom: 1.5rem; }
.contact-box a.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.contact-box a.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.5); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .info-container { padding: 2rem 1rem 3rem; }
    .info-header h1 { font-size: 2rem; }
    .info-card { padding: 1.5rem; }
    .info-card h2 { font-size: 1.25rem; }
    .endpoint .desc { margin-left: 0; width: 100%; }
    .status-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .info-header h1 { font-size: 1.75rem; }
    .info-meta { flex-direction: column; gap: 0.5rem; }
    .info-card { padding: 1.25rem; }
}
