/* Enhanced Footer Ticker Styles */
.enhanced-ticker-container {
    position: fixed;
    bottom: 0;
    background: #1a1a1a;
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    z-index: 9999;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.5);
    border-top: 3px solid #333;
}

.enhanced-ticker-full-width {
    width: 100%;
    left: 0;
    right: 0;
}

.enhanced-ticker-box-width {
    width: 95%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    border-radius: 0;
}

.enhanced-ticker-inner {
    display: flex;
    align-items: center;
    min-height: 60px;
    width: 100%;
}

/* Breaking News Label */
.enhanced-ticker-breaking {
    background: #ff0000;
    color: white;
    padding: 0 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    min-width: 140px;
    min-height: 80px;
}

.enhanced-breaking-text {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Logo Section */
.enhanced-ticker-logo-section {
    padding: 0 0px;
    border-right: 1px solid #333;
    display: flex;
    align-items: center;
    min-width: 80px;
    justify-content: center;
    background: #000000;
    height: 100%;
}

.enhanced-site-logo-text {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enhanced-ticker-logo-section img {
    max-height: 30px;
    width: auto;
}

/* Date/Time Section - FIXED VISIBILITY */
.enhanced-ticker-datetime-section {
    padding: 0 0px;
    border-right: 1px solid #333;
    min-width: 270px;
    background: #222222;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

.enhanced-ticker-datetime {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    width: 100%;
}

.enhanced-date-time-wrapper {
    position: relative;
    height: 20px;
    overflow: hidden;
    width: 100%;
}

.enhanced-current-time,
.enhanced-current-date {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.5s ease-in-out;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.2;
}

.enhanced-current-time {
    transform: translateY(0);
}

.enhanced-current-date {
    transform: translateY(100%);
}

.enhanced-date-time-wrapper.show-date .enhanced-current-time {
    transform: translateY(-100%);
}

.enhanced-date-time-wrapper.show-date .enhanced-current-date {
    transform: translateY(0);
}

/* Content Section */
.enhanced-ticker-content {
    flex: 1;
    padding: 0 20px;
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
}

.enhanced-ticker-items {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.enhanced-ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    font-size: 18px;
    font-weight: 500;
}

.enhanced-ticker-item.active {
    opacity: 1;
    transform: translateX(0);
}

.enhanced-ticker-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    width: 100%;
}

.enhanced-ticker-link:hover {
    color: #ff0000;
}

/* RTL Support */
.enhanced-ticker-rtl {
    direction: rtl;
}

.enhanced-ticker-rtl .enhanced-ticker-logo-section,
.enhanced-ticker-rtl .enhanced-ticker-datetime-section {
    border-right: none;
    border-left: 1px solid #333;
}

.enhanced-ticker-rtl .enhanced-ticker-item {
    transform: translateX(-100%);
}

.enhanced-ticker-rtl .enhanced-ticker-item.active {
    transform: translateX(0);
}

/* Animation Types */
.enhanced-ticker-slide .enhanced-ticker-item {
    transform: translateX(100%);
}

.enhanced-ticker-slide .enhanced-ticker-item.active {
    transform: translateX(0);
}

.enhanced-ticker-rtl.enhanced-ticker-slide .enhanced-ticker-item {
    transform: translateX(-100%);
}

.enhanced-ticker-rtl.enhanced-ticker-slide .enhanced-ticker-item.active {
    transform: translateX(0);
}

.enhanced-ticker-fade .enhanced-ticker-item {
    transform: translateX(0);
    opacity: 0;
}

.enhanced-ticker-fade .enhanced-ticker-item.active {
    opacity: 1;
}

.enhanced-ticker-flip .enhanced-ticker-item {
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: rotateX(90deg);
    opacity: 0;
}

.enhanced-ticker-flip .enhanced-ticker-item.active {
    transform: rotateX(0deg);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-ticker-inner {
        flex-wrap: wrap;
        min-height: auto;
    }
    
    .enhanced-ticker-breaking {
        order: 1;
        flex: 1 0 100%;
        justify-content: center;
        padding: 5px 10px;
        min-width: auto;
        height: auto;
    }
    
    .enhanced-ticker-logo-section {
        order: 2;
        flex: 1;
        min-width: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid #333;
        justify-content: center;
        height: auto;
    }
    
    .enhanced-ticker-datetime-section {
        order: 3;
        flex: 1;
        min-width: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid #333;
        height: auto;
    }
    
    .enhanced-ticker-content {
        order: 4;
        flex: 2 0 100%;
        padding: 10px;
        height: 50px;
    }
    
    .enhanced-ticker-item {
        font-size: 14px;
        text-align: center;
    }
    
    .enhanced-ticker-box-width {
        width: 98%;
        margin: 0 auto;
    }
}

/* Body margin adjustment */
body {
    margin-bottom: 60px !important;
}

@media (max-width: 768px) {
    body {
        margin-bottom: 120px !important;
    }
}

/* Fix for box width white edges */
.enhanced-ticker-box-width {
    background: inherit !important;
}

.enhanced-ticker-box-width .enhanced-ticker-inner {
    border-radius: inherit;
}

/* Debug styles - force visibility */
.enhanced-ticker-datetime-section {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.enhanced-ticker-datetime {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}