html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding-top: 60px; /* adjust if your navbar height is different */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Smooth card look */

.card,
.post-body {
    border-radius: 0.75rem;
}

/* Blog post typography */

.blog-post .post-body {
    line-height: 1.7;
    font-size: 0.98rem;
}

    .blog-post .post-body p {
        margin-bottom: 0.9rem;
    }

    .blog-post .post-body h2,
    .blog-post .post-body h3,
    .blog-post .post-body h4 {
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }

/* Simple code block styling if you render HTML with <pre><code> */

.blog-post pre {
    background-color: #111827;
    color: #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    overflow-x: auto;
}

/* Move Prism toolbar to top-right nicely */
div.code-toolbar {
    position: relative;
}

    div.code-toolbar > .toolbar {
        opacity: 1; /* always visible, or use .code-toolbar:hover if you want hover only */
    }

        div.code-toolbar > .toolbar .toolbar-item > button,
        div.code-toolbar > .toolbar .toolbar-item > a {
            font-size: 0.75rem;
            padding: 0.15rem 0.5rem;
            border-radius: 999px;
        }

/* Integrate with your blog styling */
.blog-post pre[class*="language-"] {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.blog-post code:not([class*="language-"]) {
    background-color: #f3f4f6;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

.navbar.fixed-top {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    z-index: 1050;
}

    .cookie-banner a {
        color: #2563eb;
    }

.list-group-item-action:hover {
    background-color: rgba(0,0,0,0.02);
}

.code-frame {
    margin: 1rem 0 1.25rem;
}

    .code-frame .code-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .75rem;
        padding: .4rem .75rem;
        border: 1px solid rgba(0,0,0,.08);
        border-bottom: 0;
        border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
        background: #f8fafc;
        font-size: .85rem;
    }

    .code-frame .code-file {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
        color: #0f172a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .code-frame .code-badges {
        display: flex;
        gap: .4rem;
        align-items: center;
        flex-wrap: wrap;
    }

    .code-frame .code-badge {
        display: inline-flex;
        align-items: center;
        border: 1px solid rgba(0,0,0,.12);
        background: white;
        border-radius: 999px;
        padding: .1rem .55rem;
        font-size: .75rem;
        color: #334155;
    }

    /* Make the code block attach seamlessly to header */
    .code-frame pre[class*="language-"] {
        margin: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

html .card .post-body ul {
    margin-bottom: 0;
}

.card .post-body ul li {
    margin-bottom: .35rem;
}

a .card {
    transition: transform .12s ease, box-shadow .12s ease;
}

a:hover .card {
    transform: translateY(-2px);
}
/* ===============================
   Navbar dropdown hover (desktop)
   =============================== */

@media (min-width: 992px) { /* Bootstrap lg breakpoint */

    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar .dropdown > .dropdown-toggle::after {
        transition: transform 0.15s ease;
    }

    .navbar .dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}
