/* Breaking News Fixed Modal Component */
.breaking-news-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100dvw;
    height: 50dvh;
    background: linear-gradient(135deg, #C1121F 0%, #8B0A17 100%);
    color: #fff;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: height 0.5s ease;}

.breaking-news-modal.show {
    transform: translateY(0);
    height: 50dvh;
}

.breaking-news-modal.collapsed {
    transform: translateY(calc(100% - 45px));
    height: 45px;
    cursor: pointer;
}

.breaking-news-modal.hide {
    transform: translateY(calc(100% - 45px));
    height: 45px;
}

.breaking-news-modal.collapsed .breaking-news-content {
    display: none;
}

.breaking-news-modal.hide .breaking-news-content {
    display: none;
}

.breaking-news-modal.collapsed .breaking-news-header {
    cursor: pointer;
}

.breaking-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.328);
    flex-shrink: 0;
    height: 45px;
}

.breaking-news-title {
    font-size: 16px;
    font-weight: bold;
    font-family: asswat-bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    animation: fadeOnOff 1.5s ease-in-out infinite;
}

@keyframes fadeOnOff {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.breaking-news-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 3px 8px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breaking-news-close:hover {
    transform: scale(1.2) rotate(90deg);
}

.breaking-news-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    font-family: asswat-regular;
    font-size: 28px;
    line-height: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.breaking-news-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInOut 5s ease-in-out forwards;
    text-align: center;
}

.breaking-news-item-text {
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    font-family: asswat-bold;
    line-height: 1.8;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Scrollbar styling */
.breaking-news-content::-webkit-scrollbar {
    width: 8px;
}

.breaking-news-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.breaking-news-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.breaking-news-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .breaking-news-title {
        font-size: 20px;
    }

    .breaking-news-content {
        font-size: 14px;
        padding: 15px;
    }

    .breaking-news-header {
        padding: 12px 15px;
    }
}
