/**
 * Breaking News Ticker - Simple Design (No Images)
 * Israel News Theme
 */

/*--------------------------------------------------------------
1.0 Ticker Container
--------------------------------------------------------------*/
.breaking-news-ticker-multi {
    background: #fff;
    position: relative;
    z-index: 800;
    overflow: visible;
}

.ticker-container-multi {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ticker-inner-multi {
    display: flex;
    align-items: flex-start; /* Align to top so breaking news label doesn't move */
    gap: 20px;
    padding: 12px 0;
    position: relative;
}

/*--------------------------------------------------------------
2.0 Breaking News Label - Simple
--------------------------------------------------------------*/
.ticker-label-multi {
    background:  linear-gradient(90deg,#03c 0,#0345d8 50%,#05f 100%)!important;
    color: #fff;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2px;
}

.ticker-title-multi {
    font-size: 13px;
}

/*--------------------------------------------------------------
3.0 Ticker Grid (No Thumbnails)
--------------------------------------------------------------*/
.ticker-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    overflow: visible;
    position: relative;
}

.ticker-item-multi {
    min-width: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    display: none; /* Hide by default to prevent flash */
}

.ticker-item-multi.ticker-visible {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.ticker-item-link {
    display: block;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 3px;
    transition: background 0.2s;
    position: relative;
}

.ticker-item-link:hover {
    background: #f8f9fa;
}

/*--------------------------------------------------------------
4.0 Content (Text Only)
--------------------------------------------------------------*/
.ticker-content-multi {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.ticker-content-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.ticker-headline-multi {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticker-item-link:hover .ticker-headline-multi {
    color: #c30000;
}

.ticker-time-multi {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
}

/* Excerpt Dropdown Button - Right Aligned */
.ticker-excerpt-toggle {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
}

.ticker-excerpt-toggle:hover {
    color: #c30000;
}

.ticker-dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    line-height: 1;
}

.ticker-dropdown-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ticker-excerpt-toggle[aria-expanded="true"] .ticker-dropdown-icon {
    transform: rotate(180deg);
}

/* Excerpt Dropdown */
.ticker-excerpt-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #c30000;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 10;
    pointer-events: none;
}

.ticker-excerpt-dropdown.ticker-dropdown-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ticker-excerpt-dropdown p {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.ticker-read-more {
    display: inline-block;
    font-size: 12px;
    color: #c30000;
    font-weight: 600;
    text-decoration: none;
}

.ticker-read-more:hover {
    text-decoration: underline;
}

/*--------------------------------------------------------------
5.0 Navigation Arrows
--------------------------------------------------------------*/
.ticker-nav-multi {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
}

.ticker-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.ticker-nav-btn:hover {
    background: #c30000;
    border-color: #c30000;
    color: #fff;
}

.ticker-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/*--------------------------------------------------------------
6.0 Tablet Responsive
--------------------------------------------------------------*/
@media (max-width: 1024px) {
    .ticker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .ticker-headline-multi {
        font-size: 13px;
    }
}

/*--------------------------------------------------------------
7.0 Mobile Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .ticker-container-multi {
        padding: 0 16px;
    }
    
    .ticker-inner-multi {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 10px 0;
    }
    
    .ticker-label-multi {
        text-align: center;
        padding: 6px 12px;
    }
    
    .ticker-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .ticker-item-link {
        padding: 10px;
        background: #f8f9fa;
    }
    
    .ticker-content-multi {
        flex-direction: column;
        gap: 8px;
    }
    
    .ticker-excerpt-toggle {
        align-self: flex-end;
        margin-top: 4px;
    }
    
    .ticker-nav-multi {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 12px;
    }
    
    .ticker-grid {
        overflow: visible;
    }
    
    .breaking-news-ticker-multi {
        overflow: visible;
    }
}

/*--------------------------------------------------------------
8.0 Small Mobile
--------------------------------------------------------------*/
@media (max-width: 480px) {
    .ticker-grid {
        grid-template-columns: 1fr;
    }
    
    .ticker-label-multi {
        font-size: 12px;
    }
    
    .ticker-headline-multi {
        font-size: 14px;
    }
}

/*--------------------------------------------------------------
9.0 Accessibility
--------------------------------------------------------------*/
.ticker-nav-btn:focus,
.ticker-item-link:focus {
    outline: 2px solid #c30000;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/*--------------------------------------------------------------
10.0 Print
--------------------------------------------------------------*/
@media print {
    .breaking-news-ticker-multi {
        display: none;
    }
}
