/* Main Widget Container */
.news-toaster-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

/* Minimized State */
.news-toaster-widget.minimized .news-toaster-content {
    height: 0;
    opacity: 0;
    visibility: hidden;
}

/* Content Area */
.news-toaster-content {
    position: relative;
    height: 90px;
    /* Fixed height for consistency */
    background: #f59e0a;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Individual News Items */
.news-toaster-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-toaster-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.news-toaster-item.exit-up {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.news-toaster-item.exit-down {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.news-toaster-item.enter-up {
    transform: translateY(20px);
}

.news-toaster-item.enter-down {
    transform: translateY(-20px);
}

/* Thumbnail */
.news-toaster-image-wrapper {
    flex: 0 0 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    /* Fallback color */
}

.news-toaster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Content */
.news-toaster-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.news-toaster-category {
    font-size: 11px;
    text-transform: uppercase;
    color: #950000;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.news-toaster-post-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
}

.news-toaster-post-title a {
    color: #000 !important;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-toaster-post-title a:hover {
    color: #ffcb00 !important;
}

/* Navigation and Breaking News Indicator */
.news-toaster-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #b50606;
    cursor: pointer;
    height:90px;
}

.news-toaster-toggle,
.news-toaster-toggle:hover,
.news-toaster-toggle:focus,
.news-toaster-toggle:active {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.news-toaster-toggle:hover {
    color: #fff;
}

.news-toaster-widget.minimized .news-toaster-toggle {
    transform: rotate(180deg);
}

.news-toaster-indicator {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.news-toaster-pulse {
    width: 8px;
    height: 8px;
    background-color: #f59e0a;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: nt-pulse 1.5s infinite;
}

@keyframes nt-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

/* Typewriter Effect */
.nt-highlights-typewriter {
    display: inline-block;
    max-width: 300px;
    vertical-align: middle;
    line-height: 1.3;
}

.nt-highlights-typing {
    white-space: normal;
    word-break: break-word;
    display: inline;
}

.nt-typing-cursor {
    animation: nt-blink 1s infinite step-start;
    margin-left: 2px;
    font-weight: bold;
    color: inherit;
    display: inline;
}

@keyframes nt-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .news-toaster-widget {
        width: 100%;
        bottom: 0px;
        right: 0px;
        left: 0px;
        border-radius:0px;
    }
}