/* documentation/css/doc-style.css */
:root {
    /* Theme Variables */
    --bg-body: #09090b;
    --bg-sidebar: #0f1014;
    --bg-card: #18181b;
    --bg-code: #0d0d0d;
    
    --border-subtle: #27272a;
    --border-focus: #3f3f46;
    
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --accent: #FF6F00;
    --accent-glow: rgba(255, 111, 0, 0.15);
    
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    height: 100vh;
    overflow: hidden;
}
a{
    text-decoration: none;
    color: var(--accent);
}

/* LAYOUT */
.app-layout { display: flex; height: 100%; }

/* SIDEBAR */
.sidebar {
    width: 300px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.logo{
    border-radius: 100%;
    border: 3px solid var(--accent);
}
.logo-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}
.logo-icon {
    background: var(--accent);
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; font-weight: 600; }
.badge { 
    font-size: 0.7rem; 
    color: var(--text-secondary); 
    background: var(--border-subtle); 
    padding: 2px 6px; 
    border-radius: 4px; 
    margin-top: 4px; 
    align-self: flex-start;
}

.search-container { padding: 1rem; position: relative; }
.search-container input {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 0.6rem 0.6rem 2.2rem;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}
.search-container input:focus { outline: none; border-color: var(--accent); }
.search-container i { position: absolute; left: 22px; top: 22px; color: var(--text-muted); font-size: 0.8rem; }

.nav-scroller { flex: 1; overflow-y: auto; padding: 1rem; }
.nav-group { margin-bottom: 2rem; }
.nav-group h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}
.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: all 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.03); }
.nav-link.active { background: var(--accent-glow); color: var(--accent); font-weight: 500; }

/* CONTENT */
.content-canvas { flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.page-section { max-width: 900px; margin: 0 auto; padding: 4rem 3rem; display: none; animation: fadeIn 0.4s ease; }
.page-section.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.page-header { margin-bottom: 3rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 2rem; }
.chapter-label { font-size: 0.8rem; text-transform: uppercase; color: var(--accent); letter-spacing: 1px; font-weight: 700; display: block; margin-bottom: 0.5rem; }
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.lead { font-size: 1.25rem; color: var(--text-secondary); font-weight: 300; }

h3 { font-size: 1.5rem; color: #fff; margin: 2.5rem 0 1rem; }
p { margin-bottom: 1.2rem; color: var(--text-secondary); }
ul, ol { padding-left: 20px; color: var(--text-secondary); margin-bottom: 1.2rem; }
li { margin-bottom: 0.5rem; }

/* COMPONENTS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.feature-card { border: 1px solid var(--border-subtle); padding: 1.5rem; border-radius: 8px; background: var(--bg-card); }
.feature-card i { font-size: 1.5rem; color: var(--accent); margin-bottom: 1rem; }
.feature-card h4 { margin-top: 0; font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; margin: 0; }

.api-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border-subtle); }
.api-table th { text-align: left; background: rgba(255,255,255,0.02); padding: 1rem; color: #fff; border-bottom: 1px solid var(--border-subtle); }
.api-table td { padding: 1rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }

.code-block { background: var(--bg-code); border: 1px solid var(--border-subtle); border-radius: 8px; margin: 1.5rem 0; overflow: hidden; }
.code-header { padding: 0.5rem 1rem; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border-subtle); font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }
pre { margin: 0; padding: 1rem; overflow-x: auto; }
code { font-family: var(--font-mono) !important; font-size: 0.9rem; }
code.inline { background: rgba(255,255,255,0.1); padding: 0.2em 0.4em; border-radius: 4px; color: var(--text-primary); font-size: 0.85em; font-family: var(--font-mono); }

.callout { padding: 1rem; border-radius: 6px; margin: 1.5rem 0; font-size: 0.95rem; border: 1px solid; }
.callout.info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); color: #93c5fd; }

.doc-footer { margin-top: 4rem; padding: 2rem 3rem; border-top: 1px solid var(--border-subtle); text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.mobile-header { display: none; }

/*
  IN: css/doc-style.css
  REPLACE the existing @media block with this one at the end of the file.
*/
@media (max-width: 992px) {
    .app-layout {
        /* Prevent content from scrolling when sidebar is open */
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 1000;
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        box-shadow: 5px 0px 15px rgba(0,0,0,0.2);
    }

    .sidebar.is-open {
        transform: translateX(0); /* Visible state */
    }

    .mobile-header { 
        display: flex; 
        align-items: center; 
        padding: 1rem; 
        background: var(--bg-body); 
        border-bottom: 1px solid var(--border-subtle); 
    }
    .mobile-header button {
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.2rem;
        cursor: pointer;
        margin-right: 1rem;
    }

    .page-section { padding: 2rem 1.5rem; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* In documentation/css/doc-style.css, add this to the end */

.doc-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
/* In documentation/css/doc-style.css, add this to the end */

.verified-tick-doc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    background: #FF6F00;
    color: white;
    border-radius: 50%;
    font-size: 0.8em;
    vertical-align: middle;
    transform: translateY(-1px);
    margin: 5px;
}
.verified-tick-doc img {
    width: 25px;
    border-radius: 50px;
    border: 3px dashed #FF6F00;
}

.verified-tick-doc img:hover{
    transform: scale(1.2);
    border: 1px dashed #FF6F00;
}

/* Documentation Feature Grid */
.feature-grid-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: 12px;
}

.feature-item h4 {
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Document Verified Tick Style */
.verified-tick-doc img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-bottom: 3px;
}