/**
 * Headline Notification Component
 * 
 * Styles for the floating notification that appears when a new headline is published
 */

/* Container for notifications */
.headline-notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column-reverse; /* Newest notifications at the top */
    gap: 10px;
}

/* Individual notification */
.headline-notification {
    background-color: #ffffff;
    border-left: 4px solid #fcd00a;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    position: relative;
    transform: translateX(120%);
    transition: transform 0.4s ease-out;
    overflow: hidden;
}

/* Animation for notification appearance */
.headline-notification.active {
    transform: translateX(0);
}

/* Close button */
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Time indicator */
.notification-time {
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
}

/* Headline text */
.notification-text {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* Progress bar for auto-close timing */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #fcd00a;
    width: 100%;
    transform-origin: left;
}

/* Progress bar animation - will be added via JavaScript */
@keyframes notification-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Status indicator - reading, waiting, done */
.notification-status {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 11px;
    color: #999;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: #f0f0f0;
}

.notification-status.reading {
    color: #fff;
    background-color: #fcd00a;
}

.notification-status.waiting {
    color: #fff;
    background-color: #999;
}

/* Dark mode styles */
body.dark-mode .headline-notification {
    background-color: #2a2a2a;
    border-color: #fcd00a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .notification-text {
    color: #f5f5f5;
}

body.dark-mode .notification-time {
    color: #aaa;
}

body.dark-mode .notification-close {
    color: #aaa;
}

body.dark-mode .notification-status {
    background-color: #444;
    color: #ddd;
}

/* Responsive styles */
@media (max-width: 480px) {
    .headline-notification-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .headline-notification {
        padding: 12px;
    }
} 
 
 