/*
Theme Name: Henrik Child
Theme URI: https://badhombremagazine.com
Description: Child theme for Henrik
Author: Baha
Template: henrik
Version: 1.0.0
*/

/* --- Homepage Mobile Sticky Header Fix --- */
body.home.qodef-mobile-header--sticky-display #qodef-page-mobile-header,
body.home.qodef-mobile-header--sticky-display #qodef-page-mobile-header .qodef-page-mobile-header-inner {
    background-color: #daaa7a !important;
    background-image: none !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* --- Reading Time Styles --- */
.qodef-e-info-reading-time {
    margin-left: 0px !important;
    display: inline-block !important;
}

.qodef-e-info-reading-time .qodef-e-info-label {
    color: #000000 !important;   
    font-weight: 700 !important; 
    font-size: 11px !important;   
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

@media only screen and (max-width: 480px) {
    .qodef-e-info-reading-time {
        margin-left: 0 !important;
        display: block !important;
        margin-top: 4px;
    }
}

/* --- Inline Newsletter CTA --- */
.henrik-child-newsletter-inline {
    padding: 60px 0;
    margin: 60px 0;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.henrik-child-newsletter-inline-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px 0;
}

.henrik-child-newsletter-inline-subtitle {
    font-size: 14px;
    color: #666666;
    margin: 0 0 28px 0;
}

.henrik-child-newsletter-inline .wpcf7 {
    display: flex;
    justify-content: center;
}

.henrik-child-newsletter-inline .qodef-subscribe-cf7 {
    justify-content: center;
}

@media (max-width: 600px) {
    .henrik-child-newsletter-inline {
        padding: 40px 0;
        margin: 40px 0;
    }
}

/* --- Left Edge Slide-Out Search Bar --- */
.bh-left-search-wrapper {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 9999;
}

/* Hide completely on mobile/tablet */
@media (max-width: 1024px) {
    .bh-left-search-wrapper {
        display: none !important;
    }
}

/* The Vertical Toggle Button */
.bh-search-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 24px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    white-space: nowrap; /* FORCES TEXT ONTO ONE LINE */
    box-shadow: 2px 0 15px rgba(0,0,0,0.15);
    outline: none;
    transition: left 0.4s ease 0.2s, color 0.3s ease;
}

/* Make idle icon bigger */
.bh-search-toggle svg {
    transform: rotate(90deg);
    fill: currentColor;
    width: 20px; 
    height: 20px;
}

.bh-search-toggle:hover {
    color: #daaa7a;
}

.bh-left-search-wrapper.is-open .bh-search-toggle {
    left: -100px;
    transition: left 0.3s ease 0s;
}

/* The Sleek Black Search Panel */
.bh-search-panel {
    position: absolute;
    left: -400px;
    top: 50%;
    transform: translateY(-50%);
    background: #000000; 
    box-shadow: 5px 0 20px rgba(0,0,0,0.2);
    padding: 0px 25px; /* Thinner vertical padding */
    display: flex;
    align-items: center;
    width: 350px;
    transition: left 0.3s ease 0s;
}

.bh-left-search-wrapper.is-open .bh-search-panel {
    left: 0;
    transition: left 0.4s ease 0.2s;
}

.bh-search-form {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 0;
}

/* Clean, visible input field */
.bh-search-field {
    flex-grow: 1;
    border: none !important;
    border-bottom: 1px solid #ffffff !important; /* White underline */
    background: transparent !important;
    padding: 10px 5px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    color: #ffffff !important; /* White text */
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: border-color 0.3s ease !important;
}

.bh-search-field::placeholder {
    color: #888888 !important;
}

.bh-search-field:focus {
    border-bottom-color: #daaa7a !important; /* Gold on focus */
}

/* Strip theme button styling from the search icon */
.bh-search-submit {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer;
    padding: 0 0 0 15px !important;
    outline: none !important;
    transition: color 0.3s ease !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: auto !important;
    min-height: auto !important;
}

.bh-search-submit svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.bh-search-submit:hover {
    color: #daaa7a !important;
}

/* Hero Slider - Pagination closer to images */
.elementor-widget-henrik_core_blog_list .swiper-pagination {
    bottom: 25px !important;
}