/*
	Theme Name: Rehub child theme
	Theme URI: https://wpsoul.com
	Description: A Hybrid magazine/shop/review/news Wordpress Theme
	Author: Sizam
	Author URI: https://wpsoul.com
	Version: 9.4
	Template: rehub-theme
*/

/* ==========================================================================
   FIREWITHFIRE.AI - TACTICAL STYLESHEET
   ========================================================================== */

/* --- 1. BASE & GRID --- */
body {
    background-color: #161616 !important; 
    /* Tactical Thatch Grid: Radial backlight, Orange horizontals, Purple verticals */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(38, 6, 86, 0.3) 0%, transparent 70%),
        linear-gradient(rgba(230, 91, 0, 0.15) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(38, 6, 86, 0.35) 1px, transparent 1px) !important;
    background-size: 100% 100%, 20px 20px, 20px 20px !important; 
    background-attachment: fixed !important;
    color: #d1d1d1 !important; 
}

/* --- 2. HEADER & NAVIGATION --- */
.main-nav, .rh-main-menu, #main_header {
    background-color: #1a1a1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.02) !important;
    border-bottom: 2px solid #161616 !important;
    box-shadow: none !important;
}

/* The "Nuclear" Gradient Underline Fix */
/* Targeting Style 7 specifically to beat the theme's internal logic */
body.dark_body nav.top_menu > ul:not(.off-canvas) > li.current-menu-item > a:after,
body.dark_body nav.top_menu > ul:not(.off-canvas) > li.current_page_item > a:after,
body.dark_body nav.top_menu > ul:not(.off-canvas) > li:hover > a:after,
.rh-main-menu ul li.current-menu-item > a:after {
    background: linear-gradient(60deg, #260656 20%, #e65b00 100%) !important;
    height: 4px !important; /* Thickened for visibility */
    opacity: 1 !important;
    visibility: visible !important;
    bottom: -2px !important;
}

/* White Header Icons Reset */
body .rh-header-icon .rhicon, 
body .rh-header-icon i,
body .btnsearch i,
body .rh-user-panel-link i,
body .re-compare-icon-toggle i,
body .rh-header-icon svg {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    fill: #ffffff !important;
    background: none !important;
}

/* Notice Bubbles */
body .rh-icon-cnt, 
body .re-compare-notice, 
body .rh-icon-notice {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #ffffff !important;
}

/* Direct Avatar Ring Fix */
body .user-ava-intop { background: transparent !important; border: none !important; padding: 0 !important; }
body img.avatar {
    border: 2px solid #ffffff !important; /* Forces the white ring */
    border-radius: 50% !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* --- 3. SEARCH BAR (HEADER) - THE SOFT RUBBER FIX --- */
/* We target the form and the input separately to ensure depth */

body .logo-section .search form.search-form,
body .head_search .search-form {
    background-color: #0d0d0d !important; /* Deeper black for the "hole" */
    border: 1px solid #000000 !important;
    border-radius: 10px !important; /* Rubbery curves */
    box-shadow: 
        inset 0 4px 10px rgba(0, 0, 0, 0.9),  /* Deep internal shadow */
        0 1px 0 rgba(255, 255, 255, 0.08) !important; /* Bottom lip highlight */
    overflow: hidden;
}

body .logo-section .search form.search-form input[type="text"] {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
    height: 40px !important;
    padding-left: 15px !important;
}

/* Fix for the Search Icon (Magnifying Glass) */
body .logo-section .search form.search-form button.btnsearch {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

body .logo-section .search form.search-form button.btnsearch i {
    color: #ffffff !important;
    font-size: 16px !important;
}

/* Focus state: Subtle orange light from within the rubber */
body .logo-section .search form.search-form:focus-within {
    border-color: #222222 !important;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 1),
        0 0 12px rgba(230, 91, 0, 0.15) !important; 
}

/* --- 4. POST WRAPPER & TACTICAL CARDS (GREENSHIFT INTEGRATION) --- */

/* Strip native ReHub wrappers to prevent nesting conflicts */
.rh-post-wrapper,
.post-inner,
.entry-content,
body .rh-post-wrapper article.post {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Vertical Row Spacing */
.gspb_row {
    margin-bottom: 60px !important; /* Increased spacing for shadow clearance */
}

/* Target GreenShift Columns as modular tactical cards */
.wp-block-greenshift-blocks-row-column {
    position: relative;
    /* 1. Rounded Gradient Border Hack (Border-image doesn't support radius) */
    border: 1px solid transparent !important;
    background: 
        linear-gradient(#1a1a1a, #1a1a1a) padding-box, 
        linear-gradient(60deg, #260656 0%, #e65b00 100%) border-box !important;
    
    /* 2. Rounded Corners */
    border-radius: 18px !important;
    
    /* 3. Tactical Lighting (Shadows) */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),            /* Base depth */
        0 10px 30px rgba(38, 6, 86, 0.4),         /* Purple ambient glow */
        0 0 15px rgba(230, 91, 0, 0.1) !important; /* Subtle orange edge lighting */
        
    padding: 40px 40px 80px 40px !important; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Fix heading alignment across columns */
.wp-block-greenshift-blocks-row-column > *:first-child {
    margin-top: 0 !important;
}

/* Inject Gutters and Fix Flexbox Math */
.gspb_row__content {
    gap: 30px !important;
}

.gspb_row__col--6 {
    width: calc(50% - 15px) !important; 
}

@media (max-width: 766.98px) {
    .gspb_row__content {
        gap: 20px !important;
    }
    .gspb_row__col--6 {
        width: 100% !important;
    }
}

.wp-block-greenshift-blocks-row-column p {
    color: #d1d1d1 !important;
    margin-bottom: 32px !important; 
}

.wp-block-greenshift-blocks-row-column a:not(.wpsm-button):not(.def_btn):not(.btn_offer_block) {
    color: #e65b00 !important;
    text-decoration: none !important;
}

strong, b {
    color: #ffffff !important;
    letter-spacing: 0.5px;
    text-shadow: 0 0 1px rgba(255,255,255,0.2);
}

/* --- 5. TYPOGRAPHY HIERARCHY --- */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* THE H1 "TACTICAL BAR" - Adjusted for diagonal gradient spread */
body.dark_body h1.wp-block-heading,
body.dark_body h1 {
    font-size: clamp(26px, 5vw, 38px) !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    margin-bottom: 30px !important;
    display: inline-block !important;

    /* Border Logic: Top (1px), Right (0), Bottom (1px), Left (8px) */
    border-width: 1px 0 1px 8px !important; 
    border-style: solid !important;
    
    /* 135deg ensures the gradient travels across the top/bottom lines AND the left bar */
    border-image: linear-gradient(135deg, #e65b00 0%, #260656 100%) 1 !important;
    
    padding: 15px 20px 15px 20px !important;
    word-wrap: break-word;
    hyphens: auto;
}

@keyframes systemBoot {
    0% { opacity: 0; filter: blur(4px); }
    50% { opacity: 0; }
    100% { opacity: 1; filter: blur(0px); }
}

/* Keep the H2 Status Brackets */
h2.wp-block-heading,
h2 {
    position: relative;
    display: inline-block;
    font-family: 'Raleway Dots', monospace !important;
    font-size: clamp(13px, 4vw, 24px) !important;
    font-weight: 700 !important;
    background: linear-gradient(60deg, #9d4edd 0%, #e65b00 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent !important;
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 1vw, 2px) !important;
    padding: 0 10px;
    margin-top: 45px; 
    margin-bottom: 20px !important;
    text-shadow: 0 0 8px rgba(230, 91, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    animation: systemBoot 0.8s ease-out forwards;
    white-space: normal !important; 
    word-wrap: break-word;
    max-width: 100%;
}

h2.wp-block-heading::before,
h2::before {
    content: "[";
    margin-right: 8px;
    color: rgba(230, 91, 0, 0.7);
    font-family: monospace;
    font-weight: bold;
    -webkit-text-fill-color: rgba(230, 91, 0, 0.7); 
}

h2.wp-block-heading::after,
h2::after {
    content: "]";
    margin-left: 8px;
    color: rgba(230, 91, 0, 0.7);
    font-family: monospace;
    font-weight: bold;
    -webkit-text-fill-color: rgba(230, 91, 0, 0.7);
}

h3.wp-block-heading,
h3 {
    font-size: clamp(16px, 3vw, 18px) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #ffffff !important;
    letter-spacing: 1px;
    margin-top: 30px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

/* --- 6. TACTICAL LISTS --- */
.rh-post-wrapper ul, 
.entry-content ul,
.wp-block-greenshift-blocks-row-column ul {
    list-style: none !important;
    padding-left: 10px !important;
}

.rh-post-wrapper ul li, 
.entry-content ul li,
.wp-block-greenshift-blocks-row-column ul li {
    position: relative;
    padding-left: 20px !important;
    margin-bottom: 12px !important;
    line-height: 32px !important; 
    color: #d1d1d1 !important; 
}

.rh-post-wrapper ul li::before,
.wp-block-greenshift-blocks-row-column ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px !important; 
    width: 4px !important;
    height: 4px !important;
    background-color: #e65b00 !important;
    box-shadow: 0 0 8px #e65b00;
    border-radius: 0px !important; 
    transition: 0.2s ease;
}

.rh-post-wrapper ul li:hover,
.wp-block-greenshift-blocks-row-column ul li:hover {
    color: #ffffff !important;
}

.rh-post-wrapper ul li:hover::before,
.wp-block-greenshift-blocks-row-column ul li:hover::before {
    background-color: #e65b00 !important;
    box-shadow: 0 0 12px rgba(230, 91, 0, 0.8) !important;
}

/* --- 7. COMMAND CONSOLE NAV TEXT --- */
.main-nav ul li a, 
.rh-main-menu ul li a {
    font-size: 13px !important; 
    font-weight: 400 !important; 
    text-transform: none !important; 
    letter-spacing: 0.5px !important; 
    color: #a1a1aa !important; 
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.rh-main-menu ul li.current-menu-item > a {
    color: #ffffff !important; 
}

/* --- 8. TACTICAL GRADIENTS (UTILITIES) --- */
.fwf-gradient-bg, 
.wpsm-button.fwf-gradient-bg {
    background: linear-gradient(60deg, #260656 20%, #e65b00 80%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(230, 91, 0, 0.2) !important;
    transition: all 0.3s ease;
}

.fwf-gradient-bg:hover {
    box-shadow: 0 4px 20px rgba(230, 91, 0, 0.5) !important;
    filter: brightness(1.1);
}

.fwf-gradient-border {
    border: 2px solid transparent;
    border-image: linear-gradient(60deg, #260656 20%, #e65b00 80%) 1;
}

/* --- 9. ARCHIVE & BLOG LOOP (Killing White Boxes & Readability Fix) --- */
.news-community, .def-block, .inf_control, article.post, .loop-item-wrap, .rh-cartbox, .news-block {
    background-color: #1a1a1a !important;
    border: 1px solid #272727 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    color: #d1d1d1 !important;
    border-radius: 0 !important;
    padding: 25px !important;
    margin-bottom: 30px !important;
}

/* Blast the text colors so excerpts and content are readable */
.news-community p, .loop-item-wrap p, article.post p, .news-block p, .entry-content p {
    color: #d1d1d1 !important;
}

/* Style the metadata (Author, Date, Comments icons) to stand out */
.post-meta, .post-meta a, .post-meta span, .meta, .meta a, .date_meta, .admin_meta {
    color: #a1a1aa !important; /* Dimmed Gray */
}
.post-meta a:hover, .meta a:hover {
    color: #e65b00 !important;
}


/* --- 10. SIDEBAR & SECONDARY BUTTONS --- */

/* Sidebar Search Input */
.sidebar .search-form input[type="text"],
.widget_search input[type="text"],
.widget_search form input[type="search"] {
    background-color: #161616 !important;
    border: 1px solid #272727 !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5) !important;
    padding: 10px !important;
    border-radius: 0 !important;
}

.sidebar .search-form input[type="text"]:focus,
.widget_search input[type="text"]:focus,
.widget_search form input[type="search"]:focus {
    border-color: #e65b00 !important;
    box-shadow: 0 0 8px rgba(230, 91, 0, 0.4) !important;
    outline: none !important;
}

/* Secondary Button State (Read More & Sidebar Search Submit) */
.fwf-btn-secondary,
.sidebar .search-form input[type="submit"],
.sidebar .search-form button,
.widget_search form input[type="submit"],
.widget_search form button,
a.more-link, .read-more, a.read_more, .btn_more, .def_btn {
    background: #1a1a1a !important; /* Tactical Onyx background */
    color: #ffffff !important; /* Pure white text */
    border: 2px solid transparent !important; 
    border-image: linear-gradient(60deg, #260656 20%, #e65b00 80%) 1 !important; /* Gradient Border */
    text-transform: uppercase !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    display: inline-block;
    text-decoration: none !important;
    box-shadow: none !important;
}

.fwf-btn-secondary:hover,
.sidebar .search-form input[type="submit"]:hover,
.sidebar .search-form button:hover,
.widget_search form input[type="submit"]:hover,
.widget_search form button:hover,
a.more-link:hover, .read-more:hover, a.read_more:hover, .btn_more:hover, .def_btn:hover {
    background: #272727 !important; /* Steel Gray elevation on hover */
    box-shadow: 0 0 15px rgba(230, 91, 0, 0.3) !important; /* Muted orange glow */
    color: #ffffff !important;
}