/*
 * rss-viewer.css — estilos de /rss-viewer.php
 *
 * Página STANDALONE (sin header/footer.php) — preview HTML de feed RSS
 * de artículos científicos filtrados por gene/treatment.
 *
 * Paleta home azul + naranja RSS preservado como brand semántico.
 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #eff6ff 0%, #eff6ff 100%);
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    background: linear-gradient(135deg, #0056a3, #2563eb);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.header p {
    opacity: 0.9;
}

.rss-info {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

/* RSS icon — naranja oficial del estándar RSS (brand semántico, NO recolorear) */
.rss-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rss-info-text {
    flex: 1;
    min-width: 200px;
}

.rss-info-text h3 {
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.rss-info-text p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rss-url {
    background: #f1f5f9;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #1e40af;
    word-break: break-all;
    font-family: monospace;
    display: block;
}

.copy-btn {
    background: linear-gradient(135deg, #0056a3, #1e40af);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 86, 163, 0.3);
}

.article {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #0056a3;
}

.article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article h2 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article h2 a {
    color: #2563eb;
    text-decoration: none;
}

.article h2 a:hover {
    text-decoration: underline;
}

.article p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #94a3b8;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0056a3, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.back-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

/* Selector específico (evita afectar a iconos de botones que estén dentro) */
.empty-state__icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

.article-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: inline-block;
}
