/* =============================================
   Diario Online - Main Styles
   ============================================= */

:root {
    --primary: var(--primary-color, #667eea);
    --primary-dark: var(--button-hover, #5a67d8);
    --secondary: var(--secondary-color, #764ba2);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --text-color: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1a1a2e;

    --border-color: var(--line-color, #e5e7eb);
    --border-light: var(--line-color, #f3f4f6);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Use theme variables with fallbacks */
    --radius: var(--border-radius, 8px);
    --radius-lg: var(--border-radius, 12px);

    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-width: 1320px;
    --sidebar-width: 320px;

    /* Card styles - controlled by theme */
    --card-shadow: var(--shadow);
    --card-border: 1px solid var(--border-color);
    --card-radius: var(--border-radius, 8px);

    /* Line/separator color */
    --line: var(--line-color, #e5e7eb);

    /* Icon colors */
    --icon: var(--icon-color, #6b7280);

    /* Button colors */
    --btn-primary-bg: var(--button-bg, #667eea);
    --btn-primary-text: var(--button-text, #ffffff);
    --btn-primary-hover: var(--button-hover, #5a67d8);
    --btn-secondary-bg: var(--button-secondary-bg, #f3f4f6);
    --btn-secondary-text: var(--button-secondary-text, #374151);

    /* Category badge colors */
    --cat-color: var(--category-color, #ffffff);
    --cat-bg: var(--category-bg, #667eea);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--link-hover, var(--primary));
}

/* Icons */
.icon, i.fa, i.fas, i.far, i.fab {
    color: var(--icon, #6b7280);
    transition: color 0.2s;
}

a:hover .icon, a:hover i.fa, a:hover i.fas, a:hover i.far, a:hover i.fab {
    color: var(--icon-hover, var(--primary));
}

/* Iconos dentro de botones heredan el color del texto del botón */
.btn i.fa, .btn i.fas, .btn i.far, .btn i.fab,
.btn-primary i.fa, .btn-primary i.fas, .btn-primary i.far, .btn-primary i.fab,
.btn-secondary i.fa, .btn-secondary i.fas, .btn-secondary i.far, .btn-secondary i.fab,
.btn-outline i.fa, .btn-outline i.fas, .btn-outline i.far, .btn-outline i.fab,
.btn-sm i.fa, .btn-sm i.fas, .btn-sm i.far, .btn-sm i.fab,
.btn-icon i.fa, .btn-icon i.fas, .btn-icon i.far, .btn-icon i.fab,
button i.fa, button i.fas, button i.far, button i.fab {
    color: inherit;
}

/* Iconos de redes sociales y navegación heredan color del enlace padre */
.social-links a i.fa, .social-links a i.fas, .social-links a i.far, .social-links a i.fab,
.social-link i.fa, .social-link i.fas, .social-link i.far, .social-link i.fab,
a.social-link:hover i.fa, a.social-link:hover i.fas, a.social-link:hover i.far, a.social-link:hover i.fab {
    color: inherit;
}

/* Iconos de redes sociales en footer (fondo oscuro = icono blanco) */
.footer-social a i.fa, .footer-social a i.fas, .footer-social a i.far, .footer-social a i.fab {
    color: rgba(255, 255, 255, 0.7);
}
.footer-social a:hover i.fa, .footer-social a:hover i.fas, .footer-social a:hover i.far, .footer-social a:hover i.fab {
    color: white;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Full width layout - more generous padding when container is 100% */
@media (min-width: 769px) {
    body.full-width-layout .container {
        padding: 0 40px;
    }
}

/* =============================================
   Header
   ============================================= */
.site-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-dark);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.social-links a:hover {
    color: white;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 60px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
}

/* Navigation */
.main-nav {
    background: var(--primary);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 14px 20px;
    color: white;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.nav-search {
    display: flex;
}

.nav-search form {
    display: flex;
}

.nav-search input {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    width: 200px;
}

.nav-search input:focus {
    outline: none;
}

.nav-search button {
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: white;
    cursor: pointer;
}

/* Breaking News */
.breaking-news {
    background: var(--danger);
    color: white;
    padding: 10px 0;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breaking-label {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.breaking-ticker {
    overflow: hidden;
    white-space: nowrap;
}

.breaking-ticker a {
    display: inline-block;
    animation: ticker 20s linear infinite;
    padding-right: 100px;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =============================================
   Main Content
   ============================================= */
.site-main {
    padding: 30px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 30px;
    margin-top: 30px;
}

.content-area.no-sidebar {
    grid-template-columns: 1fr;
}

.content-area.no-sidebar .sidebar {
    display: none;
}

.content-area.sidebar-left {
    grid-template-columns: var(--sidebar-width) 1fr;
}

.content-area.sidebar-left .sidebar {
    order: -1;
}

.main-content {
    min-width: 0;
}

/* =============================================
   Breaking News Ticker
   ============================================= */
.breaking-news-ticker {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: var(--radius);
}

.ticker-label {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

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

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 12px 20px;
}

.ticker-items {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding-right: 60px;
    font-size: 14px;
    color: white;
    opacity: 0.95;
}

.ticker-item:hover {
    opacity: 1;
    text-decoration: underline;
}

.ticker-item::after {
    content: '|';
    margin-left: 60px;
    opacity: 0.5;
}

.ticker-item:last-child::after {
    content: '';
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   Featured Section
   ============================================= */
.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
}

.featured-main {
    position: relative;
}

.featured-article {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-color);
    box-shadow: var(--shadow-md);
}

.featured-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 24px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--cat-color, white);
    background: var(--cat-bg, var(--primary));
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.featured-content h2 {
    font-family: var(--font-heading, 'Open Sans', sans-serif);
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.featured-content h2 a:hover {
    color: var(--link-hover, var(--primary));
}

.featured-content .excerpt {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta i {
    margin-right: 4px;
}

/* Featured Sidebar */
.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.featured-small {
    display: flex;
    gap: 12px;
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    flex: 1;
    min-height: 0;
}

.featured-small .thumb {
    flex-shrink: 0;
    width: 120px;
    min-height: 80px;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.featured-small .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.category-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.4;
    width: auto;
    align-self: flex-start;
}

/* All category label variants: ensure inline-block */
.category-tag,
.popular-category,
.breaking-item-cat,
.latest-card-cat,
.latest-compact-cat {
    display: inline-block;
    width: auto;
    align-self: flex-start;
}

/* Category color mode: theme (default) - badge with background */
body:not(.category-color-custom) .category-tag,
body:not(.category-color-custom) .popular-category,
body:not(.category-color-custom) .breaking-item-cat,
body:not(.category-color-custom) .latest-card-cat,
body:not(.category-color-custom) .latest-compact-cat {
    color: var(--cat-color, #ffffff) !important;
    background: var(--cat-bg, var(--primary-color, #667eea)) !important;
    padding: 3px 8px;
    border-radius: 3px;
}

/* Category color mode: custom - text only, no background */
body.category-color-custom .category-tag,
body.category-color-custom .popular-category,
body.category-color-custom .breaking-item-cat,
body.category-color-custom .latest-card-cat,
body.category-color-custom .latest-compact-cat {
    background: none !important;
    padding: 0;
}

.small-content h3 {
    font-size: 14px;
    line-height: 1.4;
    margin: 4px 0;
}

.small-content h3 a:hover {
    color: var(--link-hover, var(--primary));
}

.time {
    font-size: 12px;
    color: var(--text-light);
}

/* Featured Sidebar Column Style */
.featured-sidebar.style-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    height: 100%;
}

.featured-sidebar.style-column.cols-1 {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
}

.featured-sidebar.style-column.cols-1 .featured-card {
    flex: 1;
    min-height: 0;
}

.featured-sidebar.style-column.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
}

.featured-sidebar.style-column.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
}

.featured-sidebar.style-column .featured-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.featured-sidebar.style-column .featured-card .card-image {
    width: 100%;
    flex: 1;
    min-height: 80px;
    display: block;
    overflow: hidden;
}

.featured-sidebar.style-column .featured-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-sidebar.style-column .featured-card:hover .card-image img {
    transform: scale(1.05);
}

.featured-sidebar.style-column .featured-card .card-image .placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-400);
}

.featured-sidebar.style-column .featured-card .card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.featured-sidebar.style-column .featured-card .card-content h3 {
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
}

.featured-sidebar.style-column .featured-card .card-content h3 a:hover {
    color: var(--link-hover, var(--primary));
}

.featured-sidebar.style-column .featured-card .card-content .time {
    font-size: 11px;
}

/* =============================================
   Content Blocks
   ============================================= */
.content-block {
    margin-bottom: 40px;
}

.custom-html-block {
    margin-bottom: 40px;
}

.custom-html-content {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.ad-block-wrapper {
    margin: 30px 0;
    text-align: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.section-header h2 {
    font-family: var(--font-heading, 'Open Sans', sans-serif);
    font-size: 22px;
}

.see-all {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

.see-all:hover {
    text-decoration: underline;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    gap: 20px;
}

.articles-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.articles-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.articles-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.article-card {
    background: var(--card-bg, var(--bg-color));
    border-radius: var(--card-radius, var(--radius));
    overflow: hidden;
    box-shadow: var(--card-shadow, var(--shadow));
    border: var(--card-border, none);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: var(--card-hover-transform, translateY(-4px));
    box-shadow: var(--card-hover-shadow, var(--shadow-lg));
}

/* Flat card style (no shadows, minimal borders) */
.flat-cards .article-card,
body.card-style-flat .article-card {
    box-shadow: none;
    border: 1px solid var(--border-color, #e5e7eb);
}
.flat-cards .article-card:hover,
body.card-style-flat .article-card:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--primary-color, #667eea);
}

/* Minimal card style (bottom border only) */
.minimal-cards .article-card,
body.card-style-minimal .article-card {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0;
}
.minimal-cards .article-card:hover,
body.card-style-minimal .article-card:hover {
    box-shadow: none;
    transform: none;
}
body.card-style-minimal .widget {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0;
}
body.card-style-minimal .content-block {
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Minimal style: featured section */
body.card-style-minimal .featured-article {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0;
}
body.card-style-minimal .featured-small {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0;
}
body.card-style-minimal .featured-sidebar.style-column .featured-card {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0;
}
body.card-style-minimal .breaking-news-block {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0;
    border-left: none;
}
body.card-style-minimal .list-item {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

/* Borderless card style (no borders at all) */
body.card-style-borderless .article-card {
    box-shadow: none;
    border: none;
    border-radius: 0;
}
body.card-style-borderless .article-card:hover {
    box-shadow: none;
    transform: none;
}
body.card-style-borderless .widget {
    box-shadow: none;
    border: none;
}
body.card-style-borderless .content-block {
    border: none;
}
body.card-style-borderless .featured-article {
    box-shadow: none;
    border: none;
    border-radius: 0;
}
body.card-style-borderless .featured-small {
    box-shadow: none;
    border: none;
    border-radius: 0;
}
body.card-style-borderless .featured-sidebar.style-column .featured-card {
    box-shadow: none;
    border: none;
    border-radius: 0;
}
body.card-style-borderless .breaking-news-block {
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-left: none;
}
body.card-style-borderless .list-item {
    box-shadow: none;
    border: none;
}

/* Flat style: featured section */
body.card-style-flat .featured-article {
    box-shadow: none;
    border: 1px solid var(--border-color, #e5e7eb);
}
body.card-style-flat .featured-small {
    box-shadow: none;
    border: 1px solid var(--border-color, #e5e7eb);
}
body.card-style-flat .featured-sidebar.style-column .featured-card {
    box-shadow: none;
    border: 1px solid var(--border-color, #e5e7eb);
}

/* Outlined style: featured section */
body.card-style-outlined .featured-article {
    box-shadow: none;
    border: 2px solid var(--primary-color, #667eea);
}
body.card-style-outlined .featured-small {
    box-shadow: none;
    border: 2px solid var(--primary-color, #667eea);
}
body.card-style-outlined .featured-sidebar.style-column .featured-card {
    box-shadow: none;
    border: 2px solid var(--primary-color, #667eea);
}

/* Outlined card style (prominent border) */
body.card-style-outlined .article-card {
    box-shadow: none;
    border: 2px solid var(--primary-color, #667eea);
}
body.card-style-outlined .article-card:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--secondary-color, #764ba2);
}

.card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.card-content {
    padding: 16px;
}

.card-content h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-content h3 a:hover {
    color: var(--link-hover, var(--primary));
}

.card-content .excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: flex;
    gap: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.list-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
}

.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.list-content h3 a:hover {
    color: var(--link-hover, var(--primary));
}

.list-content .excerpt {
    flex: 1;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

/* Placeholder Images */
.placeholder-image,
.placeholder-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 48px;
    width: 100%;
    height: 100%;
}

.placeholder-thumb {
    font-size: 24px;
}

/* =============================================
   Sidebar
   ============================================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget {
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.widget.widget-ad {
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title:empty {
    display: none;
    border: none;
    margin: 0;
    padding: 0;
}

.widget-title i {
    color: var(--primary);
}

/* Popular Widget */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.popular-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.popular-content h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-content h4 a:hover {
    color: var(--link-hover, var(--primary));
}

.popular-content .views {
    font-size: 12px;
    color: var(--text-light);
}

/* Popular widget with images */
.popular-list.with-images .popular-item {
    flex-direction: column;
    gap: 0;
}

.popular-item.has-image {
    padding: 0;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.popular-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-number-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.popular-item.has-image .popular-content {
    padding: 12px;
}

.popular-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 4px;
}

.popular-category:hover {
    opacity: 0.8;
}

/* Popular widget with images on the left */
.popular-list.image-left .popular-item {
    flex-direction: row;
    gap: 12px;
}

.popular-list.image-left .popular-item.has-image {
    padding: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.popular-list.image-left .popular-item.has-image:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-list.image-left .popular-image {
    width: 80px;
    min-width: 80px;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.popular-list.image-left .popular-number-overlay {
    width: 22px;
    height: 22px;
    font-size: 11px;
    top: 4px;
    left: 4px;
}

.popular-list.image-left .popular-item.has-image .popular-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid var(--border-light);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.category-list a:hover .cat-name {
    color: var(--link-hover, var(--primary));
}

.cat-count {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Newsletter Widget */
.widget-newsletter p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    padding: 10px 16px;
    background: var(--primary);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: white;
    cursor: pointer;
}

/* =============================================
   Breaking News Block (Homepage)
   ============================================= */
.breaking-news-block {
    background: var(--card-bg, #fff);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-left: 4px solid #dc2626;
}
.breaking-news-header {
    background: #dc2626;
    padding: 10px 20px;
}
.breaking-badge {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.breaking-badge i { margin-right: 6px; color: inherit; }
.breaking-news-grid {
    display: grid;
    grid-template-columns: 1fr;
}
.breaking-main-link {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.breaking-main-img {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}
.breaking-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.breaking-main-body {
    padding: 16px 20px;
}
.breaking-main-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color, #1a1a2e);
    margin: 6px 0 8px;
    line-height: 1.3;
}
.breaking-main-link:hover h3 { color: var(--primary); }
.breaking-time {
    font-size: 12px;
    color: var(--text-muted, #999);
}
.breaking-item { border-bottom: 1px solid var(--border-color, #e5e7eb); }
.breaking-item:last-child { border-bottom: none; }
.breaking-item-link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    transition: background 0.15s;
}
.breaking-item-link:hover { background: var(--bg-light, #f9fafb); }
.breaking-item-time {
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
    min-width: 42px;
}
.breaking-item-content { flex: 1; }
.breaking-item-cat {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.breaking-item-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin: 2px 0 0;
    line-height: 1.3;
}
.breaking-item-link:hover h4 { color: var(--primary); }

@media (min-width: 768px) {
    .breaking-news-grid {
        grid-template-columns: 1fr 1fr;
    }
    .breaking-main {
        grid-column: 1;
        grid-row: 1 / span 4;
    }
    .breaking-main-link {
        height: 100%;
        display: flex;
        flex-direction: column;
        border-bottom: none;
        border-right: 1px solid var(--border-color, #e5e7eb);
    }
    .breaking-main-img { flex: 1; max-height: none; min-height: 200px; }
}

/* =============================================
   Latest News Widget - Ticker
   ============================================= */
.widget-latest-ticker {
    background: var(--card-bg, #fff);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.ticker-header {
    background: #dc2626;
    padding: 10px 16px;
}
.ticker-badge {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ticker-badge i { margin-right: 6px; color: inherit; }
.ticker-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ticker-item {
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.ticker-item:last-child { border-bottom: none; }
.ticker-item a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    transition: background 0.15s;
}
.ticker-item a:hover { background: var(--bg-light, #f9fafb); }
.ticker-time {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
    min-width: 40px;
}
.ticker-title {
    font-size: 14px;
    color: var(--text-color, #333);
    line-height: 1.4;
}

/* Latest News Widget - Cards */
.widget-latest-cards {
    background: var(--card-bg, #fff);
    border-radius: var(--radius, 8px);
    padding: 20px;
    box-shadow: var(--shadow);
}
.latest-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.latest-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.latest-card:last-child { border-bottom: none; padding-bottom: 0; }
.latest-card-img {
    width: 100px;
    min-width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}
.latest-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-card-body { flex: 1; min-width: 0; }
.latest-card-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.latest-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #333);
    margin: 4px 0;
    line-height: 1.3;
}
.latest-card:hover .latest-card-title { color: var(--primary); }
.latest-card-excerpt {
    font-size: 12px;
    color: var(--text-muted, #666);
    margin: 0;
    line-height: 1.4;
}
.latest-card-date {
    font-size: 11px;
    color: var(--text-muted, #999);
}

/* Latest News Widget - Compact */
.widget-latest-compact {
    background: var(--card-bg, #fff);
    border-radius: var(--radius, 8px);
    padding: 20px;
    box-shadow: var(--shadow);
}
.latest-compact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.latest-compact-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.latest-compact-item:first-child { padding-top: 0; }
.latest-compact-item:last-child { border-bottom: none; padding-bottom: 0; }
.latest-compact-thumb {
    width: 70px;
    min-width: 70px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
}
.latest-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-compact-content { flex: 1; min-width: 0; }
.latest-compact-cat {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.latest-compact-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color, #333);
    line-height: 1.3;
    text-decoration: none;
    margin: 2px 0;
}
.latest-compact-title:hover { color: var(--primary); }
.latest-compact-date {
    font-size: 11px;
    color: var(--text-muted, #999);
}

/* =============================================
   Article Page
   ============================================= */
.article-page {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-family: var(--font-heading, 'Open Sans', sans-serif);
    font-size: 36px;
    line-height: 1.3;
    margin: 16px 0;
}

.article-excerpt {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.article-header .article-meta {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.article-meta .meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-meta .meta-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-meta .meta-date,
.article-meta .meta-reading-time,
.article-meta .meta-views,
.article-meta .meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.author-details {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
}

.publish-date {
    font-size: 13px;
    color: var(--text-muted);
}

.reading-time {
    margin-left: 12px;
}

.article-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Featured Image */
.article-featured-image {
    margin: 30px 0;
}

.article-featured-image img {
    width: 100%;
    border-radius: var(--radius);
}

.article-featured-image figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.share-buttons span {
    font-weight: 500;
    color: var(--text-muted);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.copy { background: #64748b; }

/* Override: share buttons siempre blancos (texto e iconos) */
.share-btn,
a.share-btn,
a.share-btn:hover,
a.share-btn:active,
a.share-btn:visited {
    color: white;
    text-decoration: none;
}

.share-btn i.fa,
.share-btn i.fas,
.share-btn i.far,
.share-btn i.fab,
a.share-btn:hover i.fa,
a.share-btn:hover i.fas,
a.share-btn:hover i.far,
a.share-btn:hover i.fab {
    color: white;
}

.share-btn:hover {
    opacity: 0.9;
}

button.share-btn {
    font-family: inherit;
    font-size: inherit;
}

.share-buttons.large {
    flex-wrap: wrap;
}

.share-buttons.large .share-btn {
    width: auto;
    height: auto;
    padding: 10px 20px;
    border-radius: var(--radius);
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Article Content */
.article-content {
    font-family: var(--font-body, 'Open Sans', sans-serif);
    font-size: 18px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3 {
    font-family: var(--font-sans);
    margin: 30px 0 16px;
}

.article-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-content iframe,
.article-content video,
.article-content embed,
.article-content object {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-content ul,
.article-content ol {
    margin: 16px 0 16px 24px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Article Tags */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Share Section */
.share-section {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin: 30px 0;
}

.share-section h4 {
    margin-bottom: 16px;
}

.share-section .share-buttons {
    justify-content: center;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin: 30px 0;
}

.author-avatar-large {
    flex-shrink: 0;
}

.author-avatar-large img,
.author-avatar-large .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
}

.author-box .author-details h4 {
    margin-bottom: 8px;
}

.author-box .author-details p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
}

.related-articles h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.related-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 12px;
}

.related-content h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.related-content h4 a:hover {
    color: var(--link-hover, var(--primary));
}

/* =============================================
   Comments
   ============================================= */
.comments-section {
    margin-top: 40px;
}

.comments-section h3 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--btn-primary-bg, var(--primary));
    color: var(--btn-primary-text, white);
}

.btn-primary:hover {
    background: var(--btn-primary-hover, var(--primary-dark));
}

.btn-secondary {
    background: var(--btn-secondary-bg, #f3f4f6);
    color: var(--btn-secondary-text, #374151);
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--btn-secondary-bg, #f3f4f6) 90%, black);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--btn-primary-bg, var(--primary));
    color: var(--btn-primary-bg, var(--primary));
}

.btn-outline:hover {
    background: var(--btn-primary-bg, var(--primary));
    color: var(--btn-primary-text, white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    display: flex;
    gap: 16px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-avatar.small {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 8px;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
}

.reply-form {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.reply-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.reply-form textarea {
    margin-bottom: 12px;
}

.comment-replies {
    margin-top: 16px;
    padding-left: 24px;
    border-left: 2px solid var(--border-light);
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
}

/* =============================================
   Category Page
   ============================================= */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--header-line-color, var(--primary));
}

.category-header h1 {
    font-family: var(--font-heading, 'Open Sans', sans-serif);
    font-size: var(--header-font-size, 22px);
    margin: 0;
    color: var(--header-text-color, inherit);
}

.category-description {
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
    margin: 4px 0 0;
}

.article-count {
    font-size: 13px;
    color: var(--text-secondary, #9ca3af);
}

/* =============================================
   Pagination
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-link:hover {
    background: var(--bg-light);
}

.pagination-link.active {
    background: var(--primary);
    color: white;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
    background: var(--bg-dark);
    color: white;
    margin-top: 50px;
}

.footer-main {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-col p i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.powered-by {
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    color: var(--footer-text, white);
    opacity: 0.4;
    transition: opacity 0.2s;
}

.powered-by:hover {
    opacity: 0.7;
}

.powered-by a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.powered-by-logo {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .featured-section {
        grid-template-columns: 1fr;
    }

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

    .article-page {
        padding: 24px;
    }

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

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main .container {
        flex-direction: column;
        gap: 16px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg, #16213e);
        flex-direction: column;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-search {
        display: none;
    }

    .articles-grid.cols-2,
    .articles-grid.cols-3,
    .articles-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .list-item {
        flex-direction: column;
    }

    .list-thumb {
        width: 100%;
        height: 200px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 28px;
    }

    .comment-form .form-row,
    .reply-form .form-row {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .article-page {
        padding: 16px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-content {
        font-size: 16px;
    }
}

/* =============================================
   Weather Widget
   ============================================= */
.widget-weather .weather-content {
    text-align: center;
}

.widget-weather .weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.widget-weather .weather-icon {
    font-size: 48px;
    color: var(--primary);
}

.widget-weather .weather-icon .fa-sun {
    color: #f59e0b;
}

.widget-weather .weather-icon .fa-cloud-sun {
    color: #6b7280;
}

.widget-weather .weather-icon .fa-cloud {
    color: #9ca3af;
}

.widget-weather .weather-icon .fa-cloud-rain,
.widget-weather .weather-icon .fa-cloud-showers-heavy {
    color: #3b82f6;
}

.widget-weather .weather-icon .fa-snowflake {
    color: #93c5fd;
}

.widget-weather .weather-icon .fa-bolt {
    color: #fbbf24;
}

.widget-weather .weather-temp {
    text-align: left;
}

.widget-weather .temp-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.widget-weather .temp-feels {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.widget-weather .weather-location {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.widget-weather .weather-location i {
    color: var(--danger);
    margin-right: 4px;
}

.widget-weather .weather-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: capitalize;
}

.widget-weather .weather-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.widget-weather .weather-details span {
    font-size: 13px;
    color: var(--text-muted);
}

.widget-weather .weather-details i {
    margin-right: 4px;
    color: var(--primary);
}

.widget-weather .weather-updated {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-light);
}

/* =============================================
   Currency Widget
   ============================================= */
.widget-currency .currency-content {
    padding: 8px 0;
}

.widget-currency .currency-base {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.widget-currency .currency-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-currency .currency-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.widget-currency .currency-item:last-child {
    border-bottom: none;
}

.widget-currency .currency-flag {
    font-size: 18px;
    margin-right: 10px;
}

.widget-currency .currency-code {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    width: 40px;
}

.widget-currency .currency-rate {
    margin-left: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.widget-currency .currency-updated {
    margin-top: 12px;
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
}

/* =============================================
   Paywall Barrier
   ============================================= */
.paywall-barrier {
    position: relative;
    margin: -20px 0 30px 0;
}

.paywall-gradient {
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
    z-index: 1;
}

.paywall-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
    border: 2px solid #e0e7ff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.paywall-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary, #667eea), var(--secondary, #764ba2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.paywall-icon i {
    font-size: 24px;
    color: white;
}

.paywall-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.paywall-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary, #667eea), var(--secondary, #764ba2));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.paywall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.paywall-btn i {
    margin-right: 6px;
}

.paywall-login {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.paywall-login a {
    color: var(--primary, #667eea);
    text-decoration: none;
    font-weight: 500;
}

.paywall-login a:hover {
    text-decoration: underline;
}

.paywall-login-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .paywall-overlay {
        padding: 32px 16px;
    }

    .paywall-title {
        font-size: 18px;
    }

    .paywall-login-form {
        flex-direction: column;
        align-items: center;
    }

    .paywall-login-form input {
        width: 100% !important;
        max-width: 300px;
    }
}

/* =============================================
   Volanta (Kicker/Overline)
   ============================================= */

.article-volanta {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* =============================================
   Sponsored Articles
   ============================================= */

.sponsor-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.sponsor-banner .sponsor-label {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.sponsor-banner .sponsor-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.sponsor-banner .sponsor-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.sponsor-banner .sponsor-name:hover {
    color: var(--primary);
}

.sponsor-badge {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-radius: 4px;
}

/* =============================================
   Article Likes
   ============================================= */

.article-like-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 20px 0;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.like-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.like-btn.liked {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.like-btn.liked i {
    animation: likeAnim 0.3s ease;
}

@keyframes likeAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* =============================================
   Push Notification Toggle
   ============================================= */

.push-notif-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    flex-shrink: 0;
}

.push-notif-toggle:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.push-notif-toggle.subscribed {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

/* =============================================
   Adblock Detection Notice
   ============================================= */

.adblock-notice {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-bottom: 2px solid #f59e0b;
    padding: 12px 20px;
    position: relative;
    z-index: 9999;
}

.adblock-notice-content {
    max-width: var(--container-width, 1320px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #92400e;
}

.adblock-notice-content i {
    color: #f59e0b;
    font-size: 18px;
    flex-shrink: 0;
}

.adblock-notice-content span {
    flex: 1;
}

.adblock-notice-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #92400e;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.7;
}

.adblock-notice-close:hover {
    opacity: 1;
}
