/* Breaking News Section Styles */
.breaking-news-section {
    background: linear-gradient(135deg, var(--secondary-bg), var(--accent-bg));
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

.breaking-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Breaking News Header */
.breaking-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.breaking-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-secondary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: breaking-blink 1.5s infinite;
}

@keyframes breaking-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.breaking-badge i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.breaking-news-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-text);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.breaking-news-title i {
    color: var(--primary-color);
}

.news-timestamp {
    font-size: 14px;
    color: var(--accent-text);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.news-timestamp span {
    color: var(--primary-color);
    font-weight: 600;
}

/* News Ticker */
.breaking-news-ticker {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    gap: 40px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-text);
    font-size: 14px;
    white-space: nowrap;
}

.ticker-item i {
    color: var(--primary-color);
}

.ticker-item a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ticker-item a:hover {
    color: var(--primary-color);
}

/* Breaking News Grid */
.breaking-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Breaking News Cards */
.breaking-news-card {
    background: var(--secondary-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.breaking-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.breaking-news-card.urgency-high {
    border-color: var(--danger-color);
    background: linear-gradient(145deg, var(--secondary-bg), rgba(255, 71, 87, 0.1));
}

.breaking-news-card.urgency-medium {
    border-color: var(--warning-color);
    background: linear-gradient(145deg, var(--secondary-bg), rgba(255, 165, 2, 0.1));
}

.breaking-news-card.urgency-low {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, var(--secondary-bg), rgba(0, 255, 136, 0.1));
}

/* News Card Header */
.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 0;
    font-size: 12px;
}

.news-category {
    background: var(--primary-color);
    color: var(--primary-bg);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-time {
    color: var(--accent-text);
    font-weight: 500;
}

/* News Image Container */
.news-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    margin: 15px 20px;
    border-radius: 12px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.breaking-news-card:hover .news-image {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.breaking-news-card:hover .news-overlay {
    opacity: 1;
}

.news-overlay i {
    font-size: 48px;
    color: var(--primary-color);
}

/* News Content */
.news-content {
    padding: 0 20px 20px;
}

.news-title {
    margin: 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* News Meta */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-text);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.news-actions {
    display: flex;
    gap: 10px;
}

.news-share-btn,
.news-bookmark-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.news-share-btn:hover,
.news-bookmark-btn:hover {
    background: var(--primary-color);
    color: var(--primary-bg);
    border-color: var(--primary-color);
}

.news-bookmark-btn.bookmarked {
    background: var(--primary-color);
    color: var(--primary-bg);
    border-color: var(--primary-color);
}

/* Read More Button */
.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--primary-bg);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

/* Breaking News Footer */
.breaking-news-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.view-all-news,
.refresh-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.view-all-news {
    background: var(--gradient-primary);
    color: var(--primary-bg);
}

.refresh-news {
    background: transparent;
    color: var(--secondary-text);
    border: 2px solid var(--border-color);
}

.view-all-news:hover,
.refresh-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.refresh-news:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.refresh-news.loading i {
    animation: spin 1s linear infinite;
}

/* No Breaking News State */
.no-breaking-news {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-text);
}

.no-news-icon {
    font-size: 4rem;
    color: var(--accent-text);
    margin-bottom: 20px;
}

.no-breaking-news h3 {
    font-size: 1.5rem;
    color: var(--primary-text);
    margin-bottom: 15px;
}

.no-breaking-news p {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breaking-news-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .breaking-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .breaking-news-title {
        font-size: 1.5rem;
    }
    
    .breaking-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .breaking-news-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .ticker-content {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .breaking-news-section {
        padding: 15px;
        border-radius: 12px;
    }
    
    .breaking-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .breaking-news-title {
        font-size: 1.3rem;
    }
    
    .news-image-container {
        height: 150px;
        margin: 10px 15px;
    }
    
    .news-content {
        padding: 0 15px 15px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.breaking-news-section.loading {
    position: relative;
}

.breaking-news-section.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.breaking-news-section.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}
