/**
 * Hello Middleton - News Hub Component
 * World News Hub + Unified News Hub (with Local Tab)
 * Premium news aggregator with tabbed categories and bento-box grid
 *
 * @requires tokens.css
 * @since 2.1.4
 */

/* ==========================================================================
   WORLD NEWS HUB - Premium News Aggregator
   ========================================================================== */

.world-news-hub {
    background: linear-gradient(180deg, var(--hm-bg) 0%, var(--hm-bg-subtle) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin: var(--space-6) 0;
    border: 1px solid var(--hm-border);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.world-news-hub::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.world-news-hub::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Fix: Hide old world news hub when unified is present */
body .world-news-hub {
    display: none !important;
}

/* --------------------------------------------------------------------------
   World News Hub - Header
   -------------------------------------------------------------------------- */

.wnh-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-5);
    position: relative;
    z-index: 1;
}

.wnh-title-group {
    flex: 1;
}

.wnh-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0 0 var(--space-1) 0;
    letter-spacing: -0.02em;
}

.wnh-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--hm-text-muted);
    margin: 0;
}

.wnh-live-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: #DC2626;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wnh-live-dot {
    width: 8px;
    height: 8px;
    background: #DC2626;
    border-radius: 50%;
    animation: wnh-pulse 2s infinite;
}

@keyframes wnh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   World News Hub - Category Tabs
   -------------------------------------------------------------------------- */

.wnh-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
}

.wnh-tabs::-webkit-scrollbar {
    display: none;
}

.wnh-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--hm-bg-elevated);
    border: 2px solid var(--hm-border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hm-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.wnh-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tab-color);
    opacity: 0;
    transition: opacity 0.25s var(--ease-out);
}

.wnh-tab:hover {
    border-color: var(--tab-color);
    color: var(--hm-text);
    transform: translateY(-2px);
}

.wnh-tab.active {
    background: var(--tab-color);
    border-color: var(--tab-color);
    color: white;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--tab-color) 40%, transparent);
}

.wnh-tab.active::before {
    opacity: 0;
}

.wnh-tab-icon {
    font-size: 1.1em;
    position: relative;
    z-index: 1;
}

.wnh-tab-label {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   World News Hub - Panels
   -------------------------------------------------------------------------- */

.wnh-panels {
    position: relative;
    min-height: 400px;
    z-index: 1;
}

.wnh-panel {
    display: none;
    animation: wnh-fadeIn 0.4s var(--ease-out);
}

.wnh-panel.active {
    display: block;
}

@keyframes wnh-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   World News Hub - Grid (Bento Box Style)
   -------------------------------------------------------------------------- */

.wnh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

/* Featured card spans 2 columns */
.wnh-grid .wnh-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* --------------------------------------------------------------------------
   World News Hub - Cards
   -------------------------------------------------------------------------- */

.wnh-card {
    background: var(--hm-bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hm-border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s var(--ease-out);
    animation: wnh-cardIn 0.5s var(--ease-out) both;
}

@keyframes wnh-cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wnh-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--hm-border-strong);
}

/* Card Image */
.wnh-card-image {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hm-bg-subtle) 0%, var(--hm-bg-muted) 100%);
}

.wnh-card-featured .wnh-card-image {
    height: 220px;
}

.wnh-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.wnh-card:hover .wnh-card-image img {
    transform: scale(1.05);
}

.wnh-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.wnh-card:hover .wnh-card-overlay {
    opacity: 1;
}

/* Card Content */
.wnh-card-content {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wnh-card-featured .wnh-card-content {
    padding: var(--space-5);
}

/* Card Meta */
.wnh-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wnh-card-source {
    color: var(--hm-primary);
    font-weight: 600;
}

.wnh-card-time {
    color: var(--hm-text-muted);
}

/* Card Title */
.wnh-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.wnh-card-featured .wnh-card-title {
    font-size: 1.25rem;
    line-height: 1.35;
}

.wnh-card-title a {
    color: var(--hm-text);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wnh-card-featured .wnh-card-title a {
    -webkit-line-clamp: 4;
}

.wnh-card:hover .wnh-card-title a {
    color: var(--hm-primary);
}

/* Card Description (featured only) */
.wnh-card-desc {
    font-size: 0.85rem;
    color: var(--hm-text-secondary);
    line-height: 1.6;
    margin-top: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Link */
.wnh-card-link {
    padding: var(--space-3) var(--space-4);
    background: var(--hm-bg-subtle);
    border-top: 1px solid var(--hm-border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hm-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.2s var(--ease-out);
}

.wnh-card:hover .wnh-card-link {
    background: var(--hm-primary);
    color: white;
}

/* --------------------------------------------------------------------------
   World News Hub - Empty State
   -------------------------------------------------------------------------- */

.wnh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
    color: var(--hm-text-muted);
}

.wnh-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   World News Hub - Footer
   -------------------------------------------------------------------------- */

.wnh-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--hm-border);
    font-size: 0.75rem;
    color: var(--hm-text-muted);
    position: relative;
    z-index: 1;
}

.wnh-attribution {
    margin: 0;
}

.wnh-refresh {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.wnh-refresh::before {
    content: '\1F504'; /* 🔄 */
    font-size: 0.9em;
}

/* ==========================================================================
   UNIFIED NEWS HUB - Epic Redesign with Local Tab
   ========================================================================== */

.unified-news-hub {
    background: var(--hm-bg-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 0;
}

/* When inside main content row */
.hm-news-hub-column .unified-news-hub {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Unified News Hub - Header
   -------------------------------------------------------------------------- */

.unh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    background: var(--hm-bg-elevated);
    border-bottom: 1px solid var(--hm-border);
    position: relative;
}

/* Subtle accent line at top */
.unh-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-accent) 50%, var(--hm-primary) 100%);
}

.unh-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.unh-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    font-family: var(--hm-font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--hm-text);
    letter-spacing: -0.01em;
}

/* Hide emoji logo, use text-based design */
.unh-logo {
    display: none;
}

.unh-title-text {
    position: relative;
}

/* Decorative underline accent */
.unh-title-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--hm-primary);
    border-radius: 1px;
}

.unh-tagline {
    margin: 0;
    font-family: var(--hm-font-body);
    font-size: 0.8rem;
    color: var(--hm-text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.unh-live {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(22, 163, 74, 0.12) 100%);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--hm-font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: #16A34A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.unh-live-dot {
    width: 6px;
    height: 6px;
    background: #16A34A;
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   Unified News Hub - Tabs
   -------------------------------------------------------------------------- */

.unh-tabs-container {
    position: relative;
    background: var(--hm-bg-subtle);
    border-bottom: 1px solid var(--hm-border);
}

.unh-tabs-wrapper {
    padding: var(--space-3) var(--space-4);
}

/* Hide scroll arrows - not needed with wrap layout */
.unh-tabs-nav {
    display: none;
}

.unh-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-1) 0;
}

.unh-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--hm-bg-elevated);
    border: 1px solid var(--hm-border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hm-text-secondary);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    position: relative;
}

.unh-tab:hover {
    background: var(--hm-bg-elevated);
    color: var(--hm-text);
    border-color: var(--hm-border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.unh-tab.active {
    background: var(--hm-bg-elevated);
    color: var(--tab-color, var(--hm-primary));
    border-color: var(--tab-color, var(--hm-primary));
    box-shadow: var(--shadow-md), 0 0 0 3px color-mix(in srgb, var(--tab-color, var(--hm-primary)) 10%, transparent);
    font-weight: 700;
}

/* Active tab indicator dot */
.unh-tab.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 3px;
    background: var(--tab-color, var(--hm-primary));
    border-radius: 0 0 3px 3px;
}

.unh-tab-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.unh-tab-label {
    transition: opacity var(--duration-fast);
}

/* --------------------------------------------------------------------------
   Unified News Hub - Panels
   -------------------------------------------------------------------------- */

.unh-panels {
    padding: var(--space-5) var(--space-6);
    min-height: 400px;
}

.unh-panel {
    display: none;
    animation: unh-fadeInUp 0.4s var(--ease-out);
}

.unh-panel.active {
    display: block;
}

@keyframes unh-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Unified News Hub - Grid
   -------------------------------------------------------------------------- */

.unh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   Unified News Hub - Cards
   -------------------------------------------------------------------------- */

.unh-card {
    position: relative;
    background: var(--hm-bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hm-border);
    transition: all var(--duration-normal) var(--ease-out);
    animation: unh-cardFadeIn 0.4s var(--ease-out) backwards;
}

.unh-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(180, 83, 9, 0.1);
    border-color: var(--hm-primary);
}

/* Subtle gradient overlay on hover */
.unh-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(180, 83, 9, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
    border-radius: inherit;
}

.unh-card:hover::after {
    opacity: 1;
}

.unh-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

@keyframes unh-cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Media */
.unh-card-media {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hm-bg-subtle) 0%, var(--hm-bg-muted) 100%);
}

.unh-card-featured .unh-card-media {
    height: 280px;
}

.unh-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.unh-card:hover .unh-card-media img {
    transform: scale(1.05);
}

.unh-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

.unh-card-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--hm-bg-subtle) 0%, var(--hm-bg-muted) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle geometric pattern overlay */
.unh-card-media-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(180, 83, 9, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 118, 110, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle grid pattern */
.unh-card-media-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.unh-placeholder-icon {
    font-size: 2rem;
    opacity: 0.25;
    position: relative;
    z-index: 1;
    filter: grayscale(0.3);
    transition: all var(--duration-normal) var(--ease-out);
}

.unh-card:hover .unh-placeholder-icon {
    opacity: 0.4;
    transform: scale(1.1);
    filter: grayscale(0);
}

/* Card Body */
.unh-card-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.unh-card-featured .unh-card-body {
    padding: var(--space-5);
    gap: var(--space-3);
}

/* Card Meta */
.unh-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin: 0;
}

.unh-card-source {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--source-color, var(--hm-primary));
    background: color-mix(in srgb, var(--source-color, var(--hm-primary)) 12%, transparent);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    line-height: 1;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unh-card-time {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--hm-text-muted);
    white-space: nowrap;
    margin-left: auto;
    padding: 4px 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Add clock icon to time */
.unh-card-time::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.7;
    flex-shrink: 0;
}

.unh-card-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hm-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.unh-card-featured .unh-card-title {
    font-size: 1.4rem;
    line-height: 1.3;
    -webkit-line-clamp: 4;
}

.unh-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast);
}

.unh-card-title a:hover {
    color: var(--hm-primary);
}

.unh-card-excerpt {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--hm-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.unh-card-featured .unh-card-excerpt {
    -webkit-line-clamp: 4;
    font-size: 0.9rem;
}

.unh-card-link {
    position: absolute;
    inset: 0;
}

/* --------------------------------------------------------------------------
   Unified News Hub - Footer
   -------------------------------------------------------------------------- */

.unh-footer {
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(180deg, var(--hm-bg-subtle) 0%, var(--hm-bg-elevated) 100%);
    border-top: 1px solid var(--hm-border);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.unh-sources {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--hm-text-muted);
    letter-spacing: 0.02em;
}

/* Footer refresh button */
.unh-footer button,
.unh-footer .refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--hm-bg-elevated);
    border: 1px solid var(--hm-border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hm-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.unh-footer button:hover,
.unh-footer .refresh-btn:hover {
    border-color: var(--hm-primary);
    color: var(--hm-primary);
}

/* --------------------------------------------------------------------------
   Unified News Hub - Empty State
   -------------------------------------------------------------------------- */

.unh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-6);
    text-align: center;
    color: var(--hm-text-muted);
    background: linear-gradient(180deg, transparent 0%, var(--hm-bg-subtle) 100%);
    border-radius: var(--radius-lg);
    margin: var(--space-4);
}

.unh-empty-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
    filter: grayscale(0.3);
}

.unh-empty p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.6;
}

/* ==========================================================================
   NEWS HUB COLUMN LAYOUT
   ========================================================================== */

.hm-news-hub-column {
    flex: 1 1 70% !important;
    min-width: 0;
    max-width: 74%;
}

.hm-sidebar-column {
    flex: 0 0 26%;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-self: flex-start;
}

/* ==========================================================================
   RESPONSIVE - Large Desktop (max-width: 1200px)
   ========================================================================== */

@media (max-width: 1200px) {
    .wnh-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wnh-grid .wnh-card-featured {
        grid-column: span 2;
    }

    .unh-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .unh-card-featured {
        grid-column: span 2;
    }
}

/* ==========================================================================
   RESPONSIVE - Tablet (max-width: 992px)
   ========================================================================== */

@media (max-width: 992px) {
    .hm-main-content-row {
        flex-direction: column;
    }

    .hm-news-hub-column,
    .hm-sidebar-column {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: 100%;
    }

    .hm-sidebar-column {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hm-sidebar-column > * {
        flex: 1 1 calc(50% - var(--space-2));
        min-width: 280px;
    }

    .wnh-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wnh-grid .wnh-card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .wnh-card-featured .wnh-card-image {
        height: 180px;
    }

    .unh-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVE - Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* World News Hub */
    .world-news-hub {
        padding: var(--space-4);
        margin: var(--space-4) 0;
        border-radius: var(--radius-lg);
    }

    .wnh-header {
        flex-direction: column;
        gap: var(--space-3);
    }

    .wnh-live-indicator {
        align-self: flex-start;
    }

    .wnh-title {
        font-size: 1.5rem;
    }

    .wnh-tabs {
        gap: var(--space-1);
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding: 8px 16px;
    }

    .wnh-tab {
        padding: var(--space-2) var(--space-3);
        font-size: 0.8rem;
        flex-shrink: 0;
        min-height: 44px;
    }

    .wnh-tab-label {
        display: none;
    }

    .wnh-tab.active .wnh-tab-label {
        display: inline;
    }

    .wnh-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .wnh-grid .wnh-card-featured {
        grid-column: span 1;
    }

    .wnh-card-featured .wnh-card-image {
        height: 160px;
    }

    .wnh-footer {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }

    /* Unified News Hub */
    .unified-news-hub {
        border-radius: var(--radius-lg);
        margin: var(--space-4) 0;
    }

    .unh-header {
        flex-direction: column;
        gap: var(--space-3);
        padding: var(--space-4);
    }

    .unh-title {
        font-size: 1.35rem;
    }

    .unh-tabs-wrapper {
        padding: var(--space-3);
    }

    .unh-tab {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .unh-tab-icon {
        font-size: 0.9rem;
    }

    .unh-tab-label {
        display: none;
    }

    .unh-tab.active .unh-tab-label {
        display: inline;
    }

    .unh-panels {
        padding: var(--space-4);
    }

    .unh-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .unh-card-featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .unh-card-featured .unh-card-media {
        height: 180px;
    }

    .unh-footer {
        padding: var(--space-3);
    }

    /* Sidebar column */
    .hm-sidebar-column {
        flex-direction: column;
    }

    .hm-sidebar-column > * {
        flex: 1 1 100%;
    }

    /* Tab scroll fix */
    .unh-tabs,
    .wnh-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        justify-content: flex-start !important;
        padding: 8px 16px !important;
    }

    .unh-tabs::-webkit-scrollbar,
    .wnh-tabs::-webkit-scrollbar {
        display: none;
    }

    .unh-tab,
    .wnh-tab {
        flex-shrink: 0 !important;
        min-height: 44px !important;
        padding: 10px 16px !important;
    }

    /* Show full label on active tab */
    .unh-tab.active .unh-tab-label,
    .wnh-tab.active .wnh-tab-label {
        display: inline !important;
    }
}

/* ==========================================================================
   RESPONSIVE - Small Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .unified-news-hub,
    .world-news-hub {
        margin: 12px !important;
        border-radius: 16px !important;
    }

    .unh-header,
    .wnh-header {
        padding: 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .unh-title,
    .wnh-title {
        font-size: 1.35rem !important;
    }

    .unh-tabs-wrapper,
    .wnh-tabs {
        padding: 8px 12px !important;
    }

    .unh-tabs,
    .wnh-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    .unh-tabs::-webkit-scrollbar,
    .wnh-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .unh-tab,
    .wnh-tab {
        flex-shrink: 0 !important;
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 0.8rem !important;
        border-radius: 22px !important;
        white-space: nowrap !important;
    }

    .unh-tab-label,
    .wnh-tab-label {
        display: none !important;
    }

    .unh-tab.active .unh-tab-label,
    .wnh-tab.active .wnh-tab-label {
        display: inline !important;
    }

    .unh-panels,
    .wnh-panels {
        padding: 16px !important;
    }

    .unh-grid,
    .wnh-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .unh-card-featured,
    .wnh-card-featured {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .unh-card,
    .wnh-card {
        border-radius: 12px !important;
    }

    .unh-card-media,
    .wnh-card-image {
        height: 160px !important;
    }

    .unh-card-body,
    .wnh-card-content {
        padding: 14px !important;
    }

    .unh-card-title,
    .wnh-card-title {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }

    .unh-card-source,
    .wnh-card-source {
        font-size: 0.65rem !important;
    }

    .unh-card-time,
    .wnh-card-time {
        font-size: 0.65rem !important;
        color: var(--hm-text-secondary, #57534E) !important;
    }
}

/* ==========================================================================
   ACCESSIBILITY - REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .wnh-card,
    .unh-card {
        animation: none;
    }

    .wnh-panel,
    .unh-panel {
        animation: none;
    }

    .wnh-live-dot,
    .unh-live-dot {
        animation: none;
    }

    .wnh-tab,
    .unh-tab {
        transition: none;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .world-news-hub,
    .unified-news-hub {
        display: none;
    }
}
