/* Recortes RAG — Custom Styles (Bulma complement) */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.citation-block {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 10px 16px;
    margin: 8px 0;
    font-size: 0.85em;
    border-radius: 4px;
}

.doc-card {
    border-left: 4px solid #48c774;
    transition: all 0.3s ease;
}

.doc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.uva-badge {
    background: #fff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.thinking {
    animation: pulse 1.5s infinite;
}

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

.answer-content {
    line-height: 1.8;
}

.answer-content p {
    margin-bottom: 0.75em;
}

.navbar-item.is-tab.is-active {
    border-bottom: 3px solid #667eea;
    font-weight: 600;
}

/* Alpine.js x-cloak: hide elements until Alpine initializes */
[x-cloak] {
    display: none !important;
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .hero-gradient .title {
        font-size: 1.5rem;
    }
    .hero-gradient .subtitle {
        font-size: 0.9rem;
    }
    .hero-gradient .hero-body {
        padding: 1.5rem 0.75rem;
    }
    .section {
        padding: 1.5rem 0.75rem;
    }
    .footer {
        padding: 1.5rem 0.75rem;
    }
    .answer-content {
        font-size: 0.95rem;
    }
    .citation-block {
        font-size: 0.8rem;
        padding: 8px 10px;
        overflow-x: auto;
        word-break: break-all;
    }
    .doc-card .card-content {
        padding: 0.75rem;
    }
    .tags.are-small {
        flex-wrap: wrap;
    }
}