/* ============================================
   SBCRYPTO FOOTER - COMPLETE FIX v2.0
   Clean, responsive, always-at-bottom footer
   ============================================ */

/* ============================================
   0. GLOBAL PAGE STRUCTURE - STICKY FOOTER
   ============================================ */

/* Make the page fill viewport with flexbox */
html {
    min-height: 100% !important;
}

body {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Main content wrapper takes all available space */
#wrapper,
.site,
.site-container {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Content area fills space, pushing footer down */
#inner-wrap,
.site-main,
main {
    flex: 1 0 auto !important;
}

/* ============================================
   1. HIDE KADENCE FOOTER COMPLETELY
   ============================================ */

.site-footer,
#colophon,
footer.site-footer,
footer#colophon,
.site-footer-wrap,
.site-top-footer-wrap,
.site-middle-footer-wrap,
.site-bottom-footer-wrap,
.footer-widget-area,
.site-footer-inner-wrap,
.kadence-footer,
.site-bottom-footer,
.site-main-footer-wrap {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   2. SB-FOOTER - ALWAYS VISIBLE AT BOTTOM
   ============================================ */

.sb-footer,
footer.sb-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 100 !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
    width: 100% !important;
}

/* ============================================
   3. FOOTER CONTAINER STYLING
   ============================================ */

.sb-footer {
    background: #0a0a0f !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.sb-footer-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
}

/* ============================================
   4. FOOTER MAIN GRID - 4 COLUMNS
   ============================================ */

.sb-footer-main,
.sb-footer > .sb-footer-inner > .sb-footer-main,
.sb-footer .sb-footer-main {
    display: grid !important;
    visibility: visible !important;
    grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
    gap: 40px !important;
    padding: 60px 24px 40px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    height: auto !important;
    overflow: visible !important;
}

/* ============================================
   5. FOOTER BRAND SECTION (LEFT ALIGNED)
   ============================================ */

.sb-footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

/* Footer logo */
.sb-footer-logo,
a.sb-footer-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    margin-bottom: 16px !important;
}

.sb-footer-logo .sb-logo-mark {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    background: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.sb-footer-logo .sb-logo-mark img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    object-fit: contain !important;
}

.sb-footer-logo .sb-logo-text {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: baseline !important;
}

.sb-footer-logo .sb-logo-sb,
.sb-footer-logo .sb-logo-text .sb-logo-sb {
    background: linear-gradient(90deg, #8B5CF6, #EC4899) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.sb-footer-logo .sb-logo-crypto,
.sb-footer-logo .sb-logo-text .sb-logo-crypto {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.sb-footer-logo .sb-logo-dot,
.sb-footer-logo .sb-logo-text .sb-logo-dot {
    color: #EC4899 !important;
    -webkit-text-fill-color: #EC4899 !important;
}

/* Footer brand description */
.sb-footer-brand > p,
.sb-footer-brand p {
    color: #A1A1AA !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    max-width: 280px !important;
    text-align: left !important;
}

/* ============================================
   6. FOOTER SOCIAL LINKS
   ============================================ */

.sb-footer-social {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sb-footer-social a {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #A1A1AA !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.sb-footer-social a:hover {
    background: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.sb-footer-social a svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
}

/* ============================================
   7. FOOTER COLUMNS (LINKS)
   ============================================ */

.sb-footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.sb-footer-col h4 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.sb-footer-col a {
    display: block !important;
    color: #A1A1AA !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    transition: color 0.2s ease !important;
}

.sb-footer-col a:hover {
    color: #ffffff !important;
}

/* ============================================
   8. FOOTER BOTTOM BAR
   ============================================ */

.sb-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}

.sb-footer-bottom p {
    color: #52525B !important;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sb-footer-links {
    display: flex !important;
    gap: 24px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.sb-footer-links a {
    color: #52525B !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.sb-footer-links a:hover {
    color: #A1A1AA !important;
}

/* ============================================
   9. RESPONSIVE - TABLET (max-width: 900px)
   ============================================ */

@media (max-width: 900px) {
    .sb-footer-main,
    .sb-footer > .sb-footer-inner > .sb-footer-main,
    .sb-footer .sb-footer-main {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
        padding: 48px 20px 32px !important;
    }

    .sb-footer-brand {
        grid-column: 1 / -1 !important;
    }

    .sb-footer-brand > p {
        max-width: 100% !important;
    }
}

/* ============================================
   10. RESPONSIVE - MOBILE (max-width: 600px)
   ============================================ */

@media (max-width: 600px) {
    .sb-footer-main,
    .sb-footer > .sb-footer-inner > .sb-footer-main,
    .sb-footer .sb-footer-main {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 40px 16px 28px !important;
    }

    .sb-footer-col {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .sb-footer-col h4 {
        margin-bottom: 12px !important;
    }

    .sb-footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 20px 16px !important;
    }

    .sb-footer-links {
        justify-content: center !important;
        gap: 16px !important;
    }

    .sb-footer-social {
        justify-content: flex-start !important;
    }
}

/* ============================================
   11. PREVENT DUPLICATE FOOTERS
   ============================================ */

/* Keep only the FIRST sb-footer visible */
.sb-footer ~ .sb-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

/* ============================================
   12. PREVENT DUPLICATE HEADERS
   ============================================ */

.sb-header ~ .sb-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.sb-ticker ~ .sb-ticker {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ============================================
   13. SINGLE POST/ARTICLE SPECIFIC FIXES
   ============================================ */

/* Ensure footer shows on single posts */
body.single .sb-footer,
body.single-post .sb-footer,
body.page .sb-footer,
body.archive .sb-footer,
body.category .sb-footer,
body.home .sb-footer {
    display: block !important;
    visibility: visible !important;
    margin-top: auto !important;
}

/* Article content should not overflow */
.entry-content,
.single-content,
.post-content,
article {
    overflow: visible !important;
}

/* ============================================
   14. ENSURE FOOTER VISIBILITY ALWAYS
   ============================================ */

body .sb-footer,
.site-container .sb-footer,
#wrapper .sb-footer,
main + .sb-footer,
.content-wrap + .sb-footer,
#wrapper ~ .sb-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any inline display:none */
.sb-footer[style*="display: none"],
.sb-footer[style*="display:none"] {
    display: block !important;
}
