/**
 * DQA Dashboard Blog
 * Estilos para el blog del dashboard de estudiantes
 */

/* ========================================= */
/* Container Principal */
/* ========================================= */
.dqa-blog-container {
    width: 100%;
    font-family: var(--fuentePrincipalDash, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif) !important;
    background-color: #fff;
}

/* ========================================= */
/* Header */
/* ========================================= */
.dqa-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dqa-blog-title {
    font-size: 2rem !important;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* ========================================= */
/* Categories Filter */
/* ========================================= */
.dqa-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.dqa-blog-category-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #6b7280;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dqa-blog-category-btn:hover {
    background-color: var(--colorLavandaClaro2, rgba(198,193,223,0.1));
    border-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
}

.dqa-blog-category-btn.active {
    background-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    color: #fff;
    border-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
}

.dqa-blog-category-count {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* ========================================= */
/* Blog Posts Grid */
/* ========================================= */
.dqa-blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media screen and (min-width: 768px) {
    .dqa-blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .dqa-blog-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================= */
/* Post Card */
/* ========================================= */
.dqa-blog-post-card {
    background-color: var(--colorVerde2, #e8f5e9);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dqa-blog-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dqa-blog-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dqa-blog-post-thumbnail {
    width: 100%;
    aspect-ratio: 2.58;
    overflow: hidden;
    background-color: #f3f4f6;
}

.dqa-blog-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dqa-blog-post-card:hover .dqa-blog-post-thumbnail img {
    transform: scale(1.05);
}

.dqa-blog-post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dqa-blog-post-date {
    font-family: var(--fuentePrincipalDash) !important;
    font-size: 1.6rem;
    color: #000;
    margin-bottom: 1rem;
    font-weight: 400;
    text-transform: uppercase;
}

.dqa-blog-post-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dqa-blog-post-title {
    font-family: var(--fuentePrincipalDash) !important;
    font-size: 1.8rem !important;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.dqa-blog-post-arrow {
    font-size: 1.8rem;
    color: #000;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.dqa-blog-post-card:hover .dqa-blog-post-arrow {
    transform: translateX(4px);
}

/* ========================================= */
/* Pagination */
/* ========================================= */
.dqa-blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.dqa-blog-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.dqa-blog-pagination li {
    margin: 0;
}

.dqa-blog-pagination a,
.dqa-blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    height: 4rem;
    padding: 0 1rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #6b7280;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dqa-blog-pagination a:hover {
    background-color: var(--colorLavandaClaro2, rgba(198,193,223,0.1));
    border-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    color: var(--colorMoradoOscuro, rgba(168,162,208,1));
}

.dqa-blog-pagination .current {
    background-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    color: #fff;
    border-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
}

/* ========================================= */
/* Empty State */
/* ========================================= */
.dqa-blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.dqa-blog-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.dqa-blog-empty p {
    font-size: 1.6rem;
    margin: 0;
}

/* ========================================= */
/* Single Post View */
/* ========================================= */
.dqa-blog-single-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--fuentePrincipalDash, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);
}

.dqa-blog-back {
    margin-bottom: 2rem;
}

.dqa-blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.dqa-blog-back-btn:hover {
    gap: 1.2rem;
}

.dqa-blog-single-post {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.dqa-blog-single-header {
    margin-bottom: 3rem;
}

.dqa-blog-single-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: #000;
}

.dqa-blog-single-meta i {
    margin-right: 0.5rem;
}

.dqa-blog-single-title {
    font-size: 3.2rem !important;
    font-weight: 700;
    color: #000;
    margin: 0 0 2rem 0;
    line-height: 1.3;
}

.dqa-blog-single-thumbnail {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 3rem;
}

.dqa-blog-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.dqa-blog-single-content {
    font-size: 2rem;
    line-height: 1.8;
    color: #374151;
}

.dqa-blog-single-content h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #000;
    margin: 3rem 0 1.5rem 0;
}

.dqa-blog-single-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin: 2.5rem 0 1.2rem 0;
}

.dqa-blog-single-content p {
    margin-bottom: 1.5rem;
}

.dqa-blog-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.dqa-blog-single-content ul,
.dqa-blog-single-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.dqa-blog-single-content li {
    margin-bottom: 0.8rem;
}

.dqa-blog-single-content blockquote {
    border-left: 4px solid var(--colorMoradoOscuro, rgba(168,162,208,1));
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

.dqa-blog-single-content a {
    color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    text-decoration: underline;
}

.dqa-blog-single-content a:hover {
    color: var(--colorLavanda, rgba(198,193,223,1));
}

/* ========================================= */
/* Responsive */
/* ========================================= */
@media screen and (max-width: 768px) {
    .dqa-blog-title {
        font-size: 1.8rem !important;
    }

    .dqa-blog-posts {
        grid-template-columns: 1fr;
    }

    .dqa-blog-post-date {
        font-size: 1.4rem;
    }

    .dqa-blog-post-title {
        font-size: 1.6rem !important;
    }

    .dqa-blog-post-arrow {
        font-size: 1.6rem;
    }

    .dqa-blog-single-title {
        font-size: 2.4rem !important;
    }

    .dqa-blog-single-content {
        font-size: 1.5rem;
    }

    .dqa-blog-pagination a,
    .dqa-blog-pagination span {
        min-width: 3.6rem;
        height: 3.6rem;
        font-size: 1.3rem;
    }
}
