/* =============================================
   WAR NEWS LISTING — Estilos
   Diseño horizontal: foto izquierda + titular derecha
   Filtros por conflicto con contador
============================================= */

/* ── Variables ──────────────────────────────────────────── */
.wnl-wrapper {
    --bg:         #0d1318;
    --bg-hover:   #111c22;
    --border:     #1a2a1a;
    --green:      #00cc44;
    --green-dim:  #008833;
    --text:       #c8d8c8;
    --text-dim:   #6a8a6a;
    --text-title: #e8f0e8;
    --amber:      #d4a017;
    --red:        #cc3333;
    --mono:       'Courier New', monospace;
    --sans:       system-ui, -apple-system, sans-serif;

    font-family: var(--sans);
    max-width: 900px;
    margin: 0 auto;
}

/* ── FILTROS ─────────────────────────────────────────────── */
.wnl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.wnl-filter-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.wnl-filter-btn:hover {
    border-color: var(--green-dim);
    color: var(--text);
    background: rgba(0,204,68,0.04);
}

.wnl-filter-btn.active {
    border-color: var(--green);
    color: var(--green);
    background: rgba(0,204,68,0.08);
}

.wnl-filter-count {
    background: var(--border);
    color: var(--text-dim);
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    min-width: 18px;
    text-align: center;
}

.wnl-filter-btn.active .wnl-filter-count {
    background: rgba(0,204,68,0.15);
    color: var(--green);
}

/* ── LISTADO ─────────────────────────────────────────────── */
.wnl-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── ITEM — DISEÑO HORIZONTAL ────────────────────────────── */
.wnl-item {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    transition: background 0.15s;
    position: relative;
}

.wnl-item:hover {
    background: var(--bg-hover);
}

.wnl-item:hover::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--green);
}

/* ── FOTO ────────────────────────────────────────────────── */
.wnl-image-link {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.wnl-image {
    width: 140px;
    height: 95px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Filtro oscuro sobre la imagen */
.wnl-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(13,19,24,0.1),
        transparent
    );
}

.wnl-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--bg);
    border-right: 1px solid var(--border);
}

/* Etiqueta de conflicto sobre la foto */
.wnl-conflict-tag {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,0.75);
    color: var(--green);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 1px;
    text-transform: uppercase;
    z-index: 1;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── CONTENIDO ───────────────────────────────────────────── */
.wnl-content {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* Para que el texto se trunque correctamente */
}

.wnl-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.wnl-icon { font-size: 13px; }

.wnl-conflict {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber);
}

.wnl-location {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

/* ── TITULAR ─────────────────────────────────────────────── */
.wnl-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.wnl-title a {
    color: var(--text-title);
    text-decoration: none;
    transition: color 0.15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wnl-title a:hover {
    color: var(--green);
}

/* ── META INFERIOR ───────────────────────────────────────── */
.wnl-meta-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wnl-source,
.wnl-date {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.wnl-read-link {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--green-dim);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.wnl-read-link:hover {
    color: var(--green);
}

/* ── CARGAR MÁS ──────────────────────────────────────────── */
.wnl-load-more-wrap {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.wnl-load-more-btn {
    padding: 10px 28px;
    background: transparent;
    border: 1px solid var(--green-dim);
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
}

.wnl-load-more-btn:hover {
    background: rgba(0,204,68,0.08);
    border-color: var(--green);
}

.wnl-load-more-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── ESTADO VACÍO ────────────────────────────────────────── */
.wnl-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 13px;
    border: 1px dashed var(--border);
    border-radius: 2px;
}

/* ── ANIMACIÓN al cargar más ─────────────────────────────── */
.wnl-item-new {
    animation: wnl-fade-in 0.3s ease forwards;
}

@keyframes wnl-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── OCULTO por filtro ───────────────────────────────────── */
.wnl-item.wnl-hidden {
    display: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .wnl-image {
        width: 100px;
        height: 80px;
    }

    .wnl-title { font-size: 13px; }

    .wnl-read-link { display: none; }

    .wnl-filters {
        gap: 4px;
    }

    .wnl-filter-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ── READ ORIGINAL BUTTON ────────────────────────────────── */
.wnl-original-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #fff;
    background: #1a472a;
    border: 1px solid #2d6a4f;
    border-radius: 4px;
    padding: 3px 8px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.wnl-original-link:hover {
    background: #2d6a4f;
    border-color: #40916c;
    color: #fff;
    text-decoration: none;
}

/* ── READ ORIGINAL BUTTON ─────────────────────────── */
.wnl-original-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #fff;
    background: #1a472a;
    border: 1px solid #2d6a4f;
    border-radius: 4px;
    padding: 3px 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}
.wnl-original-link:hover {
    background: #2d6a4f;
    border-color: #40916c;
    color: #fff;
    text-decoration: none;
}
