/**
 * docs.html — Documentation page styles
 * Sidebar, doc cards, code blocks, section accents
 * Readability: বড় ফন্ট, রেসপন্সিভ
 */

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    font-size: 16px;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    min-height: 100vh;
    font-size: 1.0625rem; /* 17px base */
    line-height: 1.7;
}

/* Documentation content: পড়া সহজ — বড় টেক্সট */
.doc-card {
    font-size: 1.0625rem;
}

.doc-card p,
.doc-card li {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #334155;
}

/* Tailwind text-sm / text-xs override — ডক কন্টেন্টে ছোট টেক্সট কম */
.doc-card .text-sm {
    font-size: 1rem !important;   /* 16px */
    line-height: 1.65;
}

.doc-card .text-xs {
    font-size: 0.9375rem !important; /* 15px */
    line-height: 1.6;
}

/* হেডিং সাইজ রেসপন্সিভ */
.doc-card h2 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.doc-card h3 {
    font-size: clamp(1.15rem, 3vw, 1.35rem);
}

.doc-card h4 {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.code-font {
    font-family: 'Fira Code', monospace;
}

.doc-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover {
    box-shadow: 0 12px 40px -8px rgba(15, 23, 42, 0.12);
    border-color: rgba(148, 163, 184, 0.4);
}

.sidebar-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.06);
    border-radius: 12px;
}

.sidebar-nav a {
    font-size: 16px;
    padding: 0.45rem 0.6rem 0.45rem 0.75rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.sidebar-nav a:hover {
    background: #e2e8f0;
    border-left-color: #64748b;
    color: #0f172a;
}

.sidebar-nav a.active {
    background: rgba(251, 191, 36, 0.12);
    border-left-color: #eab308;
    font-weight: 600;
    color: #0f172a;
}

.section-head {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
}

/* পড়ার সুবিধা: টেক্সট ও স্পেসিং */
.doc-card {
    line-height: 1.75;
}

.doc-card p {
    color: #334155;
    max-width: 72ch;
    font-size: 1.0625rem;
}

.doc-card h2,
.doc-card h3,
.doc-card h4 {
    color: #0f172a;
    letter-spacing: -0.02em;
}

.doc-card h3 {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

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

/* কোড ব্লক: ফুল উইডথ, কনট্রাস্ট ও স্পেসিং */
.doc-code-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.doc-card .mockup-code,
.mockup-code {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    background: #1e293b !important;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid #334155;
    margin: 1rem 0;
    font-size: 0.9375rem;  /* 15px — পড়তে সহজ */
    line-height: 1.7;
}

.doc-card .mockup-code pre {
    background: transparent !important;
    border: none !important;
    padding: 0.35rem 0 !important;
    color: #e2e8f0;
}

.doc-card .mockup-code code {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
}

/* ইনলাইন code (প্যারাগ্রাফ/লিস্টে) — পড়তে সুবিধা */
.doc-card p code,
.doc-card li code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.25em 0.5em;
    border-radius: 6px;
    font-size: 0.95em;
    font-family: 'Fira Code', monospace;
    border: 1px solid #e2e8f0;
}

/* Section accent: বাম পাশে রঙের স্ট্রিপ */
.doc-card-accent {
    border-left: 4px solid #94a3b8;
}

.doc-card-accent-amber {
    border-left-color: #f59e0b;
}

.doc-card-accent-blue {
    border-left-color: #3b82f6;
}

.doc-card-accent-emerald {
    border-left-color: #10b981;
}

.doc-card-accent-orange {
    border-left-color: #f97316;
}

.doc-card-accent-teal {
    border-left-color: #14b8a6;
}

.doc-card-accent-purple {
    border-left-color: #8b5cf6;
}

.doc-card-accent-red {
    border-left-color: #ef4444;
}

.doc-card-accent-cyan {
    border-left-color: #06b6d4;
}

.doc-card-accent-indigo {
    border-left-color: #6366f1;
}

/* Code block wrapper: position for Copy button */
.doc-code-copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.8125rem;  /* 13px — ক্লিক করতে সুবিধা */
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.doc-code-copy:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.doc-code-copy.copied {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

/* ========== Responsive: মোবাইল ও ট্যাবলেট ========== */
@media (max-width: 1023px) {
    .doc-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .doc-card p {
        max-width: 100%;
    }
}

@media (max-width: 639px) {
    html {
        font-size: 15px;
    }
    .doc-card {
        padding: 1.25rem 1rem;
    }
    .doc-card p,
    .doc-card li {
        font-size: 1rem;
    }
    .doc-card .text-sm {
        font-size: 0.9375rem !important;
    }
    .doc-card .text-xs {
        font-size: 0.875rem !important;
    }
    .doc-card .mockup-code,
    .mockup-code {
        font-size: 0.875rem;
        padding: 1rem;
    }
    .sidebar-nav {
        max-height: none;
    }
}

/* ========== Pro Documentation: Syntax box, Pro tip, Future help ========== */
.doc-syntax-box {
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9375rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #F7DF1E;
    margin: 0.75rem 0;
    overflow-x: auto;
}
.doc-syntax-box strong { color: #F7DF1E; }
.doc-pro-tip {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}
.doc-pro-tip h4 { color: #92400e; font-size: 1rem; margin-bottom: 0.5rem; }
.doc-pro-tip p, .doc-pro-tip li { color: #78350f; font-size: 0.9375rem; }
.doc-future-help {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}
.doc-future-help h4 { color: #065f46; font-size: 1rem; margin-bottom: 0.5rem; }
.doc-future-help p, .doc-future-help li { color: #064e3b; font-size: 0.9375rem; }
.doc-enough-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(247, 223, 30, 0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.doc-enough-banner h3 { color: #F7DF1E; font-size: 1.1rem; margin-bottom: 0.5rem; }
.doc-enough-banner p { color: #cbd5e1; font-size: 0.9375rem; margin: 0; line-height: 1.6; }
