/* No External Links Frontend Styles */

/* Enlaces externos con target="_blank" */
a.nel-external-link {
    /* Opcional: agregar un icono visual */
}

a.nel-external-link::after {
    content: " ↗";
    font-size: 0.85em;
    margin-left: 2px;
}

/* Enlaces deshabilitados */
a.nel-disabled-link {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    text-decoration: line-through;
}

a.nel-disabled-link:hover {
    cursor: not-allowed !important;
}

/* Enlaces con interstitial */
a.nel-interstitial-link {
    position: relative;
}

a.nel-interstitial-link::after {
    content: " ⚠";
    font-size: 0.85em;
    margin-left: 2px;
}

/* Tooltip para links deshabilitados */
a.nel-disabled-link[title] {
    border-bottom: 1px dotted #ccc;
}

/* Modal de advertencia para interstitial */
.nel-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: nel-fadeIn 0.3s ease-in;
}

.nel-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nel-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: nel-slideUp 0.3s ease-out;
}

.nel-modal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.nel-modal-url {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    word-break: break-all;
    font-size: 12px;
    color: #666;
    margin: 15px 0;
    border-left: 3px solid #ffc107;
}

.nel-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.nel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nel-btn-primary {
    background-color: #0073aa;
    color: white;
}

.nel-btn-primary:hover {
    background-color: #005a87;
}

.nel-btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.nel-btn-secondary:hover {
    background-color: #e9e9e9;
}

/* Animaciones */
@keyframes nel-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes nel-slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .nel-modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .nel-modal-buttons {
        flex-direction: column-reverse;
    }
    
    .nel-btn {
        width: 100%;
    }
}
