/*
Theme Name: B2BTimes B2B Insights
Theme URI: https://ai.studio/build
Author: Google AI Studio
Author URI: https://ai.studio/build
Description: A high-performance, polished, premium B2B editorial & consulting theme. Built-in B2B Service Enquiry forms, custom inbox management, styled columns, and modern Tailwind markup.
Version: 1.0.0
License: GNU GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: b2btimes
Tags: block-styles, custom-menu, featured-images, translation-ready, two-columns, premium-editorial
*/

/* Reset margins and establish box sizing */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background-color: #f8fafc; /* bg-slate-50 */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

*, ::before, ::after {
    box-sizing: inherit;
}

/* 
 * Push the sticky navigation bar down precisely when the WordPress Admin Bar is rendered.
 * This prevents the WP Admin Bar from blocking/overlaying the top B2B logo or menu options in normal and mobile viewports.
 */
body.admin-bar header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px !important;
    }
}

/* Ensure images have natural block margins with tailwind aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Fallback transitions for microinteractions */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ==========================================================================
   B2BTimes Branding & Theme Pure CSS Fallbacks
   ========================================================================== */

/* Logo branding layout */
.b2b-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.b2b-logo-icon-box {
    background: linear-gradient(135deg, #090d12 0%, #1e293b 100%) !important;
    background-color: #0f172a !important;
    color: #10b981 !important;
    padding: 8px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15) !important;
    margin-right: 12px !important;
}

.b2b-logo-text-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: normal !important;
}

.b2b-logo-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-weight: 900 !important;
    font-size: 24px !important;
    letter-spacing: -0.05em !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.b2b-logo-title .b2b-part {
    color: #10b981 !important; /* Vivid Emerald green */
}

.b2b-logo-title .times-part {
    color: #0f172a !important; /* Dark slate */
    font-weight: 800 !important;
}

/* Dark mode override for times part in footer */
.b2b-logo-dark .b2b-logo-title .times-part {
    color: #ffffff !important;
}

.b2b-logo-subtitle {
    font-family: monospace, Courier, monospace !important;
    font-size: 8px !important;
    font-weights: 700 !important;
    letter-spacing: 0.25em !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    margin-top: 4px !important;
    line-height: 1 !important;
}

/* Premium Footer Dark Theme Definition */
.b2b-site-footer {
    background-color: #090d12 !important; /* Dark background matches WordPress and React custom builds */
    color: #cbd5e1 !important;
    border-top: 1px solid #1e293b !important;
    padding-top: 64px !important;
    padding-bottom: 48px !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.b2b-site-footer a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 150ms ease !important;
}

.b2b-site-footer a:hover {
    color: #10b981 !important; /* High-contrast hover color */
}

.b2b-site-footer h3 {
    color: #f1f5f9 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
}

.b2b-site-footer p {
    color: #94a3b8 !important;
    font-size: 13px !important;
    line-height: 1.625 !important;
}

.b2b-site-footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.b2b-site-footer li {
    margin-bottom: 10px !important;
}

