﻿/* ScottMo.Dev "soft panel" theme */

/* Vars */
:root {
    --sm-bg-start: #dfe8ff;
    --sm-bg-end: #eef3ff;
    --sm-panel: rgba(255,255,255,.78);
    --sm-panel-bd: rgba(255,255,255,.88);
    --sm-shadow: 0 30px 60px rgba(28,39,63,.18);
    --sm-radius-lg: 22px;
    --sm-radius-md: 16px;
    --sm-radius-sm: 12px;
    --sm-content-max: 1280px; /* used by content only */
    --sm-gutter: 22px; /* main.container side padding */
}

html, body {
    height: 100%
}

/* Background image under gradient wash */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: radial-gradient(1200px 600px at -10% 0%, rgba(255,255,255,.28), transparent 60%), linear-gradient(180deg, var(--sm-bg-start), var(--sm-bg-end)), url("/images/background.jpg");
    background-size: auto, auto, cover;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 0 0, 0 0, center;
    background-attachment: scroll, scroll, fixed; /* fixed for subtle parallax */
    min-height: 100%;
    position: relative;
}

/* keep content above shell */
header, nav, main, footer, .navbar, .container {
    position: relative;
    z-index: 1;
}

    /* Navbar: integrated, light */
    .navbar,
    .navbar.bg-dark,
    .bg-dark {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

.navbar {
    --bs-navbar-padding-y: .6rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: .9rem 0 .8rem;
}

    /* Brand + spacing to menu (no forced container width/padding) */
    .navbar .navbar-brand {
        margin-left: 0 !important;
        margin-right: .35rem; /* tighter gap before menu */
        padding: 0; /* remove brand default padding */
        line-height: 1;
        flex: 0 0 auto;
        align-self: center;
        color: #0f172a !important; /* readable brand text */
        text-decoration: none;
    }

        .navbar .navbar-brand:hover {
            color: #111827 !important;
        }

        .navbar .navbar-brand .brand-logo {
            height: 26px;
            width: auto;
            display: inline-block;
            margin-right: .25rem !important; /* override any .me-2 on the <img> */
        }

    /* Menu links */
    .navbar .nav-link {
        position: relative;
        font-weight: 600;
        color: #0f172a !important;
    }

        .navbar .nav-link:hover,
        .navbar .nav-link:focus {
            color: #111827 !important;
        }

        .navbar .nav-link.active::after,
        .navbar .nav-link[aria-current="page"]::after {
            content: "";
            position: absolute;
            left: 8px;
            right: 8px;
            bottom: -10px;
            height: 3px;
            background: rgba(0,0,0,.22);
            border-radius: 2px;
        }
    /* tighten item spacing a bit */
    .navbar .navbar-nav {
        gap: .6rem;
    }

/* Main content surface */
main.container {
    min-height: 60vh;
    margin: 18px auto 48px;
    border-radius: var(--sm-radius-lg);
    padding: 22px 22px 26px;
    max-width: var(--sm-content-max);
    background: rgba(255,255,255,.60);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border: 1px solid rgba(255,255,255,.80);
    box-shadow: 0 18px 36px rgba(16,24,40,.12);
}

/* Cards, images, lists */
.card {
    border-radius: var(--sm-radius-md);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 6px 16px rgba(16,24,40,.08);
}

    .card.hero {
        border-radius: var(--sm-radius-lg);
    }

.img-fluid, .card-img, .card-img-top, .card-img-bottom {
    border-radius: var(--sm-radius-sm);
}

.list-group {
    border-radius: var(--sm-radius-md);
    overflow: hidden;
}

.thumb-soft {
    border-radius: var(--sm-radius-md);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 18px rgba(16,24,40,.10);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .7rem;
    border-radius: 9999px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.90);
    box-shadow: 0 6px 14px rgba(16,24,40,.12);
    font-weight: 600;
}

/* Utilities */
.blockquote {
    font-style: italic;
}

    .blockquote p {
        margin-bottom: .25rem;
    }

.hero-img {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto 0;
}

.store-card-img {
    height: 180px;
    object-fit: cover;
}

/* Notes: code and inline code */
.note-body pre,
.note-body .toastui-editor-contents pre,
.note-body .toastui-editor-ww-code-block,
.note-body .toastui-editor-md-code-block {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: .5rem;
    padding: 1rem;
    margin: 0 0 1rem 0;
    overflow: auto;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}

    .note-body pre code,
    .note-body .toastui-editor-contents pre code {
        background: transparent !important;
        color: inherit !important;
        font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
        font-size: .95rem;
        line-height: 1.45;
    }

.note-body :not(pre) > code,
.note-body .toastui-editor-contents :not(pre) > code {
    background: #fee2e2 !important;
    color: #7f1d1d !important;
    border: 1px solid #fecaca !important;
    border-radius: .25rem;
    padding: .125rem .375rem;
    font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size: .95em;
}

/* Tag pills */
.tag-badge {
    background: #fff !important;
    color: #111 !important;
    border: 1.5px solid #111 !important;
    border-radius: 9999px;
    padding: .25rem .60rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

    .tag-badge:hover {
        background: #111 !important;
        color: #fff !important;
    }

/* Small screens */
@media (max-width:576px) {
    main.container {
        padding: 16px 16px 20px;
        border-radius: var(--sm-radius-md);
        width: 94%;
        max-width: none;
    }
}
/* Keep left rail visible on mobile (adjust selector if needed) */
@media (max-width:767.98px) {
    .d-none.d-md-block {
        display: block !important;
    }
}
/* Slightly narrower content on medium screens */
@media (max-width:1200px) {
    :root {
        --sm-content-max: 1140px;
    }
}

/* Lighter gradient wash + clearer panels so the bg image shows through */
:root {
    --sm-panel: rgba(255,255,255,.55);
}
/* was .78 */

/* put this at the end of site.css */
body {
    background: radial-gradient(1200px 600px at -10% 0%, rgba(255,255,255,.18), transparent 90%), linear-gradient(180deg, rgba(223,232,255,.78), rgba(238,243,255,.78)), url("/images/background.jpg");
    background-size: auto, auto, cover;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 0 0, 0 0, center;
    background-attachment: scroll, scroll, fixed;
}

/* replace your body::before rule with this */
.site-shell {
    position: relative;
    min-height: 100vh;
    margin: 8px 6px;
    border-radius: 22px;
    background: var(--sm-panel);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border: 1px solid var(--sm-panel-bd);
    box-shadow: var(--sm-shadow);
}

/* Content panel slightly clearer too */
main.container {
    background: rgba(255,255,255,.46); /* was .60 */
    border: 1px solid rgba(255,255,255,.72); /* soften border */
}

/* Smaller + clearer site shell */
.site-shell {
    /* more inset from the window so you see more of the photo */
    margin: clamp(14px, 2.4vw, 32px);
    border-radius: 28px;
    /* lighter, clearer glass */
    background: rgba(255,255,255,.42); /* was ~.78 */
    backdrop-filter: saturate(150%) blur(8px); /* was 10–14px */
    -webkit-backdrop-filter: saturate(150%) blur(8px);
    border: 1px solid rgba(255,255,255,.60); /* lighter border */
    box-shadow: 0 18px 36px rgba(16,24,40,.12); /* softer shadow */
}

/* Content panel a touch clearer, too */
main.container {
    background: rgba(255,255,255,.38); /* was .60 */
    border: 1px solid rgba(255,255,255,.60);
}

/* ===== NEW: make Logout button and hamburger black ===== */

/* Logout button (was .btn-outline-light) */
.navbar .btn-outline-light {
    color: #111 !important;
    border-color: #111 !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #111;
    --bs-btn-hover-border-color: #111;
    --bs-btn-active-bg: #111;
    --bs-btn-active-border-color: #111;
    --bs-btn-disabled-color: #6c757d;
}

    .navbar .btn-outline-light:hover,
    .navbar .btn-outline-light:focus {
        color: #fff !important;
        background-color: #111 !important;
        border-color: #111 !important;
        box-shadow: 0 0 0 .2rem rgba(0,0,0,.15);
    }

/* Hamburger (navbar toggler) to black */
.navbar .navbar-toggler {
    border-color: rgba(0,0,0,.65) !important;
}

    .navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 .2rem rgba(0,0,0,.15) !important;
    }
/* override Bootstrap's white icon with a black SVG */
.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0,0,0,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}
