/* Content Monetization - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 0.5rem;
    --font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-section: 2rem;
}

/* Dark Theme */
.dark-theme {
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --bg-color: #111827;
    --bg-secondary: #1f2937;
    --border-color: #374151;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.2s, color 0.2s;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.375s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
.site-header {
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.2s;
}

.main-nav {
    padding: 1rem;
}

@media (min-width: 768px) {
    .main-nav {
        padding: 2rem 1rem;
    }
}

/* Logo - Responsive (desktop: 62px height, mobile: 80px width) */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.375s;
}

.logo:hover {
    opacity: 0.8;
}

/* Desktop logo - shown at lg+ (1024px+) */
.logo-desktop {
    height: 62px;
    width: auto;
    display: none;
}

/* Mobile logo - shown below 1024px */
.logo-mobile {
    width: 80px;
    height: auto;
    display: block;
}

@media (min-width: 1024px) {
    .logo-desktop {
        display: block;
    }
    .logo-mobile {
        display: none;
    }
}

/* Nav Links */
.nav-links {
    display: none;
    flex: 1;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 1.5rem;
    }
}

.nav-link {
    white-space: nowrap;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.375s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.dark-theme .nav-link {
    color: #d1d5db;
}

.dark-theme .nav-link:hover {
    color: #60a5fa;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Theme Toggle - positioned before weather */
.theme-toggle {
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

/* ==================== */
/* WEATHER WIDGET */
/* ==================== */
.weather-widget {
    background: white;
    border-radius: 3rem;
    padding: 24px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 16px 0;
    max-width: 24rem;
    min-width: 24rem;
    transition: all 0.3s ease;
    min-height: 80px;
    cursor: pointer;
    position: relative;
}

/* Compact navigation mode - used in header */
.weather-widget.compact-nav {
    max-width: 20rem;
    padding: 16px 24px;
    margin: 0;
    min-height: 64px;
}

.weather-widget:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.dark .weather-widget,
.dark-theme .weather-widget {
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .weather-widget:hover,
.dark-theme .weather-widget:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Main internal container */
.weather-display {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

/* Left side: Location info */
.location-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.location {
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    transition: opacity 0.375s ease, color 0.2s ease;
    min-width: 120px;
    cursor: pointer;
}

.dark .location,
.dark-theme .location {
    color: #f3f4f6;
}

.set-location-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: color 0.2s ease;
    line-height: normal;
    margin-top: auto;
}

.set-location-btn:hover {
    color: #374151;
}

.dark .set-location-btn,
.dark-theme .set-location-btn {
    color: #9ca3af;
}

.dark .set-location-btn:hover,
.dark-theme .set-location-btn:hover {
    color: #d1d5db;
}

/* Right side: Weather info + See more */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    transition: color 0.2s ease;
    min-width: 0;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
}

.temperature-container {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.temperature-button {
    position: relative;
    display: inline-block;
    line-height: 0.9;
    font-size: 24px;
    cursor: pointer;
}

.temperature {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    position: relative;
    transition: color 0.375s ease, opacity 0.375s ease;
    min-width: 60px;
    text-align: center;
}

.temperature-unit {
    position: absolute;
    bottom: -0.05em;
    right: 0.2em;
    font-size: 0.4em;
    line-height: 1;
    color: #1f2937;
}

.dark .temperature,
.dark-theme .temperature {
    color: #f3f4f6;
}

.dark .temperature:hover,
.dark-theme .temperature:hover {
    color: #d1d5db;
}

.dark .temperature-unit,
.dark-theme .temperature-unit {
    color: #9ca3af;
}

/* Weather icon in nav */
.weather-icon-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.icon-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* See More AccuWeather link */
.see-more {
    display: inline-flex;
    white-space: nowrap;
    gap: 4px;
    margin-top: auto;
}

.logo-image-text {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #6b7280;
}

.logo-image-text:hover {
    color: #374151;
}

.dark .logo-image-text,
.dark-theme .logo-image-text {
    color: #9ca3af;
}

.dark .logo-image-text:hover,
.dark-theme .logo-image-text:hover {
    color: #d1d5db;
}

/* AccuWeather inline SVG logo */
.logo-image {
    height: 12px;
    fill: #000;
}

.dark .logo-image,
.dark-theme .logo-image {
    fill: #fff;
}

/* Chevron icon next to AccuWeather logo */
.logo-image-icon {
    width: 10px;
    height: 10px;
    display: block;
    transform: translateY(1px);
    color: #6b7280;
}

.logo-image-icon:hover {
    color: #374151;
}

.dark .logo-image-icon,
.dark-theme .logo-image-icon {
    color: #9ca3af;
}

.dark .logo-image-icon:hover,
.dark-theme .logo-image-icon:hover {
    color: #d1d5db;
}

/* Mobile responsive */
@media (max-width: 1023px) {
    .weather-widget {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        margin: 8px 0;
        padding: 16px 20px;
        border-radius: 3rem;
    }

    .location {
        font-size: 14px;
        min-width: unset;
    }

    .set-location-btn {
        font-size: 12px;
    }

    .temperature {
        font-size: 20px;
        min-width: 50px;
    }

    .weather-display {
        gap: 8px;
        align-items: center !important;
    }

    .weather-info {
        gap: 8px !important;
    }

    .see-more {
        display: none !important;
    }

    .location-info {
        gap: 8px;
    }
}

/* Very small screens - 2 column layout */
@media (max-width: 580px) {
    .right-column {
        align-items: center;
        width: 100%;
    }

    .see-more {
        display: none !important;
    }

    .weather-widget {
        padding: 10px 20px;
        border-radius: 2.5rem;
        min-height: 36px;
        max-width: none;
        min-width: auto;
        width: auto;
        flex-shrink: 1;
    }

    .weather-widget.compact-nav {
        max-width: 20rem;
        padding: 10px 20px;
        margin: 0;
        min-height: 64px;
    }

    .weather-display {
        display: flex;
        flex-direction: column;
        gap: 1px;
        align-items: flex-start;
    }

    .weather-widget .weather-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 4px;
        order: 1;
    }

    .weather-info .temperature-container {
        display: flex;
    }

    .location-info {
        display: flex;
        align-items: center;
        order: 2;
        min-width: 0;
    }

    .weather-widget .temperature {
        font-size: 20px;
        font-weight: 600;
        min-width: unset;
        text-align: start;
        line-height: 1;
    }

    .weather-widget .location {
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 1px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        order: 2;
    }

    .location:hover {
        color: #374151;
    }

    .location::before {
        content: '📍';
        font-size: 12px;
        margin-right: 1px;
        flex-shrink: 0;
    }

    .set-location-btn {
        display: none;
    }

    .weather-widget .weather-info .weather-icon-nav {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .icon-image {
        width: 14px;
        height: 14px;
    }
}

/* ==================== */
/* WEATHER LOCATION MODAL */
/* ==================== */
.weather-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.weather-modal {
    position: relative;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 101;
}

.dark-theme .weather-modal {
    background: #1f2937;
}

.weather-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
}

.weather-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weather-modal-geolocation-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.weather-modal-geolocation-btn:hover:not(:disabled) {
    background: #1557b0;
}

.weather-modal-geolocation-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.weather-modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.dark-theme .weather-modal-input {
    background: #374151;
    border-color: #4b5563;
}

.weather-modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.weather-modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.weather-modal-cancel-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.weather-modal-cancel-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.weather-modal-set-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.weather-modal-set-btn:hover:not(:disabled) {
    background: #1557b0;
}

.weather-modal-set-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.weather-modal-error {
    padding: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    color: #b91c1c;
    font-size: 0.875rem;
}

.dark-theme .weather-modal-error {
    background: #450a0a;
    border-color: #7f1d1d;
    color: #fecaca;
}

/* ==================== */
/* MAIN CONTENT */
/* ==================== */

/* Homepage */
.homepage {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-section);
}

/* ==================== */
/* FEATURED SECTION - 50/50 LAYOUT */
/* 12-column grid with col-span-6 each */
/* ==================== */
.featured-section {
    margin-bottom: 0;
}

.featured-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 4rem; /* gap-16 = 64px */
    }
}

/* Left Column: Featured Article + Additional Stories */
.featured-left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .featured-left-column {
        grid-column: span 6;
    }
}

/* Right Column: Main 2x2 Grid */
@media (min-width: 1024px) {
    .main-grid {
        grid-column: span 6;
    }
}

/* Featured Article - LEFT COLUMN */
.featured-article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-article a {
    display: block;
}

.featured-article .article-image {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .featured-article .article-image {
        height: 400px;
        aspect-ratio: unset;
    }
}

.featured-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-article:hover .article-image img {
    transform: scale(1.02);
}

.featured-article .article-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-article .article-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    transition: color 0.375s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-article .article-title:hover {
    color: var(--primary-color);
}

.dark-theme .featured-article .article-title:hover {
    color: #60a5fa;
}

/* Featured Article Meta with Avatar and Share Button */
.featured-article .article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-meta-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.featured-meta-text {
    display: flex;
    flex-direction: column;
}

.featured-source {
    font-weight: 500;
    color: var(--text-muted);
}

.dark-theme .featured-source {
    color: #d1d5db;
}

.featured-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.featured-share-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.featured-share-btn:hover {
    background: #1557b0;
}

.dark-theme .featured-share-btn:hover {
    background: #3b82f6;
}

/* Main Grid - RIGHT COLUMN (2x2 grid) */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* gap-8 = 32px */
}

@media (min-width: 640px) {
    .main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem; /* gap-10 = 40px */
    }
}

.main-grid .article-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

/* Main grid images: fixed heights (192px mobile, 256px desktop) */
.main-grid .article-card .article-image {
    height: 192px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (min-width: 640px) {
    .main-grid .article-card .article-image {
        height: 256px;
    }
}

.main-grid .article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-grid .article-card:hover .article-image img {
    transform: scale(1.05);
}

.main-grid .article-card .article-content {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
}

.main-grid .article-card .article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .main-grid .article-card .article-title {
        font-size: 1.5rem;
    }
}

.main-grid .article-card .article-meta {
    margin-top: auto;
}

/* Read More Button for Main Grid */
.read-more-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: transparent;
    transition: background-color 0.2s, color 0.2s;
}

.read-more-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.dark-theme .read-more-btn {
    border-color: #4b5563;
    color: #d1d5db;
}

.dark-theme .read-more-btn:hover {
    background: #374151;
    color: #f3f4f6;
}

/* ==================== */
/* ADDITIONAL STORIES (under Featured) */
/* ==================== */
.additional-section {
    margin-top: 2rem;
}

.additional-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.article-list {
    display: flex;
    flex-direction: column;
}

.article-row {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.article-row:last-child {
    border-bottom: none;
}

.article-row a {
    display: flex;
    gap: 1rem;
    width: 100%;
}

/* Square thumbnail like production */
.article-thumb {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.article-info .article-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== */
/* SECONDARY SECTION - "More Stories" Grid */
/* ==================== */
.secondary-section {
    margin-top: 0;
}

.secondary-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

/* More Stories Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; /* gap-6 = 24px */
}

@media (min-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem; /* gap-6 = 24px */
    }
}

.article-grid .article-card {
    background: transparent;
    border: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.article-grid .article-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* More Stories images: fixed height (192px) */
.article-grid .article-card .article-image {
    height: 192px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-grid .article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-grid .article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-grid .article-card .article-content {
    padding: 0.75rem 0 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card Meta - Two-line layout with avatar */
.article-grid .article-card .article-meta,
.main-grid .article-card .article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-top: auto;
}

.article-meta .source-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.article-meta-text {
    display: flex;
    flex-direction: column;
}

.article-meta-text .article-source {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.dark-theme .article-meta-text .article-source {
    color: #d1d5db;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Article Elements */
.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: var(--spacing-xs) 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.375s ease;
}

.article-title:hover {
    color: var(--primary-color);
}

.dark-theme .article-title:hover {
    color: #60a5fa;
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: var(--spacing-sm) 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}

.source-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Ad Section */
.ad-section {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    min-height: 90px;
}

.ad-container {
    max-width: 728px;
    margin: 0 auto;
}

/* ==================== */
/* ARTICLE PAGE */
/* ==================== */
.article-page {
    padding: 2rem 0;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .article-container {
        grid-template-columns: 2fr 1fr;
    }
}

/* Main Article Content - White Card Wrapper */
.article-main {
    max-width: 100%;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    overflow: hidden;
    transition: background-color 0.2s;
}

.dark-theme .article-main {
    background: #1f2937;
}

.article-header {
    margin-bottom: 2rem;
}

.article-category-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.article-page .article-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 1.5rem 0;
    -webkit-line-clamp: unset;
}

/* Article Meta with Author Avatar */
.article-page .article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.article-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.article-meta-info {
    display: flex;
    flex-direction: column;
}

.article-author-name {
    font-weight: 500;
    color: var(--text-color);
}

.article-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Share Button */
.article-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.article-share-btn:hover {
    background: #1d4ed8;
}

.dark-theme .article-share-btn:hover {
    background: #3b82f6;
}

.article-hero {
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 432px;
    object-fit: cover;
}

/* Article Body - Exact Tailwind prose prose-lg styling */
.article-body {
    font-size: 1.125rem;
    line-height: 1.7777778;
    color: var(--text-color);
    max-width: none;
}

.article-body > *:first-child {
    margin-top: 0;
}

.article-body > *:last-child {
    margin-bottom: 0;
}

.article-body p {
    margin-top: 1.3333333em;
    margin-bottom: 1.3333333em;
}

.article-body h1 {
    font-size: 2.6666667em;
    font-weight: 800;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0.8333333em;
    color: var(--text-color);
}

.article-body h2 {
    font-size: 1.6666667em;
    font-weight: 700;
    line-height: 1.3333333;
    margin-top: 1.8666667em;
    margin-bottom: 1.0666667em;
    color: var(--text-color);
}

.article-body h3 {
    font-size: 1.3333333em;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1.6666667em;
    margin-bottom: 0.6666667em;
    color: var(--text-color);
}

.article-body h4 {
    font-weight: 600;
    line-height: 1.5555556;
    margin-top: 1.7777778em;
    margin-bottom: 0.4444444em;
    color: var(--text-color);
}

.article-body ul, .article-body ol {
    margin-top: 1.3333333em;
    margin-bottom: 1.3333333em;
    padding-left: 1.5555556em;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-top: 0.6666667em;
    margin-bottom: 0.6666667em;
    padding-left: 0.4444444em;
}

.article-body li > p {
    margin-top: 0.6666667em;
    margin-bottom: 0.6666667em;
}

/* Figure and figcaption styling - matches prose-lg */
.article-body figure {
    margin-top: 1.7777778em;
    margin-bottom: 1.7777778em;
}

.article-body figure img {
    margin: 0;
    width: 100%;
    border-radius: 0.5rem;
}

.article-body figcaption {
    font-size: 0.8888889em;
    line-height: 1.5;
    margin-top: 0.8888889em;
    color: var(--text-muted);
}

/* Image styling - matches prose-img:rounded-lg */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1.7777778em;
    margin-bottom: 1.7777778em;
}

/* Link styling - matches prose default */
.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.article-body a:hover {
    color: #1557b0;
}

.dark-theme .article-body a {
    color: #60a5fa;
}

.dark-theme .article-body a:hover {
    color: #93c5fd;
}

/* Blockquote styling - matches prose-lg */
.article-body blockquote {
    font-weight: 500;
    font-style: italic;
    color: inherit;
    border-left-width: 0.25rem;
    border-left-color: var(--border-color);
    quotes: "\201C""\201D""\2018""\2019";
    margin-top: 1.6666667em;
    margin-bottom: 1.6666667em;
    padding-left: 1em;
}

.article-body blockquote p:first-of-type::before {
    content: open-quote;
}

.article-body blockquote p:last-of-type::after {
    content: close-quote;
}

/* Strong and emphasis */
.article-body strong, .article-body b {
    font-weight: 600;
    color: inherit;
}

.article-body em, .article-body i {
    font-style: italic;
}

/* Code styling - matches prose-lg */
.article-body code {
    font-size: 0.8888889em;
    font-weight: 600;
    color: inherit;
}

.article-body code::before {
    content: "`";
}

.article-body code::after {
    content: "`";
}

.article-body pre {
    font-size: 0.8888889em;
    line-height: 1.75;
    margin-top: 1.7777778em;
    margin-bottom: 1.7777778em;
    border-radius: 0.375rem;
    padding: 0.8888889em 1.1111111em;
    overflow-x: auto;
    background-color: var(--bg-secondary);
}

.article-body pre code {
    background-color: transparent;
    border-width: 0;
    border-radius: 0;
    padding: 0;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.article-body pre code::before {
    content: none;
}

.article-body pre code::after {
    content: none;
}

/* Table styling - matches prose-lg */
.article-body table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.8888889em;
    line-height: 1.5;
}

.article-body thead {
    border-bottom-width: 1px;
    border-bottom-color: var(--border-color);
}

.article-body thead th {
    font-weight: 600;
    vertical-align: bottom;
    padding-right: 0.75em;
    padding-bottom: 0.75em;
    padding-left: 0.75em;
    color: var(--text-color);
}

.article-body tbody tr {
    border-bottom-width: 1px;
    border-bottom-color: var(--border-color);
}

.article-body tbody tr:last-child {
    border-bottom-width: 0;
}

.article-body tbody td {
    vertical-align: baseline;
    padding: 0.75em;
}

/* HR styling - matches prose-lg */
.article-body hr {
    border-color: var(--border-color);
    border-top-width: 1px;
    margin-top: 2.8888889em;
    margin-bottom: 2.8888889em;
}

/* Dark mode (prose-invert) */
.dark-theme .article-body {
    color: var(--text-color);
}

.dark-theme .article-body h1,
.dark-theme .article-body h2,
.dark-theme .article-body h3,
.dark-theme .article-body h4 {
    color: var(--text-color);
}

.dark-theme .article-body blockquote {
    border-left-color: var(--border-color);
}

.article-ad {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-md);
    text-align: center;
}

/* Read Original Article - Gradient CTA Button */
.article-source-link {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.read-original-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.read-original-link:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
    color: white;
}

.read-original-link::after {
    content: '→';
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.read-original-link:hover::after {
    transform: translateX(3px);
}

.dark-theme .read-original-link {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.dark-theme .read-original-link:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* Sidebar - White Card Wrapper */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    overflow: hidden;
    transition: background-color 0.2s;
}

.dark-theme .sidebar-section {
    background: #1f2937;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

/* Sidebar articles - dividers between items */
.sidebar-articles {
    display: flex;
    flex-direction: column;
}

.sidebar-article {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.375s ease;
}

.sidebar-article:first-child {
    padding-top: 0;
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article:hover {
    background-color: rgba(249, 250, 251, 0.5);
}

.dark-theme .sidebar-article:hover {
    background-color: rgba(55, 65, 81, 0.3);
}

.sidebar-article-thumb {
    width: 96px;
    min-width: 96px;
    height: 96px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Meta row with avatar and source */
.sidebar-article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-article-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-article-source {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-article-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description/excerpt for sidebar items */
.sidebar-article-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Timestamp for sidebar items */
.sidebar-article-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Category Page */
.category-page {
    padding: var(--spacing-lg) 0;
}

.category-header {
    margin-bottom: var(--spacing-lg);
}

.category-title {
    font-size: 2rem;
    margin: 0 0 var(--spacing-xs);
}

.category-description {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==================== */
/* BENTO GRID - Category Page Masonry Layout */
/* ==================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; /* gap-3 = 12px */
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Bento Card - Image fills entire card with overlay text */
/* Standard cards use 2:1 aspect ratio */
.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 2 / 1;
}

/* Large cards span 2 columns with 2.5:1 aspect ratio */
.bento-card-large {
    grid-column: span 2;
    aspect-ratio: 2.5 / 1;
}

.bento-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Image fills entire card */
.bento-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-image img {
    transform: scale(1.05);
}

/* Dark gradient overlay for text readability */
.bento-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    pointer-events: none;
}

/* Content overlay at bottom */
.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: white;
    z-index: 2;
}

.bento-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bento-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.bento-source {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.bento-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Large card title */
.bento-card-large .bento-title {
    font-size: 1rem;
    -webkit-line-clamp: 2;
}

@media (min-width: 768px) {
    .bento-title {
        font-size: 1rem;
    }

    .bento-card-large .bento-title {
        font-size: 1.25rem;
    }
}

/* Skeleton Loading Animation */
@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.skeleton {
    animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background: #e5e7eb;
    border-radius: var(--radius-md);
}

.dark-theme .skeleton {
    background: #374151;
}

.skeleton-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.skeleton-image {
    aspect-ratio: 16/9;
    background: #e5e7eb;
    animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.dark-theme .skeleton-image {
    background: #374151;
}

.skeleton-text {
    height: 1rem;
    background: #e5e7eb;
    border-radius: 4px;
    animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-text-sm {
    height: 0.75rem;
}

.skeleton-text-lg {
    height: 1.5rem;
}

.dark-theme .skeleton-text {
    background: #374151;
}

.skeleton-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.dark-theme .skeleton-avatar {
    background: #374151;
}

/* Infinite Scroll */
.scroll-trigger {
    min-height: 40px;
    margin-top: var(--spacing-xl);
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-lg);
    color: var(--text-muted);
}

.loading-indicator span {
    font-size: 0.875rem;
}

.reset-loading-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.reset-loading-btn:hover {
    color: #1557b0;
}

.dark-theme .loading-indicator {
    color: var(--text-muted);
}

.dark-theme .reset-loading-btn {
    color: #60a5fa;
}

.dark-theme .reset-loading-btn:hover {
    color: #93c5fd;
}

.no-articles {
    text-align: center;
    padding: var(--spacing-xl);
}

.back-home {
    display: inline-block;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
}

/* Static Pages */
.static-page {
    padding: var(--spacing-xl) 0;
}

.static-container {
    max-width: 800px;
    margin: 0 auto;
}

.static-page h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.static-page h2 {
    font-size: 1.5rem;
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.static-page p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* ==================== */
/* FOOTER - Production Parity */
/* ==================== */
.site-footer {
    background: var(--bg-color);
    border-top: none;
    padding: 1.5rem 0;
    margin-top: 2rem;
    transition: background-color 0.2s;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-links {
        flex-direction: row;
        gap: 0;
    }
}

.footer-links a {
    color: var(--text-color);
    font-size: 0.75rem;
    transition: color 0.375s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.dark-theme .footer-links a:hover {
    color: #60a5fa;
}

.footer-separator {
    display: none;
    color: var(--text-color);
    font-size: 0.75rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .footer-separator {
        display: inline;
    }
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 1023px) {
    .nav-links {
        display: none;
    }

    .nav-container {
        justify-content: space-between;
    }
}

/* Utility Classes */
/* NOTE: Do NOT add .hidden class here - it conflicts with Tailwind's responsive hidden lg:grid pattern */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==================== */
/* CATEGORY ARTICLE LARGE - Hover Transform */
/* ==================== */
.bento-card-large a {
    display: block;
    height: 100%;
}

.bento-card-large:hover {
    transform: scale(1.01);
    transition: transform 0.2s ease-in-out;
}

/* ==================== */
/* TABOOLA WIDGET - Theme-Aware Styles */
/* ==================== */
.taboola-widget-container .videoCube {
    background: transparent !important;
}

.taboola-widget-container .video-label-box {
    background: transparent !important;
}

/* Main title text */
.taboola-widget-container .video-title.trc_ellipsis,
.taboola-widget-container span.video-title {
    color: #1f2937 !important; /* gray-800 for light mode */
}

.dark .taboola-widget-container .video-title.trc_ellipsis,
.dark .taboola-widget-container span.video-title,
.dark-theme .taboola-widget-container .video-title.trc_ellipsis,
.dark-theme .taboola-widget-container span.video-title {
    color: #f3f4f6 !important; /* gray-100 for dark mode */
}

/* Description text */
.taboola-widget-container .video-description.trc_ellipsis,
.taboola-widget-container span.video-description {
    color: #6b7280 !important; /* gray-500 for light mode */
}

.dark .taboola-widget-container .video-description.trc_ellipsis,
.dark .taboola-widget-container span.video-description,
.dark-theme .taboola-widget-container .video-description.trc_ellipsis,
.dark-theme .taboola-widget-container span.video-description {
    color: #9ca3af !important; /* gray-400 for dark mode */
}

/* Branding text */
.taboola-widget-container .branding-inner,
.taboola-widget-container .branding,
.taboola-widget-container .branding-separator {
    color: #6b7280 !important; /* gray-500 for light mode */
}

.dark .taboola-widget-container .branding-inner,
.dark .taboola-widget-container .branding,
.dark .taboola-widget-container .branding-separator,
.dark-theme .taboola-widget-container .branding-inner,
.dark-theme .taboola-widget-container .branding,
.dark-theme .taboola-widget-container .branding-separator {
    color: #9ca3af !important; /* gray-400 for dark mode */
}

/* All video labels */
.taboola-widget-container .video-label {
    color: #1f2937 !important; /* gray-800 for light mode */
}

.dark .taboola-widget-container .video-label,
.dark-theme .taboola-widget-container .video-label {
    color: #f3f4f6 !important; /* gray-100 for dark mode */
}

/* Sponsored text */
.taboola-widget-container .trc_desktop_disclosure_link span,
.taboola-widget-container .trc_mobile_disclosure_link span,
.taboola-widget-container [aria-label*="Disclosure"] span {
    color: #6b7280 !important; /* gray-500 */
}

.dark .taboola-widget-container .trc_desktop_disclosure_link span,
.dark .taboola-widget-container .trc_mobile_disclosure_link span,
.dark .taboola-widget-container [aria-label*="Disclosure"] span,
.dark-theme .taboola-widget-container .trc_desktop_disclosure_link span,
.dark-theme .taboola-widget-container .trc_mobile_disclosure_link span,
.dark-theme .taboola-widget-container [aria-label*="Disclosure"] span {
    color: #9ca3af !important; /* gray-400 for dark mode */
}

/* CTA Buttons */
.taboola-widget-container .video-cta-button {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border-color: #e5e7eb !important;
}

.dark .taboola-widget-container .video-cta-button,
.dark-theme .taboola-widget-container .video-cta-button {
    background-color: #374151 !important; /* gray-700 */
    color: #f3f4f6 !important; /* gray-100 */
    border-color: #4b5563 !important; /* gray-600 */
}

.taboola-widget-container .video-cta-button:hover {
    background-color: #f3f4f6 !important;
    color: #2563eb !important;
}

.dark .taboola-widget-container .video-cta-button:hover,
.dark-theme .taboola-widget-container .video-cta-button:hover {
    background-color: #4b5563 !important;
    color: #60a5fa !important;
}

/* Ensure links in Taboola are visible */
.taboola-widget-container a {
    color: inherit !important;
}

/* Hover effects for titles */
.taboola-widget-container .videoCube:hover .video-title,
.taboola-widget-container .videoCube:hover span.video-title {
    color: #2563eb !important; /* blue-600 */
}

.dark .taboola-widget-container .videoCube:hover .video-title,
.dark .taboola-widget-container .videoCube:hover span.video-title,
.dark-theme .taboola-widget-container .videoCube:hover .video-title,
.dark-theme .taboola-widget-container .videoCube:hover span.video-title {
    color: #60a5fa !important; /* blue-400 */
}

/* TABOOLA WIDGET - Fallback selectors for views without .taboola-widget-container wrapper */

/* "You May Like" header */
.trc_rbox_header_span,
.trc_related_container .trc_rbox_header_span,
[id^="taboola-"] .trc_rbox_header_span {
    color: #1f2937 !important;
}

.dark .trc_rbox_header_span,
.dark .trc_related_container .trc_rbox_header_span,
.dark [id^="taboola-"] .trc_rbox_header_span {
    color: #f3f4f6 !important;
}

/* Article titles */
.trc_related_container .video-title,
.trc_related_container span.video-title,
.tbl-feed-card .video-title,
[id^="taboola-"] .video-title {
    color: #1f2937 !important;
}

.dark .trc_related_container .video-title,
.dark .trc_related_container span.video-title,
.dark .tbl-feed-card .video-title,
.dark [id^="taboola-"] .video-title {
    color: #f3f4f6 !important;
}

/* Descriptions */
.trc_related_container .video-description,
.trc_related_container span.video-description,
.tbl-feed-card .video-description,
[id^="taboola-"] .video-description {
    color: #6b7280 !important;
}

.dark .trc_related_container .video-description,
.dark .trc_related_container span.video-description,
.dark .tbl-feed-card .video-description,
.dark [id^="taboola-"] .video-description {
    color: #9ca3af !important;
}

/* Branding/sponsor text */
.trc_related_container .branding,
.trc_related_container .branding-inner,
.trc_related_container .branding-separator,
.tbl-feed-card .branding,
[id^="taboola-"] .branding,
[id^="taboola-"] .branding-inner,
[id^="taboola-"] .branding-separator {
    color: #6b7280 !important;
}

.dark .trc_related_container .branding,
.dark .trc_related_container .branding-inner,
.dark .trc_related_container .branding-separator,
.dark .tbl-feed-card .branding,
.dark [id^="taboola-"] .branding,
.dark [id^="taboola-"] .branding-inner,
.dark [id^="taboola-"] .branding-separator {
    color: #9ca3af !important;
}

/* Video labels */
.trc_related_container .video-label,
.tbl-feed-card .video-label,
[id^="taboola-"] .video-label {
    color: #1f2937 !important;
}

.dark .trc_related_container .video-label,
.dark .tbl-feed-card .video-label,
.dark [id^="taboola-"] .video-label {
    color: #f3f4f6 !important;
}

/* Disclosure/sponsored links */
.trc_related_container .trc_desktop_disclosure_link span,
.trc_related_container .trc_mobile_disclosure_link span,
[id^="taboola-"] .trc_desktop_disclosure_link span,
[id^="taboola-"] .trc_mobile_disclosure_link span,
[id^="taboola-"] [aria-label*="Disclosure"] span {
    color: #6b7280 !important;
}

.dark .trc_related_container .trc_desktop_disclosure_link span,
.dark .trc_related_container .trc_mobile_disclosure_link span,
.dark [id^="taboola-"] .trc_desktop_disclosure_link span,
.dark [id^="taboola-"] .trc_mobile_disclosure_link span,
.dark [id^="taboola-"] [aria-label*="Disclosure"] span {
    color: #9ca3af !important;
}

/* Hover states */
.trc_related_container .videoCube:hover .video-title,
.tbl-feed-card:hover .video-title,
[id^="taboola-"] .videoCube:hover .video-title {
    color: #2563eb !important;
}

.dark .trc_related_container .videoCube:hover .video-title,
.dark .tbl-feed-card:hover .video-title,
.dark [id^="taboola-"] .videoCube:hover .video-title {
    color: #60a5fa !important;
}

/* CTA Buttons */
.trc_related_container .video-cta-button,
.tbl-feed-card .video-cta-button,
[id^="taboola-"] .video-cta-button {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border-color: #e5e7eb !important;
}

.dark .trc_related_container .video-cta-button,
.dark .tbl-feed-card .video-cta-button,
.dark [id^="taboola-"] .video-cta-button {
    background-color: #374151 !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
}

.trc_related_container .video-cta-button:hover,
.tbl-feed-card .video-cta-button:hover,
[id^="taboola-"] .video-cta-button:hover {
    background-color: #f3f4f6 !important;
    color: #2563eb !important;
}

.dark .trc_related_container .video-cta-button:hover,
.dark .tbl-feed-card .video-cta-button:hover,
.dark [id^="taboola-"] .video-cta-button:hover {
    background-color: #4b5563 !important;
    color: #60a5fa !important;
}

/* ==================== */
/* TABOOLA RIGHT RAIL - Single Article Card Styles */
/* ==================== */
.taboola-single-article {
    margin-bottom: 1.5rem !important;
}

.taboola-single-article #taboola-right-rail-thumbnails {
    overflow: hidden !important;
    padding: 0 !important;
    background-color: white !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.dark .taboola-single-article #taboola-right-rail-thumbnails,
.dark-theme .taboola-single-article #taboola-right-rail-thumbnails {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3) !important;
}

/* Force single article display */
.taboola-single-article .trc_rbox_div {
    display: block !important;
}

.taboola-single-article .videoCube {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Hide all articles except the first one */
.taboola-single-article .videoCube:not(:first-child) {
    display: none !important;
}

/* Image container styling */
.taboola-single-article .thumbBlock {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.taboola-single-article .thumbBlock img,
.taboola-single-article .thumbBlock .thumbBlock_holder {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Content area styling */
.taboola-single-article .videoCube .videoCube_aspect {
    padding: 1rem !important;
}

/* Title styling */
.taboola-single-article .video-title,
.taboola-single-article .videoCube_title,
.taboola-single-article span.video-title {
    color: #1f2937 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 1rem 1rem 0.5rem 1rem !important;
    display: block !important;
    text-decoration: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

.dark .taboola-single-article .video-title,
.dark .taboola-single-article .videoCube_title,
.dark .taboola-single-article span.video-title,
.dark-theme .taboola-single-article .video-title,
.dark-theme .taboola-single-article .videoCube_title,
.dark-theme .taboola-single-article span.video-title {
    color: #f3f4f6 !important;
}

/* Description styling if present */
.taboola-single-article .video-description,
.taboola-single-article span.video-description {
    color: #6b7280 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 0 1rem !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.dark .taboola-single-article .video-description,
.dark .taboola-single-article span.video-description,
.dark-theme .taboola-single-article .video-description,
.dark-theme .taboola-single-article span.video-description {
    color: #9ca3af !important;
}

/* Branding/Sponsored text */
.taboola-single-article .branding,
.taboola-single-article .sponsored,
.taboola-single-article .video-label-box {
    color: #9ca3af !important;
    font-size: 11px !important;
    padding: 0.5rem 1rem 1rem 1rem !important;
    margin: 0 !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
}

.dark .taboola-single-article .branding,
.dark .taboola-single-article .sponsored,
.dark .taboola-single-article .video-label-box,
.dark-theme .taboola-single-article .branding,
.dark-theme .taboola-single-article .sponsored,
.dark-theme .taboola-single-article .video-label-box {
    color: #6b7280 !important;
}

/* Remove extra Taboola UI elements */
.taboola-single-article .trc_rbox_header,
.taboola-single-article .logoDiv,
.taboola-single-article .trc_header_ext,
.taboola-single-article .trc_rbox_border_elm,
.taboola-single-article .syndicatedItem {
    display: none !important;
}

/* Hover effects */
.taboola-single-article:hover #taboola-right-rail-thumbnails {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px) !important;
    transition: all 0.2s ease !important;
}

.dark .taboola-single-article:hover #taboola-right-rail-thumbnails,
.dark-theme .taboola-single-article:hover #taboola-right-rail-thumbnails {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4) !important;
}

.taboola-single-article .videoCube:hover .video-title {
    color: #2563eb !important;
}

.dark .taboola-single-article .videoCube:hover .video-title,
.dark-theme .taboola-single-article .videoCube:hover .video-title {
    color: #60a5fa !important;
}

/* Link styling */
.taboola-single-article .videoCube a {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

/* Ensure proper layout */
.taboola-single-article .videoCube .videoCube_box {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
