@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg:           #111318;
  --bg-surface:   #1a1d26;
  --bg-elevated:  #21252f;
  --border:       #2e3240;
  --text:         #e2e4ea;
  --text-muted:   #7c8298;
  --text-subtle:  #4e5368;
  --accent:       #7eb8f7;
  --accent-warm:  #f0a472;
  --code-bg:      #161921;
  --code-border:  #252936;
  --code-text:    #a8d8a8;

  --font-body:  'Outfit', sans-serif;
  --font-prose: 'Lora', serif;
  --font-mono:  'JetBrains Mono', monospace;

  --transition: 0.18s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */

.header_container {
    position: flex;
    top: 0;
    height: 56px;
    background-color: rgba(17, 19, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.logo {
    position: absolute;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.2);
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: 75px;
    border-radius: 10px;
}

/* ============================================================
   NAV
   ============================================================ */

nav {
    width: 70%;
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 0 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

nav a {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 10px;
    transition: color var(--transition), background-color var(--transition);
    letter-spacing: 0.02em;
}

nav a:hover {
    color: var(--text);
    background-color: var(--accent);
    transform: scale(1.1);
}

nav a.active {
    color: var(--accent);
    background-color: rgba(126, 184, 247, 0.08);
}

/* ============================================================
   GUIDE CONTENT
   ============================================================ */

.guide-content {
    width: 70%;
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 0 6rem;
    font-family: var(--font-prose);
    font-size: 1.05rem;
    line-height: 1.85;
}

/* --- Headings --- */
.guide-content h1,
.guide-content h2,
.guide-content h3,
.guide-content h4,
.guide-content h5,
.guide-content h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
}

.guide-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.guide-content h2 {
    font-size: 1.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.guide-content h3 { font-size: 1.12rem; }
.guide-content h4 { font-size: 0.98rem; color: var(--text-muted); font-weight: 500; }

/* --- Paragraphs --- */
.guide-content p {
    margin-bottom: 1.4rem;
}

/* --- Links --- */
.guide-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(126, 184, 247, 0.3);
    transition: border-color var(--transition), color var(--transition);
}

.guide-content a:hover {
    color: #b0d4fa;
    border-bottom-color: var(--accent);
}

/* --- Inline Code --- */
.guide-content code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    color: var(--accent-warm);
    background-color: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 4px;
    padding: 0.12em 0.45em;
}

/* --- Code Blocks --- */
.guide-content pre {
    background-color: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    overflow-x: auto;
    margin: 1.8rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.guide-content pre code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--code-text);
    background: none;
    border: none;
    padding: 0;
    line-height: 1.65;
}

.guide-content pre::-webkit-scrollbar { height: 6px; }
.guide-content pre::-webkit-scrollbar-track { background: transparent; }
.guide-content pre::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* --- Blockquote --- */
.guide-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.8rem 1.4rem;
    margin: 1.8rem 0;
    background-color: rgba(126, 184, 247, 0.05);
    border-radius: 0 4px 4px 0;
    color: var(--text-muted);
    font-style: italic;
}

.guide-content blockquote p {
    margin-bottom: 0;
}

/* --- Lists --- */
.guide-content ul,
.guide-content ol {
    padding-left: 1.6rem;
    margin-bottom: 1.4rem;
}

.guide-content li {
    margin-bottom: 0.45rem;
}

.guide-content ul li::marker { color: var(--accent); }
.guide-content ol li::marker { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85em; }

/* --- Horizontal Rule --- */
.guide-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* --- Tables --- */
.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.guide-content thead { background-color: var(--bg-elevated); }

.guide-content th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.guide-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--code-border);
    vertical-align: top;
}

.guide-content tr:last-child td { border-bottom: none; }
.guide-content tr:hover td { background-color: var(--bg-surface); }

footer {
    background-color: var(--bg-surface);
    color: white;
    font-size: 16px;
    text-align: center;
    vertical-align: middle;
    height: 50px;
    width: 100%;
    line-height: 50px;
    /* bottom: 0; */
    position: sticky;
    top: 100vh;
    /* margin-top: auto; */
}

/* ************************************************************************ */
/* *********************************MOBILE********************************* */
/* ************************************************************************ */

@media (max-width: 900px) {
    .guide-content,
    nav {
        width: 88%;
    }
}

@media (max-width: 600px) {
    .header_container {
        height: 50px;
        padding: 0 4%;
    }

    .guide-content,
    nav {
        width: 92%;
        padding-top: 2rem;
        padding-bottom: 4rem;
        font-size: 1rem;
    }

    .guide-content pre {
        padding: 1rem 1.1rem;
        border-radius: 4px;
    }
}