/* src/styles/fragments/library.css */
.library-container {
    padding: 10px 20px 100px;
}

.library-header {
    text-align: center;
    margin-bottom: 30px;
}

.library-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--naranja);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.library-header p {
    color: var(--gris-oscuro);
    font-weight: 600;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 2px solid var(--glass-border);
    transition: transform 0.3s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--celeste);
}

.article-info {
    padding: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--naranja);
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.article-title {
    font-size: 1.3rem;
    color: var(--azul-mar);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--texto);
    line-height: 1.5;
    opacity: 0.8;
}

/* Vista Detalle Artículo */
#view-article-detail {
    background: white;
}

.article-content-wrapper {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.article-full-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 25px;
}

.article-full-category {
    color: var(--naranja);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.article-full-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--azul-mar);
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-full-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--gris-oscuro);
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--texto);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    color: var(--azul-mar);
    font-size: 1.4rem;
    margin: 30px 0 15px;
    font-weight: 900;
}

.article-body ul, .article-body ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.btn-back-library {
    margin-top: 40px;
    background: var(--celeste);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 0 #76959D;
    width: 100%;
}
