/* Make header fixed so we can hide/show via transform */

.site-post-header {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    height: var(--header-height);
    display: block;
    z-index: 120;
    background: linear-gradient(180deg, rgba(15, 111, 255, 0.06), rgba(255, 255, 255, 0));
    /* will be overridden in dark */
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    transform: translateY(0);
    transition: transform 260ms cubic-bezier(.2, .9, .2, 1), box-shadow 200ms ease;
    will-change: transform;
    box-shadow: 0 6px 20px rgba(8, 20, 48, 0.04);
}


/* darker, high-contrast header background in dark mode */

@media (prefers-color-scheme: dark) {
    .site-post-header {
        background: linear-gradient(180deg, rgba(3, 7, 15, 0.92), rgba(3, 7, 15, 0.85));
        box-shadow: 0 8px 28px var(--shadow-strong);
    }
}


/* Respect reduced motion prefs */

@media (prefers-reduced-motion: reduce) {
    .site-post-header {
        transition: none;
    }
}


/* Hidden state (moved off-screen) */

.site-post-header.header-hidden {
    transform: translateY(-110%);
    box-shadow: none;
}


/* Give the document top offset so content doesn't jump under fixed header */

.header-post {
    padding-top: var(--header-height);
}

.post-header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    position: relative;
}


/* Logo */

.logo {
    display: flex;
    gap: 12px;
    align-items: center
}

.site-logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--bg), var(--site-bg));
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 6px 16px var(--shadow-strong);
    flex: 0 0 44px;
    color: var(--text);
}

.brand-text {
    line-height: 1
}

.brand-title {
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
    letter-spacing: 0.2px
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px
}


/* Nav */

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px
}

.main-nav ul {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center
}

.main-nav a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: all 160ms ease;
    background: transparent;
    text-decoration: none;
}


/* Active / current link styling */

.main-nav a[aria-current="page"],
.main-nav a.active {
    background: linear-gradient(90deg, rgba(15, 111, 255, 0.12), rgba(58, 161, 255, 0.06)) !important;
    color: var(--brand);
    box-shadow: 0 6px 18px rgba(15, 111, 255, 0.06);
    transform: translateY(0px) !important;
    outline: none;
}

@media (prefers-color-scheme: dark) {
    .main-nav a[aria-current="page"],
    .main-nav a.active {
        /* stronger highlight in dark: a subtle bright band + soft glow */
        background: linear-gradient(90deg, rgba(88, 166, 255, 0.14), rgba(30, 111, 255, 0.06));
        color: var(--brand);
        box-shadow: 0 8px 20px rgba(40, 80, 140, 0.12);
    }
}

.main-nav a:hover,
.main-nav a:focus {
    transform: translateY(-2px);
    outline: none;
    background: rgba(11, 116, 255, 0.08);
    text-decoration: none;
    color: var(--brand);
}


/* Mobile hamburger */

.post-menu-toggle {
    display: none;
    background: transparent !important;
    border: 0;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer
}

.post-menu-toggle:focus {
    outline: 3px solid rgba(15, 111, 255, 0.12) !important;
}

.hamburger {
    width: 20px;
    height: 14px;
    position: relative;
    display: inline-block
}

.hamburger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 180ms ease, opacity 120ms ease
}

.hamburger span:nth-child(1) {
    top: 0
}

.hamburger span:nth-child(2) {
    top: 6px
}

.hamburger span:nth-child(3) {
    top: 12px
}

.menu-open .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg)
}

.menu-open .hamburger span:nth-child(2) {
    opacity: 0
}

.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg)
}


/* MOBILE NAV - hidden by default on all screens */

.mobile-nav {
    display: none;
    opacity: 0;
    pointer-events: none
}


/* mobile active style */

.mobile-nav a.active,
.mobile-nav a[aria-current="page"] {
    background: linear-gradient(90deg, rgba(15, 111, 255, 0.10), rgba(58, 161, 255, 0.04));
    color: var(--brand);
    border-radius: 8px;
}

@media (prefers-color-scheme: dark) {
    .mobile-nav a.active,
    .mobile-nav a[aria-current="page"] {
        background: linear-gradient(90deg, rgba(88, 166, 255, 0.12), rgba(30, 111, 255, 0.03));
        color: var(--brand);
    }
}


/* small helpers */

.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(15, 111, 255, 0.14);
    outline-offset: 3px;
}


/* MEDIA: show mobile controls only under breakpoint */

@media (max-width:880px) {
    .main-nav ul {
        display: none
    }
    .post-menu-toggle {
        display: inline-flex
    }
    .mobile-nav {
        display: block;
        position: absolute;
        right: 20px;
        top: var(--header-height);
        background: var(--content-bg);
        box-shadow: 0 12px 40px var(--shadow-soft);
        border-radius: 12px;
        padding: 12px;
        min-width: 220px;
        transform-origin: top right;
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
        pointer-events: none;
        transition: all 180ms ease;
        z-index: 60;
        border: 1px solid var(--border);
    }
    .mobile-nav.open {
        opacity: 1;
        transform: translateY(4px) scale(1);
        pointer-events: auto
    }
    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none
    }
    .mobile-nav a {
        padding: 10px 12px;
        border-radius: 8px;
        display: block;
        color: var(--text);
        font-weight: 400 !important;
        text-decoration: none;
        font-size: 16px;
    }
}


/* ========== Post Containt Code ========= */


/* ============ Blog Post Header ========= */

.greeting-view {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 0 10px;
    user-select: none;
    /* Standard */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
}

.views,
.greeting {
    padding: 10px;
    border-radius: 10px;
    background: var(--content-bg);
    box-shadow: 0 6px 16px var(--shadow-strong);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
    cursor: default;
}


/* .greeting .greet-text{

} */

.views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}

.views svg,
.greeting svg {
    width: 16px;
    height: 16px;
    fill: var(--text);
    vertical-align: middle;
}

.post-containt {
    background: var(--content-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px var(--shadow-strong);
    line-height: 1.7;
}


/* Mobile Device Css */

@media only screen and (max-width: 600px) {
    .greeting-view {
        padding: 0px;
    }
    .views,
    .greeting {
        padding: 7px;
    }
}


/* Breadcrum Css */

nav.ptf-breadcrumb svg {
    height: 14px;
    width: 14px;
    font-weight: 400;
}

nav.ptf-breadcrumb {
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
}

nav.ptf-breadcrumb a.home-link,
nav.ptf-breadcrumb a.posttype-link {
    display: flex;
    gap: 8px;
    align-items: center;
}


/* Containt Css  */


/* Drop Cap Style */

.post-welcome {
    background: var(--content-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px var(--shadow-strong);
    line-height: 1.7;
    padding: 10px;
}

.post-welcome p {
    margin: 0 !important;
    font-size: 15px;
}

.dropCap {
    float: left;
    margin: 4px 8px 0 0;
    font-size: clamp(3rem, 1.2rem + 2vw, 2.3rem);
    line-height: 45px;
    opacity: .8;
}