/* ===== RSS PREVIEW STYLES - Geoprocesamiento Online ===== */
/* Sistema de estilos para la vista previa del RSS Feed */

/* ===== LAYOUT BASE ===== */
.rss-feed-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ===== HEADER SECTION ===== */
.rss-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 16px;
    color: white;
}

.rss-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.rss-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #f97316;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rss-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: #ea580c;
    text-decoration: none;
}

/* ===== STATS SECTION ===== */
.rss-stats {
    background: #f8fafc;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-center;
    color: #64748b;
}

/* ===== COPY URL SECTION ===== */
.copy-url {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    word-break: break-all;
}

.copy-url:hover {
    background: #e5e7eb;
    border-color: #f97316;
}

/* Feedback visual al copiar */
.copy-url.copied {
    background-color: #dcfce7;
    border-color: #16a34a;
    color: #15803d;
}

/* ===== ARTICLES LIST ===== */
.article-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    transition: all 0.2s;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #f97316;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-title a {
    color: #1f2937;
    text-decoration: none;
}

.article-title a:hover {
    color: #f97316;
    text-decoration: none;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.category-tag {
    background: #ddd6fe;
    color: #5b21b6;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-description {
    color: #374151;
    line-height: 1.6;
}

/* ===== INSTRUCTIONS SECTION ===== */
.instructions-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.instructions-title {
    color: #0f4c75;
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructions-content {
    color: #1e40af;
}

.instructions-content p {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .rss-feed-container {
        padding: 1rem;
    }

    .rss-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .rss-actions {
        flex-direction: column;
        align-items: center;
    }

    .rss-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .rss-button,
    .article-item,
    .copy-url {
        transition: none;
    }

    .rss-button:hover {
        transform: none;
    }
}

/* ===== DARK MODE SUPPORT (Si lo implementas en el futuro) ===== */
@media (prefers-color-scheme: dark) {
    .article-item {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }

    .article-title a {
        color: #f9fafb;
    }

    .copy-url {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .rss-stats {
        background: #1f2937;
        color: #9ca3af;
    }
}
