/**
 * Mobile Ticker Styles
 * Consolidated mobile ticker announcement bar styles
 * Separated from mobile header for better organization
 */

/* ========================================
   MOBILE TICKER BASE STYLES
   ======================================== */

.mobile-ticker-row {
    display: none; /* Hidden by default, shown via media query */
    background: #8B4513 !important;
    width: 100% !important;
    height: 50px !important;
    overflow: hidden !important;
    align-items: center !important;
    position: relative !important;
    top: 0 !important;
    z-index: 9998 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* ========================================
   MOBILE TICKER CONTAINER
   ======================================== */

.mobile-ticker-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
}

/* ========================================
   MOBILE TICKER CONTENT
   ======================================== */

.mobile-ticker-content {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.mobile-ticker-text {
    color: white !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    position: absolute !important;
    padding-left: 15px !important;
    display: inline-block !important;
    line-height: 50px !important;
    letter-spacing: 0.3px !important;
    font-family: 'Poppins', sans-serif !important;
}

.mobile-ticker-text a {
    color: white !important;
    text-decoration: underline !important;
    font-weight: inherit !important;
}

.mobile-ticker-text a:hover {
    text-decoration: none !important;
    opacity: 0.8 !important;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Show mobile ticker on mobile/tablet devices */
@media (max-width: 1023px) {
    .mobile-ticker-row {
        display: flex !important;
    }
    
    /* Hide desktop ticker on mobile */
    .ticker-row {
        display: none !important;
    }
}

/* Hide mobile ticker on desktop */
@media (min-width: 1024px) {
    .mobile-ticker-row {
        display: none !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .mobile-ticker-row {
        height: 45px !important;
    }
    
    .mobile-ticker-text {
        font-size: 12px !important;
        line-height: 45px !important;
        padding-left: 12px !important;
    }
}

/* ========================================
   MOBILE TICKER ANIMATIONS
   ======================================== */

/* Scrolling animation for long text */
@keyframes tickerScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.mobile-ticker-text.scrolling {
    animation: tickerScroll 20s linear infinite;
}

/* Fade in animation */
@keyframes tickerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-ticker-row {
    animation: tickerFadeIn 0.3s ease forwards;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Ensure full width on mobile */
@media (max-width: 1023px) {
    .mobile-ticker-row {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-ticker-row {
        background: #000 !important;
        border-bottom: 2px solid #fff !important;
    }
    
    .mobile-ticker-text,
    .mobile-ticker-text a {
        color: #fff !important;
        font-weight: 600 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-ticker-text.scrolling {
        animation: none;
    }
    
    .mobile-ticker-row {
        animation: none;
    }
}