/*
Theme Name: BunnyBlog
Template: bravada
Author: Bunny
Version: 1.1.0
*/

/* ---------- Video background ---------- */
#masthead {
    position: relative;
    height: 100vh !important;
    min-height: 600px;
    max-height: 1080px;
    overflow: hidden;
}

.bunny-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Layer above video for content */
#masthead #site-header-main,
#masthead #header-image-main {
    position: relative;
    z-index: 2;
}

/* Dark vignette overlay for readability */
#masthead::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.05) 65%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Hide Bravada default header artwork */
#masthead #header-image-main .header-image,
#masthead #header-image-main img.header-image,
#masthead #header-image-main #header-overlay {
    display: none !important;
}

/* ---------- Hide large center title ---------- */
#header-page-title,
#header-page-title-inside,
#masthead .animated-title {
    display: none !important;
}

/* ---------- Frosted-glass top bar (Antigravity style) ---------- */
#masthead #site-header-main {
    background: rgba(0, 0, 0, 0.38) !important;
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 50;
}

/* Admin bar offset */
body.admin-bar #masthead #site-header-main { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar #masthead #site-header-main { top: 46px; }
}

/* Shrink top bar rows */
#masthead .site-header-top,
#masthead .site-header-bottom,
#masthead .site-header-bottom-fixed,
#masthead .site-header-inside {
    background: transparent !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#masthead .site-header-bottom-fixed .site-header-inside {
    min-height: 56px;
    display: flex;
    align-items: center;
}

/* Compact left-aligned logo */
#branding {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    align-items: center;
}
#site-text { padding: 0 !important; margin: 0 !important; }
#site-title {
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}
#site-title a,
#site-title a:hover,
#site-title span,
#site-title span span {
    color: #ffffff !important;
    background: none !important;
    box-shadow: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    padding: 0 !important;
}
#site-description { display: none !important; }

/* Thin, light navigation links */
#masthead #access,
#masthead #header-menu,
#masthead nav#access ul,
#masthead #header-menu ul {
    background: transparent !important;
}
#masthead #access a,
#masthead #header-menu a,
#masthead .menu-burger {
    color: rgba(255,255,255,0.88) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    transition: color 0.2s ease;
}
#masthead #access a:hover,
#masthead #header-menu a:hover,
#masthead .menu-burger:hover {
    color: #ffffff !important;
}
#masthead #access ul li,
#masthead #header-menu ul li {
    background: transparent !important;
}

/* Top info/topbar row - hide if empty to save space */
#masthead .site-header-top:empty,
#masthead #header-menu:empty {
    display: none !important;
}

/* ---------- Push masthead content below fixed bar ---------- */
#masthead #header-image-main {
    height: 100vh !important;
    min-height: 600px;
    max-height: 1080px;
}
#masthead #header-image-main-inside {
    height: 100% !important;
    position: relative;
}

/* ---------- Scroll arrow (keep, restyle) ---------- */
#masthead .meta-arrow {
    display: block !important;
    position: absolute !important;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.75;
    animation: bunny-bounce 2.2s ease-in-out infinite;
}
#masthead .meta-arrow .icon-arrow,
#masthead .meta-arrow i {
    color: #ffffff !important;
    font-size: 28px !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
@keyframes bunny-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Body content offset (since header is fixed) ---------- */
/* The masthead itself is still in flow with 100vh, so body layout stays correct.
   We only need to ensure the top bar sits above the video. */

/* ---------- Footer ---------- */
/* nothing extra; parent theme footer already cleaned by remove_action */
/* Patch v1.1.1 */
#site-title a::before, #site-title a::after { display: none !important; content: none !important; }
#masthead .menu-burger { display: none !important; }
#masthead #header-menu { display: none !important; }
#masthead .site-header-top { display: none !important; }
#masthead #access { display: flex !important; align-items: center; }
#masthead #access ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
#masthead #access ul li { margin: 0; padding: 0; }
#masthead #access ul li a { padding: 8px 14px !important; display: inline-block; }
#masthead .meta-arrow { width: auto !important; height: auto !important; text-align: center; }
#branding { padding-left: 8px !important; }
/* Patch v1.1.2 - shrink header height */
#masthead .site-header-bottom,
#masthead .site-header-bottom-fixed { min-height: 56px !important; height: 56px !important; }
#masthead .site-header-bottom-fixed .site-header-inside { min-height: 56px !important; height: 56px !important; padding: 0 !important; }
#masthead #site-header-main { min-height: 56px !important; max-height: 56px !important; }
/* Patch v1.2.0 - center big title, transparent top bar */

/* 1. Top bar: fully transparent, no blur, no border */
#masthead #site-header-main {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 2. Hide small logo in top bar */
#masthead #branding,
#masthead #site-text,
#masthead #site-title {
    display: none !important;
}

/* 3. Show big centered BunnyBlog title in hero */
#masthead #header-image-main::before {
    content: "BunnyBlog";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.35);
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}

/* 4. Nav links: keep white with stronger shadow since no bg anymore */
#masthead #access a,
#masthead #header-menu a {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4) !important;
}
