/* ============================================================
   news.css — estilos para /noticias y /gadgets
   ============================================================ */

/* ── Búsqueda ──────────────────────────────────────────────── */
.news-search {
    margin-bottom: 1.75rem;
}

.news-search__row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.news-search__input {
    flex: 1;
    min-width: 180px;
    padding: 0.55rem 0.9rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.news-search__input--author {
    flex: 0 1 200px;
}

.news-search__input:focus {
    border-color: var(--primary);
}

.news-search__btn {
    padding: 0.55rem 1.2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.news-search__btn:hover {
    background: var(--primary-hover);
}

.news-search__clear {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
}

.news-search__clear:hover {
    color: var(--text-secondary);
}

/* ── Lista ──────────────────────────────────────────────────── */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.news-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.news-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Detalle de artículo ── */
.article-hero {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: block;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-header__category {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.article-header__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.article-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.article-source {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--accent-bright);
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: background var(--transition);
}

.article-source:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Prose (cuerpo del artículo) ── */
.prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-primary);
    max-width: 70ch;
}

.prose p { margin: 0 0 1.25rem; }
.prose h2 { font-size: 1.375rem; font-weight: 700; color: var(--accent); margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.125rem; font-weight: 600; color: var(--accent-bright); margin: 1.5rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--text-primary); font-weight: 700; }
.prose em { color: var(--text-secondary); }
.prose a { color: var(--accent-bright); text-decoration: underline; }
.prose a:hover { color: var(--primary-hover); }
.prose blockquote {
    border-left: 3px solid var(--primary);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}
.prose img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}
.prose code {
    background: var(--bg-elevated);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875em;
}

/* ── Artículos tipo top-N (gadgets) ── */
.prose .product-verdict {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 0.75rem 0 1rem;
}

.prose .product-verdict ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 140px;
}

.prose .pros li::before {
    content: '✓ ';
    color: #4ade80;
    font-weight: 700;
}

.prose .cons li::before {
    content: '✗ ';
    color: #f87171;
    font-weight: 700;
}

.prose .product-buy {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1.75rem;
}

.prose .product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-bright);
}

.prose .btn-amazon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ff9900;
    color: #111;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.prose .btn-amazon::before {
    content: '🛒';
    font-size: 1em;
}

.prose .btn-amazon:hover {
    background: #e68a00;
    color: #111;
}
