/* ==========================================================================
   AUTO-UPDATE ANNOUNCEMENT BANNER
   Location: css/auto-update-banner.css
   ========================================================================== */

.tc-autoupdate-banner {
    width: 100% !important;
    height: 44px !important;
    max-height: 44px !important;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
    display: flex !important;
    justify-content: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 2100 !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.25s ease, 
                border-color 0.25s ease !important;
}

/* Hard-stop collapse when hidden */
.tc-autoupdate-banner.is-hidden {
    max-height: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.tc-aub-container {
    width: 100% !important;
    max-width: 1400px !important;
    height: 100% !important;
    padding: 0 20px 0 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.tc-aub-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    height: 100% !important;
}

.tc-aub-image {
    height: 24px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.tc-aub-text {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    margin: 0 !important;
    letter-spacing: 0.2px !important;
}

.tc-aub-text strong {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.tc-aub-right {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    gap: 16px !important;
}

.tc-aub-full-btn {
    height: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    padding: 0 24px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.tc-aub-full-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%) !important;
    filter: brightness(1.1) !important;
}

.tc-aub-sync-svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 3 !important;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tc-aub-full-btn:hover .tc-aub-sync-svg {
    transform: rotate(180deg) !important;
}

.tc-aub-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.tc-aub-close-btn svg {
    width: 24px !important;
    height: 24px !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease !important;
}

.tc-aub-close-btn:hover {
    color: #ffffff !important;
}

.tc-aub-close-btn:hover svg {
    transform: rotate(90deg) scale(1.1) !important;
}

/* ==========================================================================
   GAP FIX: When banner is dismissed, automatically adjust Hero padding
   ========================================================================== */
body.home.mcb-banner-dismissed .tc-home-hero-section {
    padding-top: 195px !important; /* Reduced by exact banner height */
    transition: padding-top 0.3s ease !important;
}

@media (max-width: 992px) {
    .tc-aub-container { padding: 0 10px 0 20px !important; }
    .tc-aub-text { display: none !important; }
}

@media (max-width: 768px) {
    body.home.mcb-banner-dismissed .tc-home-hero-section {
        padding-top: 130px !important;
    }
}

@media (max-width: 576px) {
    .tc-autoupdate-banner { height: 50px !important; max-height: 50px !important; }
    .tc-aub-image { display: none !important; }
    .tc-aub-full-btn { padding: 0 16px !important; font-size: 12px !important; flex-grow: 1 !important; }
    .tc-aub-right { width: 100% !important; justify-content: space-between !important; gap: 12px !important; }
    .tc-aub-left { display: none !important; }
}