/* ==========================================================================
   AURA ANNOUNCEMENT BARS - FRONTEND STYLES
   JavaScript-powered marquee for seamless animation
   ========================================================================== */

.aura-announcement-bar {
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

/* ==========================================================================
   STICKY BAR
   Position values are set dynamically by JavaScript for pixel-perfect stacking
   ========================================================================== */

.aura-announcement-bar.is-sticky {
    position: sticky;
    top: 0;
    z-index: 55;
    margin: 0 !important;
    border: none !important;
    box-shadow: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Header stuck - remove border-top from navigation */
.is_stuck .shoptimizer-primary-navigation,
.is_stuck .shoptimizer-primary-navigation ul.nav-menu > li > a {
    border-top: none !important;
}

/* ==========================================================================
   TRACK - JavaScript controlled transform
   ========================================================================== */

.aura-ab-track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    width: max-content;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.aura-ab-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.aura-ab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--ab-text-color, #ffffff);
    transition: opacity 0.2s ease;
    position: relative;
    font-size: 12px;
}

a.aura-ab-item:hover {
    opacity: 0.8;
    text-decoration: none;
    color: var(--ab-text-color, #ffffff);
}

/* ==========================================================================
   ICON
   ========================================================================== */

.aura-ab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aura-ab-icon svg {
    width: 16px;
    height: 16px;
    color: currentColor;
    stroke: currentColor;
}

/* ==========================================================================
   EMOJI
   ========================================================================== */

.aura-ab-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 480px) {
    .aura-ab-emoji {
        font-size: 14px;
    }
}

/* ==========================================================================
   TEXT - supports HTML formatting
   ========================================================================== */

.aura-ab-text {
    font-weight: 500;
    letter-spacing: 0.02em;
    display: inline;
    white-space: nowrap;
}

.aura-ab-text strong,
.aura-ab-text b {
    font-weight: 700;
}

.aura-ab-text em,
.aura-ab-text i {
    font-style: italic;
}

.aura-ab-text u {
    text-decoration: underline;
}

/* ==========================================================================
   SEPARATOR (optional)
   ========================================================================== */

.aura-ab-separator .aura-ab-item::after {
    content: '•';
    position: absolute;
    right: 12px;
    opacity: 0.5;
}

/* ==========================================================================
   RESPONSIVE VISIBILITY
   ========================================================================== */

/* Mobile only (< 768px) */
.aura-ab-mobile {
    display: block;
}

@media (min-width: 768px) {
    .aura-ab-mobile {
        display: none !important;
    }
}

/* Mobile + Tablet (< 1024px) */
.aura-ab-mobile_tablet {
    display: block;
}

@media (min-width: 1024px) {
    .aura-ab-mobile_tablet {
        display: none !important;
    }
}

/* All devices - always visible */
.aura-ab-all {
    display: block;
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 480px) {
    .aura-announcement-bar {
        font-size: 12px;
        padding: 8px 0;
    }

    .aura-ab-item {
        padding: 0 24px;
        gap: 6px;
    }

    .aura-ab-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .aura-ab-track {
        /* Animation will be stopped by JS checking this media query */
        transform: none !important;
    }

    .aura-ab-content:not(:first-child) {
        display: none;
    }

    .aura-ab-content {
        justify-content: center;
        width: 100%;
    }

    .aura-ab-item {
        padding: 0 15px;
    }
}

/* ==========================================================================
   DYNAMIC ELEMENTS
   ========================================================================== */

/* FOMO - Last purchases */
.aura-ab-dynamic[data-type="fomo"] .aura-ab-text {
    transition: opacity 0.3s ease;
}

.aura-ab-dynamic[data-type="fomo"].fomo-updating .aura-ab-text {
    opacity: 0.5;
}

.fomo-name,
.fomo-city,
.fomo-product {
    font-weight: 600;
}

/* Countdown timer */
.countdown-timer {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline;
    white-space: nowrap;
}

.aura-ab-dynamic[data-type="countdown"] .aura-ab-text {
    display: inline;
    white-space: nowrap;
}

.aura-ab-dynamic[data-type="countdown"].countdown-ended .countdown-timer {
    color: #fbbf24;
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Shipping progress */
.aura-ab-dynamic[data-type="shipping"].shipping-free .aura-ab-text {
    font-weight: 700;
}

.aura-ab-dynamic[data-type="shipping"] .shipping-text {
    transition: all 0.3s ease;
}

/* Orders count */
.aura-ab-dynamic[data-type="orders"] .orders-count {
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s ease;
}

.aura-ab-dynamic[data-type="orders"] .orders-text.orders-bump {
    animation: orders-bump 0.3s ease;
}

@keyframes orders-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    .aura-announcement-bar {
        display: none !important;
    }
}
