/* 
 * World News Widget - Frontend Styles
 * Moved from theme to plugin for better organization
 */

.world-news-widget {
    width: 100%;
    background-color: var(--background-light);
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.world-news-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-dark);
    color: var(--text-dark);
}

.world-news-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.world-news-article {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.world-news-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.world-news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.time-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-meta);
}

.category-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-meta);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.world-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.world-news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.world-news-title a:hover {
    color: var(--primary-color);
}

.world-news-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    text-align: right;
}

.see-all-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.see-all-link:hover {
    color: var(--primary-dark);
}

.see-all-icon {
    margin-left: 5px;
    font-size: 1.2rem;
}

/* Dark mode styles */
.dark-mode .world-news-widget {
    background-color: var(--dark-background-light);
    border-color: var(--dark-border);
}

.dark-mode .world-news-heading {
    color: var(--dark-text-color);
    border-bottom-color: var(--dark-border-accent);
}

.dark-mode .world-news-article {
    border-bottom-color: var(--dark-border);
}

.dark-mode .world-news-title a {
    color: var(--dark-text-color);
}

.dark-mode .time-indicator,
.dark-mode .category-label {
    color: var(--dark-text-meta);
}

.dark-mode .world-news-footer {
    border-top-color: var(--dark-border);
}

/* World News Widget: Compact Bias Bar Customization */
.world-news-biasbar .bbm-c-bar {
    height: 12px !important; /* Slimmer bar for widget */
    min-height: 0;
}
.world-news-biasbar .bbm-c-segment {
    line-height: 12px !important; /* Match new height */
    font-size: 0 !important;      /* Hide all text */
    text-indent: -9999px;
    padding: 0 !important;
}

/* Single Featured Post Widget - Matches other widget styling */
.single-featured-post-widget {
    width: 100%;
    background-color: var(--background-light);
    border: 1px solid var(--border-light);
    padding: 0; /* No padding on widget itself - thumbnail is full width */
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.single-featured-post-thumbnail {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
}

.single-featured-post-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
    object-fit: cover;
}

.single-featured-post-thumbnail:hover .single-featured-post-image {
    transform: scale(1.02);
}

.single-featured-post-content {
    padding: 20px; /* Match standard widget padding */
    display: flex;
    flex-direction: column;
    gap: 2px; /* Reduced from 15px for tighter spacing */
}

.single-featured-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.single-featured-post-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-meta);
}

.single-featured-post-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-meta);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-featured-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.single-featured-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.single-featured-post-title a:hover {
    color: var(--primary-color);
}

.single-featured-post-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-text-secondary, #666);
    margin-top: 4px;
}

.single-featured-post-biasbar {
    margin-top: 8px;
}

/* Bias bar styling for single feature post */
.single-featured-post-biasbar .bbm-c-bar {
    height: 18px !important; /* Standard height used throughout theme */
    min-height: 0;
}

.single-featured-post-biasbar .bbm-c-segment {
    line-height: 18px !important;
    font-size: 10px !important;
    padding: 0 !important;
}

/* Dark mode styles for single featured post */
.dark-mode .single-featured-post-widget {
    background-color: var(--dark-background-light);
    border-color: var(--dark-border);
}

.dark-mode .single-featured-post-title a {
    color: var(--dark-text-color);
}

.dark-mode .single-featured-post-time,
.dark-mode .single-featured-post-category {
    color: var(--dark-text-meta);
}

/* Plugin-specific ad styling */
.world-news-google-ad {
    margin: 20px 0;
    text-align: center;
}

.world-news-google-ad .adsbygoogle {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-featured-post-content {
        padding: 15px; /* Smaller padding for mobile */
    }
    
    .single-featured-post-excerpt {
        font-size: 0.85rem;
    }
}