/* Estilos para Dev.to Articles */
.devto-articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.devto-article {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.devto-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.devto-article-title {
    padding: 15px 15px 5px;
    margin: 0;
    font-size: 18px;
    color: #000;
    line-height: 1.4;
    height: 110px;
}

.devto-article-title a {
    text-decoration: none;
    color: #f26b38 I !important;
}

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

.devto-article-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 15px 10px;
    font-size: 14px;
    color: #666;
}

.devto-article-desc {
    padding: 0 15px;
    font-size: 14px;
    color: #555;
    margin: 0 0 15px;
    line-height: 1.5;
}

.devto-article-tags {
    padding: 0 15px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.devto-tag {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    color: #555;
}

/* Estilos para la imagen y overlay */
.devto-article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.devto-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.devto-article:hover .devto-article-image img {
    transform: scale(1.05);
}

.devto-article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.devto-article-image:hover .devto-article-overlay {
    opacity: 1;
}

/* Contenedor para "Sin foto" */
.devto-article-no-image {
    width: 100%;
    height: 180px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    font-style: italic;
}

/* Estilos para los botones */
.devto-article-buttons {
    display: flex;
    padding: 0 15px 15px;
}

.devto-article-buttons-bottom {
    margin-top: auto;
}

.devto-article-overlay .devto-article-buttons {
    padding: 0;
    width: 80%;
    flex-direction: column;
}

.devto-btn {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    flex: 1;
}

.devto-btn-devto {
    background-color: #000000;
    color: white;
}

.devto-btn-devto:hover {
    background-color: #1a1a1a;
    color: white;
}

.devto-articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
}

.devto-page-prev,
.devto-page-next {
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.devto-page-prev:hover,
.devto-page-next:hover {
    background: #e0e0e0;
}

.devto-page-current {
    padding: 8px 15px;
    background: #333;
    color: #fff;
    border-radius: 4px;
}

.devto-articles-error,
.devto-articles-empty {
    padding: 20px;
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .devto-articles-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .devto-articles-container {
        grid-template-columns: 1fr;
    }
}

.devto-article-no-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    color: white;
    background: #f26b38;
}