

#CollpaseStyle {
    font-size: 15px;
    font-family: 'Roboto';
    max-width: 1200px;
    margin: 0 auto;
}

/* Custom Accordion Styles - Solo dentro del plugin */
#CollpaseStyle .custom-accordion {
    overflow: hidden;
}

#CollpaseStyle .custom-accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

/* Franjas de ranking */
#CollpaseStyle .custom-accordion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    z-index: 1;
    border-radius: 2px 0 0 2px;
}

#CollpaseStyle .custom-accordion-item.rank-1::before {
    background: linear-gradient(135deg, #f1ce02);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

#CollpaseStyle .custom-accordion-item.rank-2::before {
    background: linear-gradient(135deg, #c4bfbf);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

#CollpaseStyle .custom-accordion-item.rank-3::before {
    background: linear-gradient(135deg, #e79742);
    box-shadow: 0 0 10px rgba(255, 154, 52, 0.4);
}

#CollpaseStyle .custom-accordion-item:not(.rank-1):not(.rank-2):not(.rank-3)::before {
    background: linear-gradient(135deg, #f8fdff);
    box-shadow: 0 0 4px rgba(184, 212, 240, 0.2);
}

#CollpaseStyle .custom-accordion-header {
    margin: 0;
}

#CollpaseStyle .custom-accordion-button {
    width: 100%;
    padding: 15px 18px 15px 24px;
    background-color: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: block;
    font-weight: 500;
    color: #343a40;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 0px !important;
    min-height: 60px;
}

#CollpaseStyle .custom-accordion-button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#CollpaseStyle .custom-accordion-button.active {
    background-color: #e9f5ff;
    color: #007bff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.15);
}

#CollpaseStyle .custom-accordion-button::after {
    content: '⌄';
    font-size: 16px;
    color: #007bff;
    transition: transform 0.3s ease;
    font-weight: bold;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

#CollpaseStyle .custom-accordion-button.active::after {
    content: '⌄';
    transform: translateY(-50%) rotate(180deg);
}

/* Animación suave con altura dinámica */
#CollpaseStyle .custom-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #ffffff;
    border-radius: 0 0 2px 2px;
}

#CollpaseStyle .custom-accordion-content.active {
    overflow: hidden;
}

#CollpaseStyle .custom-accordion-body {
    padding: 18px 18px 18px 24px;
    border-top: 1px solid #e9ecef;
}

/* Estilos para columnas de tamaño fijo */
#CollpaseStyle .accordion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
    padding-right: 40px;
}

#CollpaseStyle .title-section {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    font-family: 'Roboto';
    font-weight: bold;
    font-size: 18px;
}

#CollpaseStyle .views-section {
    flex: 0 0 120px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 100%;
}

/* Botón outline azul - Solo dentro del plugin */
#CollpaseStyle .btn-outline-blue {
    padding: 0.375rem 0.75rem;
    font-size: 13px;
    font-weight: 400;
    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;
    text-decoration: none;
    display: inline-block;
}

#CollpaseStyle .btn-outline-blue:hover {
    color: #fff;
    background: linear-gradient(135deg, #0c6ecf, #00a6ff);
}

#CollpaseStyle .btn-outline-blue:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(4, 154, 255, 0.25);
}

/* Badge personalizado */
#CollpaseStyle .badge {
    font-size: 0.8em;
    padding: 0.3em 0.7em;
    background: linear-gradient(135deg, #0c6ecf, #00a6ff);
    color: white;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

/* Estilos especiales para los rankings en los botones */
#CollpaseStyle .rank-1 .custom-accordion-button {
    background: linear-gradient(135deg, #f1ce02, #fdfdfd);
    border-radius: 2px 2px 0 0;
}

#CollpaseStyle .rank-2 .custom-accordion-button {
    background: linear-gradient(135deg, #c4bfbf, #ffffff);
    border-radius: 2px 2px 0 0;
}

#CollpaseStyle .rank-3 .custom-accordion-button {
    background: linear-gradient(135deg, #e79742, #ffffff);
    border-radius: 2px 2px 0 0;
}

#CollpaseStyle .custom-accordion-item:not(.rank-1):not(.rank-2):not(.rank-3) .custom-accordion-button {
    background: linear-gradient(135deg, #f8f8f8, #ffffff);
    border-radius: 2px 2px 0 0;
}

#CollpaseStyle .custom-accordion-item:not(.active) .custom-accordion-button {
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #CollpaseStyle .badge {
        font-size: 13px;
        padding: 0.3em 0.7em;
    }
    
    #CollpaseStyle .accordion-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-right: 40px;
    }
    
    #CollpaseStyle .title-section {
        width: 100%;
        order: 1;
    }
    
    #CollpaseStyle .views-section {
        flex: none;
        width: auto;
        text-align: left;
        justify-content: flex-start;
        order: 2;
    }
    
    #CollpaseStyle .custom-accordion-button {
        padding: 12px 15px 12px 24px;
        min-height: auto;
    }
    
    #CollpaseStyle .custom-accordion-button::after {
        right: 15px;
    }
}

@media (min-width: 769px) {
    #CollpaseStyle .badge {
        font-size: 13px;
        padding: 0.3em 0.7em;
    }
}

@media (max-width: 480px) {
    #CollpaseStyle .badge {
        font-size: 0.7em !important;
        padding: 0.2em 0.5em !important;
    }
    
    #CollpaseStyle .accordion-row {
        gap: 6px;
        padding-right: 35px;
    }
    
    #CollpaseStyle .custom-accordion-button {
        padding: 10px 12px 10px 24px;
        min-height: auto;
    }
    
    #CollpaseStyle .custom-accordion-button::after {
        right: 12px;
        font-size: 14px;
    }
}