/* Luu Phuc ADS - Frontend Ticker Styles */

.lpads-ticker-wrapper {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 9999;
    transition: box-shadow 0.3s ease;
}

/* Sticky state */
.lpads-ticker-wrapper.lpads-sticky {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    box-shadow: 0 3px 15px rgba(0,0,0,0.25);
}

/* Placeholder để giữ chỗ khi sticky */
.lpads-ticker-placeholder {
    display: none;
}

.lpads-ticker-placeholder.active {
    display: block;
}

/* Label */
.lpads-ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #e63946;
    color: white;
    font-weight: 700;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 3px 0 15px rgba(0,0,0,0.2);
}

.lpads-label-icon {
    font-size: 16px;
}

.lpads-ticker-label::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, rgba(0,0,0,0.15), transparent);
}

/* Content */
.lpads-ticker-content {
    margin-left: 170px;
    margin-right: 50px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.lpads-ticker-track {
    display: flex;
    animation: lpads-scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes lpads-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.lpads-ticker-item {
    color: white;
    font-size: 14px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lpads-item-icon {
    flex-shrink: 0;
}

.lpads-ticker-item a {
    color: #fff3cd;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(255,255,255,0.5);
}

.lpads-ticker-item a:hover {
    color: white;
    border-bottom-color: white;
}

.lpads-ticker-separator {
    color: rgba(255,255,255,0.4);
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 12px;
}

/* Close button */
.lpads-ticker-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lpads-ticker-close:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .lpads-ticker-label {
        padding: 0 12px;
        font-size: 11px;
    }
    .lpads-label-text {
        display: none;
    }
    .lpads-label-icon {
        font-size: 18px;
    }
    .lpads-ticker-content {
        margin-left: 50px;
        margin-right: 40px;
    }
    .lpads-ticker-item {
        font-size: 13px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .lpads-ticker-item {
        font-size: 12px;
    }
    .lpads-item-icon {
        display: none;
    }
}
