/**
 * Global Trust Bar - Nha Khoa Kim
 * Version: 1.0.2
 */

/* Mobile First - Global Trust Bar */
.global-trust-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #ffffff;
    padding: 8px 10px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Roboto', sans-serif;
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
}
.global-trust-bar.hidden {
    transform: translateY(-100%);
}
.trust-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 1200px;
    text-align: center;
    pointer-events: none;
}
.trust-bar-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.trust-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    pointer-events: none;
}
.trust-bar-icon i {
    font-size: 12px;
    color: #FFD700;
}
.trust-bar-text {
    font-size: 11px;
    line-height: 1.4;
    display: inline;
    pointer-events: none;
}
.trust-bar-text span {
    white-space: nowrap;
}
.trust-bar-text .text-mobile {
    display: inline;
}
.trust-bar-text .text-desktop {
    display: none;
}
.trust-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFD700;
    color: #003366;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
    flex-shrink: 0;
}
.live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    flex-shrink: 0;
}
.live-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-out infinite;
}
@keyframes live-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}
.trust-bar-highlight {
    color: #FFD700;
    font-weight: 700;
    text-transform: uppercase;
}
.trust-bar-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFD700;
    color: #003366;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 9px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 4px;
    pointer-events: auto;
    flex-shrink: 0;
    vertical-align: middle;
}
.trust-bar-cta .cta-mobile {
    display: inline;
}
.trust-bar-cta .cta-desktop {
    display: none;
}
.trust-bar-cta:hover {
    background: #fff;
    color: #003366;
    text-decoration: none;
}
.trust-bar-cta i {
    font-size: 10px;
}
body.trust-bar-visible {
    padding-top: 44px;
}
body.trust-bar-visible .u-header--sticky-top,
body.trust-bar-visible #header,
body.trust-bar-visible header {
    top: 38px !important;
}
body.trust-bar-visible #footer-fixed {
    z-index: 9998;
}

/* Tablet and up */
@media (min-width: 576px) {
    .global-trust-bar {
        padding: 10px 15px;
    }
    .trust-bar-text {
        font-size: 12px;
    }
    .trust-bar-badge {
        font-size: 10px;
        padding: 3px 8px;
        gap: 5px;
    }
    .trust-bar-icon {
        width: 26px;
        height: 26px;
    }
    .trust-bar-icon i {
        font-size: 13px;
    }
    .trust-bar-cta {
        font-size: 10px;
        padding: 4px 10px;
    }
    .live-dot {
        width: 8px;
        height: 8px;
    }
    .live-dot::before {
        width: 8px;
        height: 8px;
    }
    body.trust-bar-visible {
        padding-top: 44px;
    }
    body.trust-bar-visible .u-header--sticky-top,
    body.trust-bar-visible #header,
    body.trust-bar-visible header {
        top: 44px !important;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .global-trust-bar {
        padding: 12px 20px;
    }
    .trust-bar-content {
        gap: 10px;
    }
    .trust-bar-left {
        gap: 8px;
    }
    .trust-bar-text {
        font-size: 14px;
    }
    .trust-bar-text .text-mobile {
        display: none;
    }
    .trust-bar-text .text-desktop {
        display: inline;
    }
    .trust-bar-cta .cta-mobile {
        display: none;
    }
    .trust-bar-cta .cta-desktop {
        display: inline;
    }
    .trust-bar-badge {
        font-size: 11px;
        padding: 4px 10px;
        gap: 6px;
    }
    .trust-bar-icon {
        width: 30px;
        height: 30px;
    }
    .trust-bar-icon i {
        font-size: 14px;
    }
    .trust-bar-cta {
        font-size: 11px;
        padding: 5px 12px;
    }
    .live-dot {
        width: 9px;
        height: 9px;
    }
    .live-dot::before {
        width: 9px;
        height: 9px;
    }
    body.trust-bar-visible {
        padding-top: 48px;
    }
    body.trust-bar-visible .u-header--sticky-top,
    body.trust-bar-visible #header,
    body.trust-bar-visible header {
        top: 52px !important;
    }
}
