/* News Website Custom Plugin - Frontend Styles */

.breaking-news-banner {
    background: #dc2626;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.breaking-news-banner a {
    color: white;
    text-decoration: none;
}

.breaking-news-banner a:hover {
    text-decoration: underline;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.article-priority-high {
    border-left: 4px solid #dc2626;
    padding-left: 15px;
}

.article-priority-medium {
    border-left: 4px solid #f59e0b;
    padding-left: 15px;
}

.article-priority-low {
    border-left: 4px solid #10b981;
    padding-left: 15px;
}

.article-priority-urgent {
    border-left: 4px solid #dc2626;
    padding-left: 15px;
    background: #fef2f2;
}

.article-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.article-rating .stars {
    color: #fbbf24;
    font-size: 16px;
}

.article-rating .rating-text {
    color: #6b7280;
    font-size: 14px;
}

.article-meta-custom {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.article-meta-custom .meta-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.article-meta-custom .meta-item:last-child {
    border-bottom: none;
}

.article-meta-custom .meta-label {
    font-weight: bold;
    color: #374151;
}

.article-meta-custom .meta-value {
    color: #6b7280;
}

.social-share-custom {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.social-share-custom h4 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 16px;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-share-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.social-share-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-share-button.facebook {
    background: #1877f2;
    color: white;
}

.social-share-button.twitter {
    background: #1da1f2;
    color: white;
}

.social-share-button.linkedin {
    background: #0077b5;
    color: white;
}

.social-share-button.whatsapp {
    background: #25d366;
    color: white;
}

.trending-posts-widget {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.trending-posts-widget h3 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 18px;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 10px;
}

.trending-post-item {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.trending-post-item:hover {
    background: #f8f9fa;
}

.trending-post-item .post-number {
    background: #dc2626;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.trending-post-item .post-content {
    flex: 1;
}

.trending-post-item .post-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.trending-post-item .post-title a {
    color: #374151;
    text-decoration: none;
}

.trending-post-item .post-title a:hover {
    color: #dc2626;
}

.trending-post-item .post-meta {
    font-size: 12px;
    color: #6b7280;
}

.news-topic-cloud {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.news-topic-cloud h3 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 18px;
}

.news-topic-cloud .topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-topic-cloud .topic-tag {
    background: #e9ecef;
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.news-topic-cloud .topic-tag:hover {
    background: #dc2626;
    color: white;
}

.news-topic-cloud .topic-tag.size-large {
    font-size: 16px;
    padding: 8px 16px;
}

.news-topic-cloud .topic-tag.size-medium {
    font-size: 14px;
    padding: 6px 12px;
}

.news-topic-cloud .topic-tag.size-small {
    font-size: 12px;
    padding: 4px 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .social-share-buttons {
        flex-direction: column;
    }
    
    .social-share-button {
        justify-content: center;
    }
    
    .trending-post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trending-post-item .post-number {
        align-self: center;
    }
    
    .news-topic-cloud .topic-tags {
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .breaking-news-banner,
    .social-share-custom,
    .trending-posts-widget,
    .news-topic-cloud {
        display: none;
    }
}
