/* الكونتينر الأساسي */
.breaking-news-container {
    position: fixed;
    background-color: #34495e;
    color: #ffffff;
    padding: 15px 50px; /* مسافة أكبر  ومتساوية م الطرفين */
    border-radius: 8px;
    border: 2px solid #c62828;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-family: inherit;
    display: flex;
    align-items: center;
    direction: rtl;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 99999;
}

/* في الظهور (حركة دول) */
.breaking-news-container.active {
    opacity: 1;
    visibility: visible;
}

/* خيرت أماكن لهو */

/* ى الموقع */
.breaking-news-container.top {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    transform: translateY(-100%);
}
.breaking-news-container.top.active {
    transform: translateY(0);
}

/* فوق افوتر */
.breaking-news-container.footer {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    transform: translateY(100%);
}
.breaking-news-container.footer.active {
    transform: translateY(0);
}

/* عر واتساب (أسفل ط) */
.breaking-news-container.whatsapp {
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 100%);
}
.breaking-news-container.whatsapp.active {
    transform: translate(-50%, 0);
}

/* ز الإغلاق (X) اب أقصى ليسا */
.breaking-news-close {
    position: absolute;
    left: 20px;
    top: 50%; 
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

/* خلفية كلم خبر عا */
.breaking-news-label {
    background-color: #c62828;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
}

/* ار الأخبار */
.breaking-news-item {
    display: none;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breaking-news-item.active {
    display: block;
}

.breaking-news-container.minimized {
    width: 50px;
    height: 50px;
    padding: 0;
    bottom: 80px;
    left: 20px;
    right: auto;
    top: auto;
    transform: none !important;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.9;
    display: flex !important;
    background: transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.breaking-news-container.minimized .breaking-news-content,
.breaking-news-container.minimized .breaking-news-label,
.breaking-news-container.minimized .breaking-news-close {
    display: none;
}

.breaking-news-container.minimized svg {
    width: 28px;
    height: 28px;
}
