/* Sensational News Styles */

.sensational-news-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid #ff4444;
}

.sensational-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
}

.sensational-news-card .hide-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 4px;
}

.sensational-news-card .hide-btn:hover {
    opacity: 1;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-emoji {
    font-size: 32px;
}

.news-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.country-flag {
    font-size: 20px;
}

.location-name {
    font-weight: 500;
}

.time-ago {
    font-size: 12px;
    color: #999;
}

.news-image {
    width: 100%;
    height: 150px;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fafafa;
}

.news-content {
    margin-top: 12px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.viral-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.viral-indicator.viral-extreme {
    background: linear-gradient(135deg, #ff0000, #ff6600);
    color: white;
}

.viral-indicator.viral-high {
    background: linear-gradient(135deg, #ff6600, #ff9900);
    color: white;
}

.viral-indicator.viral-medium {
    background: linear-gradient(135deg, #ffaa00, #ffcc00);
    color: #333;
}

.viral-indicator.viral-low {
    background: #f0f0f0;
    color: #666;
}

.viral-icon {
    font-size: 14px;
}

.news-category {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.category-celebrity {
    background: #ffe0f0;
    color: #d63384;
}

.category-politics {
    background: #e0e8ff;
    color: #3b5bdb;
}

.category-disaster {
    background: #ffe0e0;
    color: #c92a2a;
}

.category-tech {
    background: #e0f5ff;
    color: #0c8599;
}

.category-sports {
    background: #e0ffe0;
    color: #2f9e44;
}

.category-bizarre {
    background: #f3e0ff;
    color: #7950f2;
}

.category-crime {
    background: #ffe8e0;
    color: #d9480f;
}

.category-finance {
    background: #e8f5e0;
    color: #5c940d;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.news-tags .tag {
    background: #f5f5f5;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

/* Popup styles */
.sensational-news-popup {
    max-width: 400px;
    padding: 12px;
}

.sensational-news-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sensational-news-popup .emoji {
    font-size: 24px;
}

.sensational-news-popup h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sensational-news-popup p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

.sensational-news-popup .popup-image,
.popup-image {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.sensational-news-popup .popup-image img,
.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fafafa;
}

.sensational-news-popup .popup-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.sensational-news-popup .read-more {
    display: inline-block;
    color: #ff4444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.sensational-news-popup .read-more:hover {
    text-decoration: underline;
}

/* Sidebar section */
.sensational-news-section {
    padding: 16px;
}

.sensational-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sensational-news-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sensational-news-header .count {
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.sensational-news-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.sensational-news-list::-webkit-scrollbar {
    width: 6px;
}

.sensational-news-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sensational-news-list::-webkit-scrollbar-thumb {
    background: #ff4444;
    border-radius: 3px;
}

.sensational-news-list::-webkit-scrollbar-thumb:hover {
    background: #ff2222;
}

/* Loading state */
.sensational-news-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.sensational-news-loading .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.sensational-news-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.sensational-news-empty .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.error {
    background: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}