@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

/* Tabs personalizados */
.nav-pills .nav-link {
    color: #333;
    font-weight: normal;
    margin-bottom: 8px;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #0c6ecf, #00a6ff);
    color: white !important;
    font-weight: bold;
    border-radius: 2px;
}

.nav-pills .nav-link:hover {
    background: linear-gradient(135deg, #0c6ecfa8, #00a6ffa8);
    border-radius: 2px;
    color: #ffffff;
}

/* Números en negrita */
.nav-link .article-number {
    font-weight: bold;
    font-size: 14px;
    font-family: 'Roboto';
}

.nav-link .article-title{
    font-size: 14px;
    font-family: 'Roboto';
}

.nav-link.active .article-number {
    font-weight: bold;
}

/* Contenedor de contenido sin bordes redondeados */
.tab-content .tab-pane {
    border-radius: 0 !important;
    background-color: #f8f8f8f6;
}

/* Títulos sin color primario */
.tab-pane h5 {
    color: #333 !important;
}

.tab-pane .content-article{
    font-size: 14px;
    font-family: 'Roboto';
}

.tab-pane .view-label{
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto';
}

.tab-pane .published-date{
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto';
}

/* Botón outline azul */
.btn-outline-blue {
    padding: 0.375rem 0.75rem;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Roboto';
    line-height: 1.5;
    color: #049AFF;
    background-color: transparent;
    border: 1px solid #049AFF;
    border-radius: 50rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    margin-top: 10px;
}

.btn-outline-blue:hover {
    color: #fff;
    background: linear-gradient(135deg, #0c6ecf, #00a6ff);
}

.btn-outline-blue:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(4, 154, 255, 0.25);
}

/* Estilos para móvil - Custom Accordion */
@media (max-width: 767.98px) {
    .mobile-article-item {
        border: 1px solid #0a0c0e;
        margin-bottom: 8px;
        background: #ffffff;
        transition: all 0.3s ease;
        position: relative;
        border-radius: 2px;
    }

    /* Franjas de ranking */
    .mobile-article-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        z-index: 1;
        border-radius: 2px 0px 0px 2px
    }

    .mobile-article-item.rank-1::before {
        background: linear-gradient(135deg, #f1ce02);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    }

    .mobile-article-item.rank-2::before {
        background: linear-gradient(135deg, #c4bfbf);
        box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
    }

    .mobile-article-item.rank-3::before {
        background: linear-gradient(135deg, #e79742);
        box-shadow: 0 0 10px rgba(255, 154, 52, 0.4);
    }

    .mobile-article-item:not(.rank-1):not(.rank-2):not(.rank-3)::before {
        background: linear-gradient(135deg, #cee6fc);
        box-shadow: 0 0 4px rgba(184, 212, 240, 0.2);
    }
    
    .mobile-article-header {
        width: 100%;
        padding: 15px 18px 15px 24px;
        background-color: #ffffff;
        border: none;
        text-align: left;
        cursor: pointer;
        font-weight: 500;
        color: #343a40;
        transition: all 0.3s ease;
        position: relative;
        border-radius: 2px;
        min-height: 60px;
        display: block;
    }
    
    .mobile-article-header:hover {
        background-color: #f8f9fa;
    }
    
    .mobile-article-header.active {
        background-color: #e9f5ff;
        color: #007bff;
        border-radius: 2px 2px 0 0;
    }

    .mobile-article-header::after {
        content: '⌄';
        font-size: 16px;
        color: #007bff;
        transition: transform 0.3s ease;
        font-weight: bold;
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-article-header.active::after {
        content: '⌄';
        transform: translateY(-50%) rotate(180deg);
    }

    /* Estilos especiales para los rankings en los headers móviles */
    .mobile-article-item.rank-1 .mobile-article-header {
        background: linear-gradient(135deg, #f1ce02, #fdfdfd);
    }

    .mobile-article-item.rank-2 .mobile-article-header {
        background: linear-gradient(135deg, #c4bfbf, #ffffff);
    }

    .mobile-article-item.rank-3 .mobile-article-header {
        background: linear-gradient(135deg, #e79742, #ffffff);
    }

    .mobile-article-item:not(.rank-1):not(.rank-2):not(.rank-3) .mobile-article-header {
        background: linear-gradient(135deg, #f8fdff, #ffffff);
    }
    
    .mobile-article-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background-color: #ffffff;
        border-radius: 0 0 2px 2px;
    }
    
    .mobile-article-content.show {
        overflow: hidden;
    }

    .mobile-article-content-inner {
        padding: 18px 18px 18px 24px;
        border-top: 1px solid #e9ecef;
    }

    /* Layout para títulos y vistas en móvil */
    .mobile-header-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-right: 40px;
    }

    .mobile-title-section {
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }

    .mobile-views-section {
        width: auto;
        text-align: left;
    }

    .badge {
        font-size: 0.8em;
        padding: 0.3em 0.7em;
        background: linear-gradient(135deg, #0c6ecf, #00a6ff);
        color: white;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(4, 154, 255, 0.3);
    }
    
    .desktop-layout {
        display: none;
    }
}

@media (min-width: 768px) {
    .mobile-layout {
        display: none;
    }
}

.desktop-layout{
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
}

.mobile-layout {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;

}

#v-pills-tab{
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
}