/**
 * Scrolling Messages CSS
 * Version 1.0.5 - Clean production version
 */

/* Main container */
.scrolling-messages-bar {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    min-height: 40px;
    display: block;
}

/* Inner container */
.scrolling-messages-container {
    width: 100%;
    overflow: hidden;
    padding: 0 15px;
    min-height: 30px;
    text-align: center;
}

/* Individual message styling */
.scrolling-message {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
    padding: 0 15px;
    box-sizing: border-box;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    z-index: 2;
}

/* Links within messages */
.scrolling-message a,
.scrolling-messages-container a {
    color: inherit;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: all 0.3s ease !important;
    font-weight: inherit;
    position: relative;
    display: inline-block;
    padding: 0 2px;
}

.scrolling-message a:hover,
.scrolling-messages-container a:hover {
    opacity: 0.7 !important;
    text-decoration: none !important;
    color: inherit;
}

/* Add a subtle highlight effect on hover */
.scrolling-message a:after,
.scrolling-messages-container a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    background-color: currentColor;
    opacity: 0.1;
    transition: height 0.3s ease;
}

.scrolling-message a:hover:after,
.scrolling-messages-container a:hover:after {
    height: 100%;
}

/* Initial messages that come from PHP */
.scrolling-message-initial {
    display: none;
}

/* Sizer for height calculations */
.scrolling-message-sizer {
    visibility: hidden;
    position: absolute;
    height: 0;
    opacity: 0;
    overflow: hidden;
    width: 100%;
}

/* Responsive styles */
@media (max-width: 767px) {
    .scrolling-messages-bar {
        padding: 8px 0;
        min-height: 30px;
    }
    
    .scrolling-messages-container {
        padding: 0 10px;
        font-size: 14px;
    }
    
    .scrolling-message {
        padding: 0 10px;
    }
}