/* ==========================================================================
   AUTO-UPDATE FLOATING WIDGET
   Location: css/auto-update-widget.css
   ========================================================================== */

.tc-auw-fixed-container {
    position: fixed !important;
    bottom: 40px !important;
    left: 40px !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* 1. Entry Loader Spinner Bubble */
.tc-auw-loader-bubble {
    width: 60px !important;
    height: 60px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #f1f5f9 !important;
}

.fade-in-up {
    animation: auwFadeInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

@keyframes auwFadeInUp {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tc-auw-spinner-svg {
    width: 26px !important;
    height: 26px !important;
    animation: auwSpin 1s linear infinite !important;
}

.tc-auw-spinner-circle {
    fill: none !important;
    stroke: #7c3aed !important;
    stroke-width: 4 !important;
    stroke-linecap: round !important;
    stroke-dasharray: 2, 200 !important;
    stroke-dashoffset: 0 !important;
    animation: auwDash 1.5s ease-in-out infinite !important;
}

@keyframes auwSpin { 100% { transform: rotate(360deg); } }
@keyframes auwDash {
    0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 200; stroke-dashoffset: -35px; }
    100% { stroke-dashoffset: -125px; }
}

/* 2. Expanded Card State */
.tc-auw-card-wrapper {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 320px !important;
    transform-origin: bottom left !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    overflow: visible !important;
}

.tc-auw-card-wrapper.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) translateY(0) !important;
}

.tc-auw-card-wrapper.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.6) translateY(40px) translateX(-40px) !important;
    pointer-events: none !important;
}

/* Outside Cross Button */
.tc-auw-outside-cross {
    position: absolute !important;
    top: -14px !important;
    right: -14px !important;
    width: 34px !important;
    height: 34px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 10 !important;
    padding: 0 !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tc-auw-outside-cross svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 3.5 !important;
    transition: transform 0.2s ease !important;
}

.tc-auw-outside-cross:hover {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

.tc-auw-outside-cross:hover svg {
    transform: rotate(90deg) !important;
}

/* Card Body */
.tc-auw-card-inner {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.tc-auw-hero-image {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    background-color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.tc-auw-content {
    padding: 20px 24px 10px 24px !important;
    text-align: left !important;
}

.tc-auw-content h3 {
    margin: 0 0 8px 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
}

.tc-auw-content p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

.tc-auw-footer {
    padding: 16px 24px 24px 24px !important;
}

.tc-auw-premium-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100% !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    padding: 12px 20px !important; 
    border-radius: 50px !important; 
    font-size: 14px !important; 
    font-weight: 800 !important; 
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15) !important; 
    box-sizing: border-box !important;
}

.tc-auw-btn-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 0 !important;
    opacity: 0 !important;
    transform: translateX(-15px) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    overflow: hidden !important;
}

.tc-auw-btn-arrow svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 3 !important;
    flex-shrink: 0 !important;
}

.tc-auw-premium-btn:hover {
    background-color: #7c3aed !important;
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3) !important;
    gap: 6px !important;
}

.tc-auw-premium-btn:hover .tc-auw-btn-arrow {
    width: 18px !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* 3. Compressed Floating Bubble State */
.tc-auw-compressed-bubble {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: #0f172a !important; 
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    padding: 0 !important;
    outline: none !important;
}

.tc-auw-compressed-bubble.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) translateY(0) !important;
}

.tc-auw-compressed-bubble.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.5) !important;
    pointer-events: none !important;
}

.tc-auw-bubble-icon {
    width: 26px !important;
    height: 26px !important;
    color: #ffffff !important;
    z-index: 2 !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tc-auw-compressed-bubble:hover {
    border-color: #7c3aed !important;
    transform: scale(1.08) translateY(-4px) !important;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.35) !important;
}

.tc-auw-compressed-bubble:hover .tc-auw-bubble-icon {
    transform: rotate(180deg) scale(1.15) !important;
}

.tc-auw-pulse-ring {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    z-index: 1 !important;
    animation: auwBubblePulse 2.5s cubic-bezier(0.25, 0.8, 0.25, 1) infinite !important;
}

@keyframes auwBubblePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 768px) {
    .tc-auw-fixed-container {
        bottom: 85px !important;
        left: 20px !important;
    }
    .tc-auw-card-wrapper {
        width: 290px !important; 
    }
    .tc-auw-compressed-bubble {
        width: 54px !important;
        height: 54px !important;
    }
    .tc-auw-bubble-icon {
        width: 22px !important;
        height: 22px !important;
    }
}