/*
Theme Name: Uncode Child
Theme URI: https://undsgn.com/uncode/
Description: Child theme for Uncode
Author: Undsgn
Author URI: https://undsgn.com/
Template: uncode
Version: 1.0.0
*/

/* REii Load More Button Styling */
.loadmore-button {
    text-align: center;
    margin: 50px auto 30px !important;
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loadmore-button a.btn,
.loadmore-button a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 14px 38px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    background: #fff !important;
    border: 1.5px solid #111 !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
    text-decoration: none !important;
}

.loadmore-button a.btn:hover,
.loadmore-button a:hover {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14) !important;
}

.loadmore-button a.btn:active,
.loadmore-button a:active {
    transform: translateY(0);
}

/* Remove Author and Separator from Post Cards & Single Posts */
.tmb .t-entry-author,
.tmb .separator-extra,
.is-reii-subdomain .t-entry-author,
.is-reii-subdomain .separator-extra,
.is-reii-subdomain .author-wrap,
.is-reii-subdomain .author-info,
.is-reii-subdomain .uncode-ib-avatar,
.is-reii-subdomain .post-author,
.is-reii-subdomain .author-profile,
.is-reii-subdomain .post-info .author,
.category-reii .t-entry-author,
.category-reii .separator-extra,
.category-reii .author-wrap {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* REii Brand Mark & Navbar Styling for REii Subdomain */
#main-logo .navbar-brand,
#logo-container-mobile .navbar-brand,
.menu-container .navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    outline: none !important;
    overflow: visible !important;
    height: 100% !important;
    max-height: none !important;
    line-height: 1 !important;
}

#main-logo .logo-customizer img,
#logo-container-mobile .logo-customizer img {
    display: none !important;
}

.reii-hdr-brand,
.aip-brand-word {
    display: inline-flex !important;
    align-items: baseline !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 24px !important;
    font-weight: 850 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    user-select: none !important;
}

/* Light backgrounds (portal topbar, sticky white header, etc.) */
.aip-topbar .aip-brand-word,
.aip-topbar .reii-hdr-brand,
#masthead:not(.menu-transparent) .reii-hdr-brand,
.is-sticky .reii-hdr-brand,
.menu-shrink:not(.style-dark) .reii-hdr-brand {
    color: #17151d !important;
}

/* Dark transparent headers (blog archive, single posts, dark sections) */
#masthead .reii-hdr-brand,
#masthead.menu-transparent .reii-hdr-brand,
#masthead.style-dark .reii-hdr-brand,
#masthead.menu-dark .reii-hdr-brand,
.style-dark .reii-hdr-brand,
.style-dark-bg .reii-hdr-brand,
.is-on-dark .reii-hdr-brand {
    color: #ffffff !important;
}

.reii-hdr-prefix,
.aip-brand-prefix {
    display: inline-block !important;
    transition: color 0.2s ease !important;
}

.navbar-brand:hover .reii-hdr-prefix,
.navbar-brand:focus-visible .reii-hdr-prefix,
.reii-hdr-brand:hover .reii-hdr-prefix {
    color: #8a6ef0 !important;
}

.aip-brand:hover .aip-brand-prefix,
.aip-brand:focus-visible .aip-brand-prefix {
    color: #0062ff !important;
}

.reii-hdr-i,
.aip-brand-i {
    display: inline-block !important;
    font-size: 0.95em !important;
    line-height: 1 !important;
    margin-left: -0.015em !important;
    vertical-align: baseline !important;
}

.reii-hdr-insert,
.aip-brand-insert {
    display: inline-block !important;
    width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    transform: translateX(-0.15em) !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
    transition: width 0.44s cubic-bezier(0.22, 1, 0.36, 1), max-width 0.44s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease 0.04s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.reii-hdr-before,
.aip-brand-before {
    transition: width 0.46s cubic-bezier(0.22, 1, 0.36, 1), max-width 0.46s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease 0.04s, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.reii-hdr-after,
.aip-brand-after {
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.06s, max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.06s, opacity 0.22s ease 0.1s, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.06s !important;
}

.reii-hdr-dot,
.aip-brand-period {
    color: transparent !important;
    display: inline-block !important;
    font-size: 0 !important;
    line-height: 0 !important;
    font-style: normal !important;
    height: 1em !important;
    margin-left: 0.04em !important;
    position: relative !important;
    vertical-align: baseline !important;
    width: 0.3em !important;
    user-select: none !important;
}

.reii-hdr-dot:after,
.aip-brand-period:after {
    aspect-ratio: 1 !important;
    background: #8a6ef0 !important;
    border-radius: 50% !important;
    bottom: 0.14em !important;
    content: "" !important;
    height: 0.22em !important;
    left: 0.02em !important;
    position: absolute !important;
    transition: filter 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease !important;
    width: 0.22em !important;
}

.navbar-brand:hover .reii-hdr-insert,
.navbar-brand:focus-visible .reii-hdr-insert,
.navbar-brand:active .reii-hdr-insert,
.reii-hdr-brand:hover .reii-hdr-insert,
.aip-brand:hover .aip-brand-insert,
.aip-brand:focus-visible .aip-brand-insert {
    width: auto !important;
    max-width: 3em !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
}

.navbar-brand:hover .reii-hdr-dot:after,
.navbar-brand:focus-visible .reii-hdr-dot:after,
.reii-hdr-brand:hover .reii-hdr-dot:after,
.aip-brand:hover .aip-brand-period:after,
.aip-brand:focus-visible .aip-brand-period:after {
    background: #a994f4 !important;
    filter: drop-shadow(0 0 6px rgba(169, 148, 244, 0.7)) !important;
    transform: scale(1.15) !important;
}

/* Subdomain Nav CTA & Secondary Buttons */
.reii-menu-cta .reii-btn-pill {
    background: #5d32ea !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
}
.reii-menu-cta:hover .reii-btn-pill {
    background: #17151d !important;
    transform: translateY(-1px);
}

.aip-reii-actions .aip-button-secondary,
.aip-button.aip-button-secondary {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(8px);
    border: 1.5px solid #17151d !important;
    color: #17151d !important;
    box-shadow: 0 2px 8px rgba(23, 21, 29, 0.05) !important;
    text-shadow: none !important;
}

.aip-reii-actions .aip-button-secondary:hover,
.aip-reii-actions .aip-button-secondary:focus-visible,
.aip-button.aip-button-secondary:hover,
.aip-button.aip-button-secondary:focus-visible {
    background: #17151d !important;
    border-color: #17151d !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 21, 29, 0.18) !important;
}

@media (prefers-reduced-motion: reduce) {
    .reii-hdr-insert, .aip-brand-insert,
    .reii-hdr-dot:after, .aip-brand-period:after {
        transition: none !important;
    }
}
