@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #080b12;
    --card: #111827;
    --card2: #151f32;
    --text: #eef2ff;
    --muted: #aab4c8;
    --border: #253149;
    --accent: #4da3ff;
    --accent2: #8b5cf6;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    direction: rtl;
    background:
        radial-gradient(circle at top right, rgba(77, 163, 255, 0.16), transparent 380px),
        radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.12), transparent 420px),
        linear-gradient(180deg, #080b12 0%, #0b1020 100%);
    color: var(--text);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 18px;
    line-height: 2;
    font-weight: 400;
}

/* Hide default MkDocs parts */
.navbar,
.navbar-default,
.bs-sidebar,
footer,
.col-md-3 {
    display: none !important;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 38px 14px 70px;
}

.col-md-9 {
    width: 100% !important;
    float: none !important;
}

/* Main box */
[role="main"] {
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 40px 38px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.38);
}

/* Headings */
h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.8;
    margin: 0 0 26px;
    color: #ffffff;
}

h2 {
    font-size: 30px;
    font-weight: 650;
    margin-top: 42px;
    margin-bottom: 14px;
    color: #ffffff;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

h3 {
    font-size: 23px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 30px;
}

/* Text */
p {
    color: var(--text);
    margin: 14px 0;
    font-weight: 400;
}

strong,
b {
    font-weight: 600;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 34px 0;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Button-like links */
p > a:only-child,
li > a:only-child {
    display: inline-block;
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.18), rgba(139, 92, 246, 0.18));
    color: #dbeafe;
    border: 1px solid rgba(77, 163, 255, 0.35);
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    margin: 4px 0;
}

p > a:only-child:hover,
li > a:only-child:hover {
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.28), rgba(139, 92, 246, 0.28));
    text-decoration: none;
}

/* Lists */
ul,
ol {
    padding-right: 26px;
}

li {
    margin: 10px 0;
    font-weight: 400;
}

/* Notes */
blockquote {
    background: rgba(21, 31, 50, 0.9);
    border: 1px solid var(--border);
    border-right: 5px solid var(--accent);
    border-radius: 16px;
    padding: 14px 18px;
    margin: 24px 0;
    color: var(--muted);
}

blockquote p {
    color: var(--muted);
}

/* Images */
img {
    max-width: 100%;
    display: block;
    margin: 24px auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

/* Code */
code {
    direction: ltr;
    display: inline-block;
    background: #0b1220;
    color: #bfdbfe;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 2px 7px;
    font-family: Consolas, monospace;
    font-size: 0.95em;
}

pre {
    direction: ltr;
    background: #0b1220;
    color: #bfdbfe;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    overflow-x: auto;
}

/* Mobile */
@media (max-width: 700px) {
    body {
        font-size: 16.5px;
    }

    .container {
        padding: 16px 8px 45px;
    }

    [role="main"] {
        padding: 26px 18px;
        border-radius: 20px;
    }

    h1 {
        font-size: 31px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }
}
.app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 30px;
}

.app-buttons a,
.app-buttons a:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 12px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
    transition: all 0.18s ease;
}

.app-buttons a:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.38);
    text-decoration: none !important;
    filter: brightness(1.08);
}
