/**
 * LINKS IMPORTANTES - CSS ISOLADO
 * Blog Tec Perifa
 * 
 * CSS completamente encapsulado para a seção "Links Importantes"
 * Nomenclatura BEM para evitar conflitos com outras seções
 * 
 * Estrutura:
 * .links-importantes
 *   .links-importantes__title
 *   .links-importantes__content
 *     .links-importantes__categoria
 *       .links-importantes__categoria-titulo
 *       .links-importantes__lista
 *         .links-importantes__item
 *           .links-importantes__link
 */

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */

.links-importantes {
    background: var(--branco, #ffffff);
    padding: 0 0 0 30px !important;
    border-left: 1px solid var(--preto, #000000);
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* ========================================
   TÍTULO PRINCIPAL DA SEÇÃO
   ======================================== */

.links-importantes__title {
    font-family: 'Alegreya SC', serif;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--preto, #000000);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--preto, #000000);
    text-align: left;
}

/* ========================================
   WRAPPER DO CONTEÚDO
   ======================================== */

.links-importantes__content {
    display: block;
    width: 100%;
}

/* ========================================
   GRUPO DE CATEGORIA
   ======================================== */

.links-importantes__categoria {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.links-importantes__categoria:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ========================================
   TÍTULO DA CATEGORIA
   ======================================== */

.links-importantes__categoria-titulo {
    font-family: 'Alegreya SC', serif;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background-color: #000000;
    padding: 8px 12px;
    margin: 0 0 12px 0;
    text-align: left;
    border-left: 4px solid var(--destaque, #ff0000);
}

/* ========================================
   LISTA DE LINKS
   ======================================== */

.links-importantes__lista {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

/* ========================================
   ITEM DA LISTA
   ======================================== */

.links-importantes__item {
    margin: 8px 0;
    padding: 0;
    line-height: 1.6;
    text-align: left;
}

.links-importantes__item::before {
    content: "•";
    color: var(--preto, #000000);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 0.5em;
}

/* ========================================
   LINK (ESTILO PRINCIPAL)
   ======================================== */

.links-importantes__link {
    color: #000000;
    text-decoration: underline;
    font-size: 0.95em;
    font-weight: normal;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: inline;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.links-importantes__link:hover {
    color: #666666;
    text-decoration: underline;
    opacity: 0.8;
}

.links-importantes__link:focus {
    outline: 2px solid var(--destaque, #ff0000);
    outline-offset: 2px;
}

.links-importantes__link:active {
    color: #333333;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .links-importantes {
        padding: 0 0 0 15px !important;
        margin-bottom: 20px;
        border-left-width: 1px;
    }
    
    .links-importantes__title {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .links-importantes__categoria-titulo {
        font-size: 0.9em;
        padding: 6px 10px;
    }
    
    .links-importantes__link {
        font-size: 0.9em;
    }
}

/* ========================================
   DESKTOP (>= 1024px) - SIDEBAR VISÍVEL E FIXA
   ======================================== */

@media (min-width: 1024px) {
    .links-importantes {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: sticky !important;
        top: 20px !important;
        align-self: flex-start !important;
        max-height: calc(100vh - 40px) !important;
        overflow-y: auto !important;
    }
    
    /* Scrollbar estilizado para a sidebar */
    .links-importantes::-webkit-scrollbar {
        width: 6px;
    }
    
    .links-importantes::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .links-importantes::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    .links-importantes::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* ========================================
   TABLET E MOBILE (< 1024px) - OCULTAR
   ======================================== */

@media (max-width: 1023px) {
    .links-importantes {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }
}

/* ========================================
   PRINT - OCULTAR NA IMPRESSÃO
   ======================================== */

@media print {
    .links-importantes {
        display: none !important;
    }
}

/* ========================================
   ESTADOS E ACESSIBILIDADE
   ======================================== */

/* Manter foco visível para navegação por teclado */
.links-importantes__link:focus-visible {
    outline: 3px solid var(--destaque, #ff0000);
    outline-offset: 3px;
}

/* Visited state (opcional, pode comentar se não quiser diferenciar) */
.links-importantes__link:visited {
    color: #333333;
}

/* Loading state (opcional, para futura implementação) */
.links-importantes--loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty state (opcional, quando não há links) */
.links-importantes--empty {
    display: none;
}

